Documentation ¶
Index ¶
- func ValidateContentTypeID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- type ContentTypeClient
- func (c ContentTypeClient) CreateOrUpdate(ctx context.Context, id ContentTypeId, input ContentTypeContract, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ContentTypeClient) Delete(ctx context.Context, id ContentTypeId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c ContentTypeClient) Get(ctx context.Context, id ContentTypeId) (result GetOperationResponse, err error)
- func (c ContentTypeClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error)
- func (c ContentTypeClient) ListByServiceComplete(ctx context.Context, id ServiceId) (ListByServiceCompleteResult, error)
- func (c ContentTypeClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, ...) (result ListByServiceCompleteResult, err error)
- type ContentTypeContract
- type ContentTypeContractOperationPredicate
- type ContentTypeContractProperties
- type ContentTypeId
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByServiceCompleteResult
- type ListByServiceCustomPager
- type ListByServiceOperationResponse
- type ServiceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateContentTypeID ¶
ValidateContentTypeID checks that 'input' can be parsed as a Content Type ID
func ValidateServiceID ¶
ValidateServiceID checks that 'input' can be parsed as a Service ID
Types ¶
type ContentTypeClient ¶
type ContentTypeClient struct {
Client *resourcemanager.Client
}
func NewContentTypeClientWithBaseURI ¶
func NewContentTypeClientWithBaseURI(sdkApi sdkEnv.Api) (*ContentTypeClient, error)
func (ContentTypeClient) CreateOrUpdate ¶
func (c ContentTypeClient) CreateOrUpdate(ctx context.Context, id ContentTypeId, input ContentTypeContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ContentTypeClient) Delete ¶
func (c ContentTypeClient) Delete(ctx context.Context, id ContentTypeId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (ContentTypeClient) Get ¶
func (c ContentTypeClient) Get(ctx context.Context, id ContentTypeId) (result GetOperationResponse, err error)
Get ...
func (ContentTypeClient) ListByService ¶
func (c ContentTypeClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error)
ListByService ...
func (ContentTypeClient) ListByServiceComplete ¶
func (c ContentTypeClient) ListByServiceComplete(ctx context.Context, id ServiceId) (ListByServiceCompleteResult, error)
ListByServiceComplete retrieves all the results into a single object
func (ContentTypeClient) ListByServiceCompleteMatchingPredicate ¶
func (c ContentTypeClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, predicate ContentTypeContractOperationPredicate) (result ListByServiceCompleteResult, err error)
ListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ContentTypeContract ¶
type ContentTypeContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ContentTypeContractProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ContentTypeContractOperationPredicate ¶
func (ContentTypeContractOperationPredicate) Matches ¶
func (p ContentTypeContractOperationPredicate) Matches(input ContentTypeContract) bool
type ContentTypeId ¶
type ContentTypeId struct { SubscriptionId string ResourceGroupName string ServiceName string ContentTypeId string }
ContentTypeId is a struct representing the Resource ID for a Content Type
func NewContentTypeID ¶
func NewContentTypeID(subscriptionId string, resourceGroupName string, serviceName string, contentTypeId string) ContentTypeId
NewContentTypeID returns a new ContentTypeId struct
func ParseContentTypeID ¶
func ParseContentTypeID(input string) (*ContentTypeId, error)
ParseContentTypeID parses 'input' into a ContentTypeId
func ParseContentTypeIDInsensitively ¶
func ParseContentTypeIDInsensitively(input string) (*ContentTypeId, error)
ParseContentTypeIDInsensitively parses 'input' case-insensitively into a ContentTypeId note: this method should only be used for API response data and not user input
func (*ContentTypeId) FromParseResult ¶
func (id *ContentTypeId) FromParseResult(input resourceids.ParseResult) error
func (ContentTypeId) ID ¶
func (id ContentTypeId) ID() string
ID returns the formatted Content Type ID
func (ContentTypeId) Segments ¶
func (id ContentTypeId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Content Type ID
func (ContentTypeId) String ¶
func (id ContentTypeId) String() string
String returns a human-readable description of this Content Type ID
type CreateOrUpdateOperationOptions ¶
type CreateOrUpdateOperationOptions struct {
IfMatch *string
}
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
func (CreateOrUpdateOperationOptions) ToHeaders ¶
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (CreateOrUpdateOperationOptions) ToOData ¶
func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query
func (CreateOrUpdateOperationOptions) ToQuery ¶
func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ContentTypeContract }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
IfMatch *string
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ContentTypeContract }
type ListByServiceCompleteResult ¶
type ListByServiceCompleteResult struct { LatestHttpResponse *http.Response Items []ContentTypeContract }
type ListByServiceCustomPager ¶
func (*ListByServiceCustomPager) NextPageLink ¶
func (p *ListByServiceCustomPager) NextPageLink() *odata.Link
type ListByServiceOperationResponse ¶
type ListByServiceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ContentTypeContract }
type ServiceId ¶
ServiceId is a struct representing the Resource ID for a Service
func NewServiceID ¶
NewServiceID returns a new ServiceId struct
func ParseServiceID ¶
ParseServiceID parses 'input' into a ServiceId
func ParseServiceIDInsensitively ¶
ParseServiceIDInsensitively parses 'input' case-insensitively into a ServiceId note: this method should only be used for API response data and not user input
func (*ServiceId) FromParseResult ¶
func (id *ServiceId) FromParseResult(input resourceids.ParseResult) error
func (ServiceId) Segments ¶
func (id ServiceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Service ID