Documentation ¶
Overview ¶
Package modelflatteninggroup implements the Azure ARM Modelflatteninggroup service API version 1.0.0.
Resource Flattening for AutoRest
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- func (client BaseClient) GetArray(ctx context.Context) (result ListFlattenedProduct, err error)
- func (client BaseClient) GetArrayPreparer(ctx context.Context) (*http.Request, error)
- func (client BaseClient) GetArrayResponder(resp *http.Response) (result ListFlattenedProduct, err error)
- func (client BaseClient) GetArraySender(req *http.Request) (*http.Response, error)
- func (client BaseClient) GetDictionary(ctx context.Context) (result SetFlattenedProduct, err error)
- func (client BaseClient) GetDictionaryPreparer(ctx context.Context) (*http.Request, error)
- func (client BaseClient) GetDictionaryResponder(resp *http.Response) (result SetFlattenedProduct, err error)
- func (client BaseClient) GetDictionarySender(req *http.Request) (*http.Response, error)
- func (client BaseClient) GetResourceCollection(ctx context.Context) (result ResourceCollection, err error)
- func (client BaseClient) GetResourceCollectionPreparer(ctx context.Context) (*http.Request, error)
- func (client BaseClient) GetResourceCollectionResponder(resp *http.Response) (result ResourceCollection, err error)
- func (client BaseClient) GetResourceCollectionSender(req *http.Request) (*http.Response, error)
- func (client BaseClient) GetWrappedArray(ctx context.Context) (result ListProductWrapper, err error)
- func (client BaseClient) GetWrappedArrayPreparer(ctx context.Context) (*http.Request, error)
- func (client BaseClient) GetWrappedArrayResponder(resp *http.Response) (result ListProductWrapper, err error)
- func (client BaseClient) GetWrappedArraySender(req *http.Request) (*http.Response, error)
- func (client BaseClient) PostFlattenedSimpleProduct(ctx context.Context, simpleBodyProduct *SimpleProduct) (result SimpleProduct, err error)
- func (client BaseClient) PostFlattenedSimpleProductPreparer(ctx context.Context, simpleBodyProduct *SimpleProduct) (*http.Request, error)
- func (client BaseClient) PostFlattenedSimpleProductResponder(resp *http.Response) (result SimpleProduct, err error)
- func (client BaseClient) PostFlattenedSimpleProductSender(req *http.Request) (*http.Response, error)
- func (client BaseClient) PutArray(ctx context.Context, resourceArray []Resource) (result autorest.Response, err error)
- func (client BaseClient) PutArrayPreparer(ctx context.Context, resourceArray []Resource) (*http.Request, error)
- func (client BaseClient) PutArrayResponder(resp *http.Response) (result autorest.Response, err error)
- func (client BaseClient) PutArraySender(req *http.Request) (*http.Response, error)
- func (client BaseClient) PutDictionary(ctx context.Context, resourceDictionary map[string]*FlattenedProduct) (result autorest.Response, err error)
- func (client BaseClient) PutDictionaryPreparer(ctx context.Context, resourceDictionary map[string]*FlattenedProduct) (*http.Request, error)
- func (client BaseClient) PutDictionaryResponder(resp *http.Response) (result autorest.Response, err error)
- func (client BaseClient) PutDictionarySender(req *http.Request) (*http.Response, error)
- func (client BaseClient) PutResourceCollection(ctx context.Context, resourceComplexObject *ResourceCollection) (result autorest.Response, err error)
- func (client BaseClient) PutResourceCollectionPreparer(ctx context.Context, resourceComplexObject *ResourceCollection) (*http.Request, error)
- func (client BaseClient) PutResourceCollectionResponder(resp *http.Response) (result autorest.Response, err error)
- func (client BaseClient) PutResourceCollectionSender(req *http.Request) (*http.Response, error)
- func (client BaseClient) PutSimpleProduct(ctx context.Context, simpleBodyProduct *SimpleProduct) (result SimpleProduct, err error)
- func (client BaseClient) PutSimpleProductPreparer(ctx context.Context, simpleBodyProduct *SimpleProduct) (*http.Request, error)
- func (client BaseClient) PutSimpleProductResponder(resp *http.Response) (result SimpleProduct, err error)
- func (client BaseClient) PutSimpleProductSender(req *http.Request) (*http.Response, error)
- func (client BaseClient) PutSimpleProductWithGrouping(ctx context.Context, name string, simpleBodyProduct *SimpleProduct) (result SimpleProduct, err error)
- func (client BaseClient) PutSimpleProductWithGroupingPreparer(ctx context.Context, name string, simpleBodyProduct *SimpleProduct) (*http.Request, error)
- func (client BaseClient) PutSimpleProductWithGroupingResponder(resp *http.Response) (result SimpleProduct, err error)
- func (client BaseClient) PutSimpleProductWithGroupingSender(req *http.Request) (*http.Response, error)
- func (client BaseClient) PutWrappedArray(ctx context.Context, resourceArray []WrappedProduct) (result autorest.Response, err error)
- func (client BaseClient) PutWrappedArrayPreparer(ctx context.Context, resourceArray []WrappedProduct) (*http.Request, error)
- func (client BaseClient) PutWrappedArrayResponder(resp *http.Response) (result autorest.Response, err error)
- func (client BaseClient) PutWrappedArraySender(req *http.Request) (*http.Response, error)
- type BaseProduct
- type Error
- type FlattenedProduct
- type FlattenedProductProperties
- type GenericURL
- type ListFlattenedProduct
- type ListProductWrapper
- type ProductURL
- type ProductWrapper
- type ProvisioningStateValues
- type Resource
- type ResourceCollection
- type SetFlattenedProduct
- type SimpleProduct
- type SimpleProductProperties
- type WrappedProduct
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Modelflatteninggroup
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 ¶
BaseClient is the base client for Modelflatteninggroup.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI 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) GetArray ¶
func (client BaseClient) GetArray(ctx context.Context) (result ListFlattenedProduct, err error)
GetArray get External Resource as an Array
func (BaseClient) GetArrayPreparer ¶
GetArrayPreparer prepares the GetArray request.
func (BaseClient) GetArrayResponder ¶
func (client BaseClient) GetArrayResponder(resp *http.Response) (result ListFlattenedProduct, err error)
GetArrayResponder handles the response to the GetArray request. The method always closes the http.Response Body.
func (BaseClient) GetArraySender ¶
GetArraySender sends the GetArray request. The method will close the http.Response Body if it receives an error.
func (BaseClient) GetDictionary ¶
func (client BaseClient) GetDictionary(ctx context.Context) (result SetFlattenedProduct, err error)
GetDictionary get External Resource as a Dictionary
func (BaseClient) GetDictionaryPreparer ¶
GetDictionaryPreparer prepares the GetDictionary request.
func (BaseClient) GetDictionaryResponder ¶
func (client BaseClient) GetDictionaryResponder(resp *http.Response) (result SetFlattenedProduct, err error)
GetDictionaryResponder handles the response to the GetDictionary request. The method always closes the http.Response Body.
func (BaseClient) GetDictionarySender ¶
GetDictionarySender sends the GetDictionary request. The method will close the http.Response Body if it receives an error.
func (BaseClient) GetResourceCollection ¶
func (client BaseClient) GetResourceCollection(ctx context.Context) (result ResourceCollection, err error)
GetResourceCollection get External Resource as a ResourceCollection
func (BaseClient) GetResourceCollectionPreparer ¶
GetResourceCollectionPreparer prepares the GetResourceCollection request.
func (BaseClient) GetResourceCollectionResponder ¶
func (client BaseClient) GetResourceCollectionResponder(resp *http.Response) (result ResourceCollection, err error)
GetResourceCollectionResponder handles the response to the GetResourceCollection request. The method always closes the http.Response Body.
func (BaseClient) GetResourceCollectionSender ¶
GetResourceCollectionSender sends the GetResourceCollection request. The method will close the http.Response Body if it receives an error.
func (BaseClient) GetWrappedArray ¶
func (client BaseClient) GetWrappedArray(ctx context.Context) (result ListProductWrapper, err error)
GetWrappedArray no need to have a route in Express server for this operation. Used to verify the type flattened is not removed if it's referenced in an array
func (BaseClient) GetWrappedArrayPreparer ¶
GetWrappedArrayPreparer prepares the GetWrappedArray request.
func (BaseClient) GetWrappedArrayResponder ¶
func (client BaseClient) GetWrappedArrayResponder(resp *http.Response) (result ListProductWrapper, err error)
GetWrappedArrayResponder handles the response to the GetWrappedArray request. The method always closes the http.Response Body.
func (BaseClient) GetWrappedArraySender ¶
GetWrappedArraySender sends the GetWrappedArray request. The method will close the http.Response Body if it receives an error.
func (BaseClient) PostFlattenedSimpleProduct ¶
func (client BaseClient) PostFlattenedSimpleProduct(ctx context.Context, simpleBodyProduct *SimpleProduct) (result SimpleProduct, err error)
PostFlattenedSimpleProduct put Flattened Simple Product with client flattening true on the parameter Parameters: simpleBodyProduct - simple body product to post
func (BaseClient) PostFlattenedSimpleProductPreparer ¶
func (client BaseClient) PostFlattenedSimpleProductPreparer(ctx context.Context, simpleBodyProduct *SimpleProduct) (*http.Request, error)
PostFlattenedSimpleProductPreparer prepares the PostFlattenedSimpleProduct request.
func (BaseClient) PostFlattenedSimpleProductResponder ¶
func (client BaseClient) PostFlattenedSimpleProductResponder(resp *http.Response) (result SimpleProduct, err error)
PostFlattenedSimpleProductResponder handles the response to the PostFlattenedSimpleProduct request. The method always closes the http.Response Body.
func (BaseClient) PostFlattenedSimpleProductSender ¶
func (client BaseClient) PostFlattenedSimpleProductSender(req *http.Request) (*http.Response, error)
PostFlattenedSimpleProductSender sends the PostFlattenedSimpleProduct request. The method will close the http.Response Body if it receives an error.
func (BaseClient) PutArray ¶
func (client BaseClient) PutArray(ctx context.Context, resourceArray []Resource) (result autorest.Response, err error)
PutArray put External Resource as an Array Parameters: resourceArray - external Resource as an Array to put
func (BaseClient) PutArrayPreparer ¶
func (client BaseClient) PutArrayPreparer(ctx context.Context, resourceArray []Resource) (*http.Request, error)
PutArrayPreparer prepares the PutArray request.
func (BaseClient) PutArrayResponder ¶
func (client BaseClient) PutArrayResponder(resp *http.Response) (result autorest.Response, err error)
PutArrayResponder handles the response to the PutArray request. The method always closes the http.Response Body.
func (BaseClient) PutArraySender ¶
PutArraySender sends the PutArray request. The method will close the http.Response Body if it receives an error.
func (BaseClient) PutDictionary ¶
func (client BaseClient) PutDictionary(ctx context.Context, resourceDictionary map[string]*FlattenedProduct) (result autorest.Response, err error)
PutDictionary put External Resource as a Dictionary Parameters: resourceDictionary - external Resource as a Dictionary to put
func (BaseClient) PutDictionaryPreparer ¶
func (client BaseClient) PutDictionaryPreparer(ctx context.Context, resourceDictionary map[string]*FlattenedProduct) (*http.Request, error)
PutDictionaryPreparer prepares the PutDictionary request.
func (BaseClient) PutDictionaryResponder ¶
func (client BaseClient) PutDictionaryResponder(resp *http.Response) (result autorest.Response, err error)
PutDictionaryResponder handles the response to the PutDictionary request. The method always closes the http.Response Body.
func (BaseClient) PutDictionarySender ¶
PutDictionarySender sends the PutDictionary request. The method will close the http.Response Body if it receives an error.
func (BaseClient) PutResourceCollection ¶
func (client BaseClient) PutResourceCollection(ctx context.Context, resourceComplexObject *ResourceCollection) (result autorest.Response, err error)
PutResourceCollection put External Resource as a ResourceCollection Parameters: resourceComplexObject - external Resource as a ResourceCollection to put
func (BaseClient) PutResourceCollectionPreparer ¶
func (client BaseClient) PutResourceCollectionPreparer(ctx context.Context, resourceComplexObject *ResourceCollection) (*http.Request, error)
PutResourceCollectionPreparer prepares the PutResourceCollection request.
func (BaseClient) PutResourceCollectionResponder ¶
func (client BaseClient) PutResourceCollectionResponder(resp *http.Response) (result autorest.Response, err error)
PutResourceCollectionResponder handles the response to the PutResourceCollection request. The method always closes the http.Response Body.
func (BaseClient) PutResourceCollectionSender ¶
PutResourceCollectionSender sends the PutResourceCollection request. The method will close the http.Response Body if it receives an error.
func (BaseClient) PutSimpleProduct ¶
func (client BaseClient) PutSimpleProduct(ctx context.Context, simpleBodyProduct *SimpleProduct) (result SimpleProduct, err error)
PutSimpleProduct put Simple Product with client flattening true on the model Parameters: simpleBodyProduct - simple body product to put
func (BaseClient) PutSimpleProductPreparer ¶
func (client BaseClient) PutSimpleProductPreparer(ctx context.Context, simpleBodyProduct *SimpleProduct) (*http.Request, error)
PutSimpleProductPreparer prepares the PutSimpleProduct request.
func (BaseClient) PutSimpleProductResponder ¶
func (client BaseClient) PutSimpleProductResponder(resp *http.Response) (result SimpleProduct, err error)
PutSimpleProductResponder handles the response to the PutSimpleProduct request. The method always closes the http.Response Body.
func (BaseClient) PutSimpleProductSender ¶
PutSimpleProductSender sends the PutSimpleProduct request. The method will close the http.Response Body if it receives an error.
func (BaseClient) PutSimpleProductWithGrouping ¶
func (client BaseClient) PutSimpleProductWithGrouping(ctx context.Context, name string, simpleBodyProduct *SimpleProduct) (result SimpleProduct, err error)
PutSimpleProductWithGrouping put Simple Product with client flattening true on the model Parameters: name - product name with value 'groupproduct' simpleBodyProduct - simple body product to put
func (BaseClient) PutSimpleProductWithGroupingPreparer ¶
func (client BaseClient) PutSimpleProductWithGroupingPreparer(ctx context.Context, name string, simpleBodyProduct *SimpleProduct) (*http.Request, error)
PutSimpleProductWithGroupingPreparer prepares the PutSimpleProductWithGrouping request.
func (BaseClient) PutSimpleProductWithGroupingResponder ¶
func (client BaseClient) PutSimpleProductWithGroupingResponder(resp *http.Response) (result SimpleProduct, err error)
PutSimpleProductWithGroupingResponder handles the response to the PutSimpleProductWithGrouping request. The method always closes the http.Response Body.
func (BaseClient) PutSimpleProductWithGroupingSender ¶
func (client BaseClient) PutSimpleProductWithGroupingSender(req *http.Request) (*http.Response, error)
PutSimpleProductWithGroupingSender sends the PutSimpleProductWithGrouping request. The method will close the http.Response Body if it receives an error.
func (BaseClient) PutWrappedArray ¶
func (client BaseClient) PutWrappedArray(ctx context.Context, resourceArray []WrappedProduct) (result autorest.Response, err error)
PutWrappedArray no need to have a route in Express server for this operation. Used to verify the type flattened is not removed if it's referenced in an array Parameters: resourceArray - external Resource as an Array to put
func (BaseClient) PutWrappedArrayPreparer ¶
func (client BaseClient) PutWrappedArrayPreparer(ctx context.Context, resourceArray []WrappedProduct) (*http.Request, error)
PutWrappedArrayPreparer prepares the PutWrappedArray request.
func (BaseClient) PutWrappedArrayResponder ¶
func (client BaseClient) PutWrappedArrayResponder(resp *http.Response) (result autorest.Response, err error)
PutWrappedArrayResponder handles the response to the PutWrappedArray request. The method always closes the http.Response Body.
func (BaseClient) PutWrappedArraySender ¶
PutWrappedArraySender sends the PutWrappedArray request. The method will close the http.Response Body if it receives an error.
type BaseProduct ¶
type BaseProduct struct { // ProductID - Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. ProductID *string `json:"base_product_id,omitempty"` // Description - Description of product. Description *string `json:"base_product_description,omitempty"` }
BaseProduct the product documentation.
type Error ¶
type Error struct { Status *int32 `json:"status,omitempty"` Message *string `json:"message,omitempty"` ParentError *Error `json:"parentError,omitempty"` }
Error ...
type FlattenedProduct ¶
type FlattenedProduct struct { *FlattenedProductProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource Type Type *string `json:"type,omitempty"` Tags map[string]*string `json:"tags"` // Location - Resource Location Location *string `json:"location,omitempty"` // Name - READ-ONLY; Resource Name Name *string `json:"name,omitempty"` }
FlattenedProduct flattened product.
func (FlattenedProduct) MarshalJSON ¶
func (fp FlattenedProduct) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for FlattenedProduct.
func (*FlattenedProduct) UnmarshalJSON ¶
func (fp *FlattenedProduct) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for FlattenedProduct struct.
type FlattenedProductProperties ¶
type FlattenedProductProperties struct { PName *string `json:"p.name,omitempty"` Type *string `json:"type,omitempty"` // ProvisioningStateValues - READ-ONLY; Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' ProvisioningStateValues ProvisioningStateValues `json:"provisioningStateValues,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
FlattenedProductProperties ...
func (FlattenedProductProperties) MarshalJSON ¶
func (fp FlattenedProductProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for FlattenedProductProperties.
type GenericURL ¶
type GenericURL struct { // GenericValue - Generic URL value. GenericValue *string `json:"generic_value,omitempty"` }
GenericURL the Generic URL.
type ListFlattenedProduct ¶
type ListFlattenedProduct struct { autorest.Response `json:"-"` Value *[]FlattenedProduct `json:"value,omitempty"` }
ListFlattenedProduct ...
type ListProductWrapper ¶
type ListProductWrapper struct { autorest.Response `json:"-"` Value *[]ProductWrapper `json:"value,omitempty"` }
ListProductWrapper ...
type ProductURL ¶
type ProductURL struct { // OdataValue - URL value. OdataValue *string `json:"@odata.value,omitempty"` // GenericValue - Generic URL value. GenericValue *string `json:"generic_value,omitempty"` }
ProductURL the product URL.
type ProductWrapper ¶
type ProductWrapper struct {
*WrappedProduct `json:"property,omitempty"`
}
ProductWrapper the wrapped produc.
func (ProductWrapper) MarshalJSON ¶
func (pw ProductWrapper) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProductWrapper.
func (*ProductWrapper) UnmarshalJSON ¶
func (pw *ProductWrapper) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ProductWrapper struct.
type ProvisioningStateValues ¶
type ProvisioningStateValues string
ProvisioningStateValues enumerates the values for provisioning state values.
const ( // Accepted ... Accepted ProvisioningStateValues = "Accepted" // Canceled ... Canceled ProvisioningStateValues = "canceled" // Created ... Created ProvisioningStateValues = "Created" // Creating ... Creating ProvisioningStateValues = "Creating" // Deleted ... Deleted ProvisioningStateValues = "Deleted" // Deleting ... Deleting ProvisioningStateValues = "Deleting" // Failed ... Failed ProvisioningStateValues = "Failed" // OK ... OK ProvisioningStateValues = "OK" // Succeeded ... Succeeded ProvisioningStateValues = "Succeeded" // Updated ... Updated ProvisioningStateValues = "Updated" // Updating ... Updating ProvisioningStateValues = "Updating" )
func PossibleProvisioningStateValuesValues ¶
func PossibleProvisioningStateValuesValues() []ProvisioningStateValues
PossibleProvisioningStateValuesValues returns an array of possible values for the ProvisioningStateValues const type.
type Resource ¶
type Resource struct { // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource Type Type *string `json:"type,omitempty"` Tags map[string]*string `json:"tags"` // Location - Resource Location Location *string `json:"location,omitempty"` // Name - READ-ONLY; Resource Name Name *string `json:"name,omitempty"` }
Resource ...
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type ResourceCollection ¶
type ResourceCollection struct { autorest.Response `json:"-"` Productresource *FlattenedProduct `json:"productresource,omitempty"` Arrayofresources *[]FlattenedProduct `json:"arrayofresources,omitempty"` Dictionaryofresources map[string]*FlattenedProduct `json:"dictionaryofresources"` }
ResourceCollection ...
func (ResourceCollection) MarshalJSON ¶
func (rc ResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceCollection.
type SetFlattenedProduct ¶
type SetFlattenedProduct struct { autorest.Response `json:"-"` Value map[string]*FlattenedProduct `json:"value"` }
SetFlattenedProduct ...
func (SetFlattenedProduct) MarshalJSON ¶
func (sfp SetFlattenedProduct) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SetFlattenedProduct.
type SimpleProduct ¶
type SimpleProduct struct { autorest.Response `json:"-"` *SimpleProductProperties `json:"details,omitempty"` // ProductID - Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. ProductID *string `json:"base_product_id,omitempty"` // Description - Description of product. Description *string `json:"base_product_description,omitempty"` }
SimpleProduct the product documentation.
func (SimpleProduct) MarshalJSON ¶
func (sp SimpleProduct) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SimpleProduct.
func (*SimpleProduct) UnmarshalJSON ¶
func (sp *SimpleProduct) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SimpleProduct struct.
type SimpleProductProperties ¶
type SimpleProductProperties struct { // MaxProductDisplayName - Display name of product. MaxProductDisplayName *string `json:"max_product_display_name,omitempty"` // Capacity - Capacity of product. For example, 4 people. Capacity *string `json:"max_product_capacity,omitempty"` *ProductURL `json:"max_product_image,omitempty"` }
SimpleProductProperties the product documentation.
func (SimpleProductProperties) MarshalJSON ¶
func (spp SimpleProductProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SimpleProductProperties.
func (*SimpleProductProperties) UnmarshalJSON ¶
func (spp *SimpleProductProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SimpleProductProperties struct.
type WrappedProduct ¶
type WrappedProduct struct { // Value - the product value Value *string `json:"value,omitempty"` }
WrappedProduct the wrapped produc.