README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyrestrictionsvalidations
Documentation
The policyrestrictionsvalidations
SDK allows for interaction with the Azure Resource Manager Service apimanagement
(API Version 2023-05-01-preview
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyrestrictionsvalidations"
Client Initialization
client := policyrestrictionsvalidations.NewPolicyRestrictionsValidationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: PolicyRestrictionsValidationsClient.PolicyRestrictionValidationsByService
ctx := context.TODO()
id := policyrestrictionsvalidations.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue")
if err := client.PolicyRestrictionValidationsByServiceThenPoll(ctx, id); err != nil {
// handle the error
}
Documentation ¶
Index ¶
- func PossibleValuesForAsyncOperationStatus() []string
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- type AsyncOperationStatus
- type ErrorFieldContract
- type ErrorResponseBody
- type OperationResultContract
- type OperationResultContractProperties
- func (o *OperationResultContractProperties) GetStartedAsTime() (*time.Time, error)
- func (o *OperationResultContractProperties) GetUpdatedAsTime() (*time.Time, error)
- func (o *OperationResultContractProperties) SetStartedAsTime(input time.Time)
- func (o *OperationResultContractProperties) SetUpdatedAsTime(input time.Time)
- type OperationResultLogItemContract
- type PolicyRestrictionValidationsByServiceOperationResponse
- type PolicyRestrictionsValidationsClient
- func (c PolicyRestrictionsValidationsClient) PolicyRestrictionValidationsByService(ctx context.Context, id ServiceId) (result PolicyRestrictionValidationsByServiceOperationResponse, err error)
- func (c PolicyRestrictionsValidationsClient) PolicyRestrictionValidationsByServiceThenPoll(ctx context.Context, id ServiceId) error
- type ServiceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAsyncOperationStatus ¶
func PossibleValuesForAsyncOperationStatus() []string
func ValidateServiceID ¶
ValidateServiceID checks that 'input' can be parsed as a Service ID
Types ¶
type AsyncOperationStatus ¶
type AsyncOperationStatus string
const ( AsyncOperationStatusFailed AsyncOperationStatus = "Failed" AsyncOperationStatusInProgress AsyncOperationStatus = "InProgress" AsyncOperationStatusStarted AsyncOperationStatus = "Started" AsyncOperationStatusSucceeded AsyncOperationStatus = "Succeeded" )
func (*AsyncOperationStatus) UnmarshalJSON ¶
func (s *AsyncOperationStatus) UnmarshalJSON(bytes []byte) error
type ErrorFieldContract ¶
type ErrorResponseBody ¶
type ErrorResponseBody struct { Code *string `json:"code,omitempty"` Details *[]ErrorFieldContract `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
type OperationResultContract ¶
type OperationResultContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *OperationResultContractProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type OperationResultContractProperties ¶
type OperationResultContractProperties struct { ActionLog *[]OperationResultLogItemContract `json:"actionLog,omitempty"` Error *ErrorResponseBody `json:"error,omitempty"` Id *string `json:"id,omitempty"` ResultInfo *string `json:"resultInfo,omitempty"` Started *string `json:"started,omitempty"` Status *AsyncOperationStatus `json:"status,omitempty"` Updated *string `json:"updated,omitempty"` }
func (*OperationResultContractProperties) GetStartedAsTime ¶
func (o *OperationResultContractProperties) GetStartedAsTime() (*time.Time, error)
func (*OperationResultContractProperties) GetUpdatedAsTime ¶
func (o *OperationResultContractProperties) GetUpdatedAsTime() (*time.Time, error)
func (*OperationResultContractProperties) SetStartedAsTime ¶
func (o *OperationResultContractProperties) SetStartedAsTime(input time.Time)
func (*OperationResultContractProperties) SetUpdatedAsTime ¶
func (o *OperationResultContractProperties) SetUpdatedAsTime(input time.Time)
type PolicyRestrictionsValidationsClient ¶
type PolicyRestrictionsValidationsClient struct {
Client *resourcemanager.Client
}
func NewPolicyRestrictionsValidationsClientWithBaseURI ¶
func NewPolicyRestrictionsValidationsClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyRestrictionsValidationsClient, error)
func (PolicyRestrictionsValidationsClient) PolicyRestrictionValidationsByService ¶
func (c PolicyRestrictionsValidationsClient) PolicyRestrictionValidationsByService(ctx context.Context, id ServiceId) (result PolicyRestrictionValidationsByServiceOperationResponse, err error)
PolicyRestrictionValidationsByService ...
func (PolicyRestrictionsValidationsClient) PolicyRestrictionValidationsByServiceThenPoll ¶
func (c PolicyRestrictionsValidationsClient) PolicyRestrictionValidationsByServiceThenPoll(ctx context.Context, id ServiceId) error
PolicyRestrictionValidationsByServiceThenPoll performs PolicyRestrictionValidationsByService then polls until it's completed
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