validationgroup

package
v0.0.0-...-4a6d4ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package validationgroup implements the Azure ARM Validationgroup service API version 1.0.0.

Test Infrastructure for AutoRest. No server backend exists for these tests.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Validationgroup
	DefaultBaseURI = "http://localhost:3000"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Validationgroup.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BaseClient) GetWithConstantInPath

func (client BaseClient) GetWithConstantInPath(ctx context.Context) (result autorest.Response, err error)

GetWithConstantInPath sends the get with constant in path request.

func (BaseClient) GetWithConstantInPathPreparer

func (client BaseClient) GetWithConstantInPathPreparer(ctx context.Context) (*http.Request, error)

GetWithConstantInPathPreparer prepares the GetWithConstantInPath request.

func (BaseClient) GetWithConstantInPathResponder

func (client BaseClient) GetWithConstantInPathResponder(resp *http.Response) (result autorest.Response, err error)

GetWithConstantInPathResponder handles the response to the GetWithConstantInPath request. The method always closes the http.Response Body.

func (BaseClient) GetWithConstantInPathSender

func (client BaseClient) GetWithConstantInPathSender(req *http.Request) (*http.Response, error)

GetWithConstantInPathSender sends the GetWithConstantInPath request. The method will close the http.Response Body if it receives an error.

func (BaseClient) PostWithConstantInBody

func (client BaseClient) PostWithConstantInBody(ctx context.Context, body *Product) (result Product, err error)

PostWithConstantInBody sends the post with constant in body request.

func (BaseClient) PostWithConstantInBodyPreparer

func (client BaseClient) PostWithConstantInBodyPreparer(ctx context.Context, body *Product) (*http.Request, error)

PostWithConstantInBodyPreparer prepares the PostWithConstantInBody request.

func (BaseClient) PostWithConstantInBodyResponder

func (client BaseClient) PostWithConstantInBodyResponder(resp *http.Response) (result Product, err error)

PostWithConstantInBodyResponder handles the response to the PostWithConstantInBody request. The method always closes the http.Response Body.

func (BaseClient) PostWithConstantInBodySender

func (client BaseClient) PostWithConstantInBodySender(req *http.Request) (*http.Response, error)

PostWithConstantInBodySender sends the PostWithConstantInBody request. The method will close the http.Response Body if it receives an error.

func (BaseClient) ValidationOfBody

func (client BaseClient) ValidationOfBody(ctx context.Context, resourceGroupName string, ID int32, body *Product) (result Product, err error)

ValidationOfBody validates body parameters on the method. See swagger for details. Parameters: resourceGroupName - required string between 3 and 10 chars with pattern [a-zA-Z0-9]+. ID - required int multiple of 10 from 100 to 1000.

func (BaseClient) ValidationOfBodyPreparer

func (client BaseClient) ValidationOfBodyPreparer(ctx context.Context, resourceGroupName string, ID int32, body *Product) (*http.Request, error)

ValidationOfBodyPreparer prepares the ValidationOfBody request.

func (BaseClient) ValidationOfBodyResponder

func (client BaseClient) ValidationOfBodyResponder(resp *http.Response) (result Product, err error)

ValidationOfBodyResponder handles the response to the ValidationOfBody request. The method always closes the http.Response Body.

func (BaseClient) ValidationOfBodySender

func (client BaseClient) ValidationOfBodySender(req *http.Request) (*http.Response, error)

ValidationOfBodySender sends the ValidationOfBody request. The method will close the http.Response Body if it receives an error.

func (BaseClient) ValidationOfMethodParameters

func (client BaseClient) ValidationOfMethodParameters(ctx context.Context, resourceGroupName string, ID int32) (result Product, err error)

ValidationOfMethodParameters validates input parameters on the method. See swagger for details. Parameters: resourceGroupName - required string between 3 and 10 chars with pattern [a-zA-Z0-9]+. ID - required int multiple of 10 from 100 to 1000.

func (BaseClient) ValidationOfMethodParametersPreparer

func (client BaseClient) ValidationOfMethodParametersPreparer(ctx context.Context, resourceGroupName string, ID int32) (*http.Request, error)

ValidationOfMethodParametersPreparer prepares the ValidationOfMethodParameters request.

func (BaseClient) ValidationOfMethodParametersResponder

func (client BaseClient) ValidationOfMethodParametersResponder(resp *http.Response) (result Product, err error)

ValidationOfMethodParametersResponder handles the response to the ValidationOfMethodParameters request. The method always closes the http.Response Body.

func (BaseClient) ValidationOfMethodParametersSender

func (client BaseClient) ValidationOfMethodParametersSender(req *http.Request) (*http.Response, error)

ValidationOfMethodParametersSender sends the ValidationOfMethodParameters request. The method will close the http.Response Body if it receives an error.

type ChildProduct

type ChildProduct struct {
	// ConstProperty - Constant string
	ConstProperty *string `json:"constProperty,omitempty"`
	// Count - Count
	Count *int32 `json:"count,omitempty"`
}

ChildProduct the product documentation.

type ConstantProduct

type ConstantProduct struct {
	// ConstProperty - Constant string
	ConstProperty *string `json:"constProperty,omitempty"`
	// ConstProperty2 - Constant string2
	ConstProperty2 *string `json:"constProperty2,omitempty"`
}

ConstantProduct the product documentation.

type EnumConst

type EnumConst string

EnumConst enumerates the values for enum const.

const (
	// ConstantStringAsEnum ...
	ConstantStringAsEnum EnumConst = "constant_string_as_enum"
)

func PossibleEnumConstValues

func PossibleEnumConstValues() []EnumConst

PossibleEnumConstValues returns an array of possible values for the EnumConst const type.

type Error

type Error struct {
	Code    *int32  `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Fields  *string `json:"fields,omitempty"`
}

Error ...

type Product

type Product struct {
	autorest.Response `json:"-"`
	// DisplayNames - Non required array of unique items from 0 to 6 elements.
	DisplayNames *[]string `json:"display_names,omitempty"`
	// Capacity - Non required int betwen 0 and 100 exclusive.
	Capacity *int32 `json:"capacity,omitempty"`
	// Image - Image URL representing the product.
	Image      *string          `json:"image,omitempty"`
	Child      *ChildProduct    `json:"child,omitempty"`
	ConstChild *ConstantProduct `json:"constChild,omitempty"`
	// ConstInt - Constant int
	ConstInt *int32 `json:"constInt,omitempty"`
	// ConstString - Constant string
	ConstString *string `json:"constString,omitempty"`
	// ConstStringAsEnum - Constant string as Enum. Possible values include: 'ConstantStringAsEnum'
	ConstStringAsEnum EnumConst `json:"constStringAsEnum,omitempty"`
}

Product the product documentation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL