Documentation
¶
Index ¶
- type AuthorizationActionMapping
- type CanaryTrafficRegionRolloutConfiguration
- type CheckNameAvailabilitySpecifications
- type CheckinManifestInfo
- type CheckinManifestParams
- type Client
- type ClientCheckinManifestOptions
- type ClientCheckinManifestResponse
- type ClientGenerateManifestOptions
- type ClientGenerateManifestResponse
- type CustomRollout
- type CustomRolloutArrayResponseWithContinuation
- type CustomRolloutProperties
- type CustomRolloutPropertiesAutoGenerated
- type CustomRolloutPropertiesSpecification
- type CustomRolloutPropertiesStatus
- type CustomRolloutSpecification
- type CustomRolloutSpecificationCanary
- type CustomRolloutSpecificationProviderRegistration
- type CustomRolloutStatus
- type CustomRolloutsClient
- func (client *CustomRolloutsClient) CreateOrUpdate(ctx context.Context, providerNamespace string, rolloutName string, ...) (CustomRolloutsClientCreateOrUpdateResponse, error)
- func (client *CustomRolloutsClient) Get(ctx context.Context, providerNamespace string, rolloutName string, ...) (CustomRolloutsClientGetResponse, error)
- func (client *CustomRolloutsClient) NewListByProviderRegistrationPager(providerNamespace string, ...) *runtime.Pager[CustomRolloutsClientListByProviderRegistrationResponse]
- type CustomRolloutsClientCreateOrUpdateOptions
- type CustomRolloutsClientCreateOrUpdateResponse
- type CustomRolloutsClientGetOptions
- type CustomRolloutsClientGetResponse
- type CustomRolloutsClientListByProviderRegistrationOptions
- type CustomRolloutsClientListByProviderRegistrationResponse
- type DefaultRollout
- type DefaultRolloutArrayResponseWithContinuation
- type DefaultRolloutProperties
- type DefaultRolloutPropertiesAutoGenerated
- type DefaultRolloutPropertiesSpecification
- type DefaultRolloutPropertiesStatus
- type DefaultRolloutSpecification
- type DefaultRolloutSpecificationCanary
- type DefaultRolloutSpecificationHighTraffic
- type DefaultRolloutSpecificationLowTraffic
- type DefaultRolloutSpecificationMediumTraffic
- type DefaultRolloutSpecificationProviderRegistration
- type DefaultRolloutSpecificationRestOfTheWorldGroupOne
- type DefaultRolloutSpecificationRestOfTheWorldGroupTwo
- type DefaultRolloutStatus
- type DefaultRolloutsClient
- func (client *DefaultRolloutsClient) BeginCreateOrUpdate(ctx context.Context, providerNamespace string, rolloutName string, ...) (*runtime.Poller[DefaultRolloutsClientCreateOrUpdateResponse], error)
- func (client *DefaultRolloutsClient) Delete(ctx context.Context, providerNamespace string, rolloutName string, ...) (DefaultRolloutsClientDeleteResponse, error)
- func (client *DefaultRolloutsClient) Get(ctx context.Context, providerNamespace string, rolloutName string, ...) (DefaultRolloutsClientGetResponse, error)
- func (client *DefaultRolloutsClient) NewListByProviderRegistrationPager(providerNamespace string, ...) *runtime.Pager[DefaultRolloutsClientListByProviderRegistrationResponse]
- func (client *DefaultRolloutsClient) Stop(ctx context.Context, providerNamespace string, rolloutName string, ...) (DefaultRolloutsClientStopResponse, error)
- type DefaultRolloutsClientBeginCreateOrUpdateOptions
- type DefaultRolloutsClientCreateOrUpdateResponse
- type DefaultRolloutsClientDeleteOptions
- type DefaultRolloutsClientDeleteResponse
- type DefaultRolloutsClientGetOptions
- type DefaultRolloutsClientGetResponse
- type DefaultRolloutsClientListByProviderRegistrationOptions
- type DefaultRolloutsClientListByProviderRegistrationResponse
- type DefaultRolloutsClientStopOptions
- type DefaultRolloutsClientStopResponse
- type Error
- type ErrorInnerError
- type ErrorResponse
- type ErrorResponseError
- type ExtendedErrorInfo
- type ExtendedLocationOptions
- type ExtensionCategory
- type ExtensionOptionType
- type ExtensionOptions
- type FeaturesPolicy
- type FeaturesRule
- type IdentityManagement
- type IdentityManagementProperties
- type IdentityManagementTypes
- type InnerError
- type LightHouseAuthorization
- type LinkedAccessCheck
- type LinkedAction
- type LinkedOperation
- type LinkedOperationRule
- type LoggingDetails
- type LoggingDirections
- type LoggingHiddenPropertyPath
- type LoggingRule
- type LoggingRuleHiddenPropertyPaths
- type ManifestResourceDeletionPolicy
- type MessageScope
- type Metadata
- type MetadataProviderAuthentication
- type MetadataThirdPartyProviderAuthorization
- type NotificationEndpoint
- type NotificationMode
- type NotificationRegistration
- type NotificationRegistrationArrayResponseWithContinuation
- type NotificationRegistrationProperties
- type NotificationRegistrationPropertiesAutoGenerated
- type NotificationRegistrationsClient
- func (client *NotificationRegistrationsClient) CreateOrUpdate(ctx context.Context, providerNamespace string, ...) (NotificationRegistrationsClientCreateOrUpdateResponse, error)
- func (client *NotificationRegistrationsClient) Delete(ctx context.Context, providerNamespace string, ...) (NotificationRegistrationsClientDeleteResponse, error)
- func (client *NotificationRegistrationsClient) Get(ctx context.Context, providerNamespace string, ...) (NotificationRegistrationsClientGetResponse, error)
- func (client *NotificationRegistrationsClient) NewListByProviderRegistrationPager(providerNamespace string, ...) ...
- type NotificationRegistrationsClientCreateOrUpdateOptions
- type NotificationRegistrationsClientCreateOrUpdateResponse
- type NotificationRegistrationsClientDeleteOptions
- type NotificationRegistrationsClientDeleteResponse
- type NotificationRegistrationsClientGetOptions
- type NotificationRegistrationsClientGetResponse
- type NotificationRegistrationsClientListByProviderRegistrationOptions
- type NotificationRegistrationsClientListByProviderRegistrationResponse
- type OperationsClient
- func (client *OperationsClient) CreateOrUpdate(ctx context.Context, providerNamespace string, ...) (OperationsClientCreateOrUpdateResponse, error)
- func (client *OperationsClient) Delete(ctx context.Context, providerNamespace string, ...) (OperationsClientDeleteResponse, error)
- func (client *OperationsClient) ListByProviderRegistration(ctx context.Context, providerNamespace string, ...) (OperationsClientListByProviderRegistrationResponse, error)
- func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
- type OperationsClientCreateOrUpdateOptions
- type OperationsClientCreateOrUpdateResponse
- type OperationsClientDeleteOptions
- type OperationsClientDeleteResponse
- type OperationsClientListByProviderRegistrationOptions
- type OperationsClientListByProviderRegistrationResponse
- type OperationsClientListOptions
- type OperationsClientListResponse
- type OperationsContent
- type OperationsDefinition
- type OperationsDefinitionActionType
- type OperationsDefinitionArrayResponseWithContinuation
- type OperationsDefinitionDisplay
- type OperationsDefinitionOrigin
- type OperationsDisplayDefinition
- type OperationsPutContent
- type OptInHeaderType
- type PreflightOption
- type ProviderRegistration
- type ProviderRegistrationArrayResponseWithContinuation
- type ProviderRegistrationProperties
- type ProviderRegistrationPropertiesAutoGenerated
- type ProviderRegistrationPropertiesProviderHubMetadata
- type ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications
- type ProviderRegistrationsClient
- func (client *ProviderRegistrationsClient) BeginCreateOrUpdate(ctx context.Context, providerNamespace string, properties ProviderRegistration, ...) (*runtime.Poller[ProviderRegistrationsClientCreateOrUpdateResponse], error)
- func (client *ProviderRegistrationsClient) Delete(ctx context.Context, providerNamespace string, ...) (ProviderRegistrationsClientDeleteResponse, error)
- func (client *ProviderRegistrationsClient) GenerateOperations(ctx context.Context, providerNamespace string, ...) (ProviderRegistrationsClientGenerateOperationsResponse, error)
- func (client *ProviderRegistrationsClient) Get(ctx context.Context, providerNamespace string, ...) (ProviderRegistrationsClientGetResponse, error)
- func (client *ProviderRegistrationsClient) NewListPager(options *ProviderRegistrationsClientListOptions) *runtime.Pager[ProviderRegistrationsClientListResponse]
- type ProviderRegistrationsClientBeginCreateOrUpdateOptions
- type ProviderRegistrationsClientCreateOrUpdateResponse
- type ProviderRegistrationsClientDeleteOptions
- type ProviderRegistrationsClientDeleteResponse
- type ProviderRegistrationsClientGenerateOperationsOptions
- type ProviderRegistrationsClientGenerateOperationsResponse
- type ProviderRegistrationsClientGetOptions
- type ProviderRegistrationsClientGetResponse
- type ProviderRegistrationsClientListOptions
- type ProviderRegistrationsClientListResponse
- type ProvisioningState
- type ProxyResource
- type ReRegisterSubscriptionMetadata
- type Regionality
- type RequestHeaderOptions
- type Resource
- type ResourceDeletionPolicy
- type ResourceMovePolicy
- type ResourceProviderAuthentication
- type ResourceProviderAuthorization
- type ResourceProviderCapabilities
- type ResourceProviderCapabilitiesEffect
- type ResourceProviderEndpoint
- type ResourceProviderEndpointFeaturesRule
- type ResourceProviderManagement
- type ResourceProviderManagementResourceAccessPolicy
- type ResourceProviderManifest
- type ResourceProviderManifestFeaturesRule
- type ResourceProviderManifestManagement
- type ResourceProviderManifestProperties
- type ResourceProviderManifestPropertiesFeaturesRule
- type ResourceProviderManifestPropertiesManagement
- type ResourceProviderManifestPropertiesProviderAuthentication
- type ResourceProviderManifestPropertiesRequestHeaderOptions
- type ResourceProviderManifestPropertiesTemplateDeploymentOptions
- type ResourceProviderManifestProviderAuthentication
- type ResourceProviderManifestReRegisterSubscriptionMetadata
- type ResourceProviderManifestRequestHeaderOptions
- type ResourceProviderType
- type ResourceType
- type ResourceTypeEndpoint
- type ResourceTypeEndpointFeaturesRule
- type ResourceTypeExtension
- type ResourceTypeExtensionOptions
- type ResourceTypeExtensionOptionsResourceCreationBegin
- type ResourceTypeFeaturesRule
- type ResourceTypeIdentityManagement
- type ResourceTypeMarketplaceType
- type ResourceTypeRegistration
- type ResourceTypeRegistrationArrayResponseWithContinuation
- type ResourceTypeRegistrationProperties
- type ResourceTypeRegistrationPropertiesAutoGenerated
- type ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications
- type ResourceTypeRegistrationPropertiesExtensionOptions
- type ResourceTypeRegistrationPropertiesFeaturesRule
- type ResourceTypeRegistrationPropertiesIdentityManagement
- type ResourceTypeRegistrationPropertiesMarketplaceType
- type ResourceTypeRegistrationPropertiesRequestHeaderOptions
- type ResourceTypeRegistrationPropertiesResourceMovePolicy
- type ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications
- type ResourceTypeRegistrationPropertiesTemplateDeploymentOptions
- type ResourceTypeRegistrationsClient
- func (client *ResourceTypeRegistrationsClient) BeginCreateOrUpdate(ctx context.Context, providerNamespace string, resourceType string, ...) (*runtime.Poller[ResourceTypeRegistrationsClientCreateOrUpdateResponse], error)
- func (client *ResourceTypeRegistrationsClient) Delete(ctx context.Context, providerNamespace string, resourceType string, ...) (ResourceTypeRegistrationsClientDeleteResponse, error)
- func (client *ResourceTypeRegistrationsClient) Get(ctx context.Context, providerNamespace string, resourceType string, ...) (ResourceTypeRegistrationsClientGetResponse, error)
- func (client *ResourceTypeRegistrationsClient) NewListByProviderRegistrationPager(providerNamespace string, ...) ...
- type ResourceTypeRegistrationsClientBeginCreateOrUpdateOptions
- type ResourceTypeRegistrationsClientCreateOrUpdateResponse
- type ResourceTypeRegistrationsClientDeleteOptions
- type ResourceTypeRegistrationsClientDeleteResponse
- type ResourceTypeRegistrationsClientGetOptions
- type ResourceTypeRegistrationsClientGetResponse
- type ResourceTypeRegistrationsClientListByProviderRegistrationOptions
- type ResourceTypeRegistrationsClientListByProviderRegistrationResponse
- type ResourceTypeRequestHeaderOptions
- type ResourceTypeSKU
- type ResourceTypeTemplateDeploymentPolicy
- type ResourceValidation
- type RolloutStatusBase
- type RoutingType
- type SKUCapability
- type SKUCapacity
- type SKUCost
- type SKULocationInfo
- type SKULocationInfoType
- type SKUResource
- type SKUResourceArrayResponseWithContinuation
- type SKUResourceProperties
- type SKUScaleType
- type SKUSetting
- type SKUSettingCapacity
- type SKUZoneDetail
- type SKUsClient
- func (client *SKUsClient) CreateOrUpdate(ctx context.Context, providerNamespace string, resourceType string, sku string, ...) (SKUsClientCreateOrUpdateResponse, error)
- func (client *SKUsClient) CreateOrUpdateNestedResourceTypeFirst(ctx context.Context, providerNamespace string, resourceType string, ...) (SKUsClientCreateOrUpdateNestedResourceTypeFirstResponse, error)
- func (client *SKUsClient) CreateOrUpdateNestedResourceTypeSecond(ctx context.Context, providerNamespace string, resourceType string, ...) (SKUsClientCreateOrUpdateNestedResourceTypeSecondResponse, error)
- func (client *SKUsClient) CreateOrUpdateNestedResourceTypeThird(ctx context.Context, providerNamespace string, resourceType string, ...) (SKUsClientCreateOrUpdateNestedResourceTypeThirdResponse, error)
- func (client *SKUsClient) Delete(ctx context.Context, providerNamespace string, resourceType string, sku string, ...) (SKUsClientDeleteResponse, error)
- func (client *SKUsClient) DeleteNestedResourceTypeFirst(ctx context.Context, providerNamespace string, resourceType string, ...) (SKUsClientDeleteNestedResourceTypeFirstResponse, error)
- func (client *SKUsClient) DeleteNestedResourceTypeSecond(ctx context.Context, providerNamespace string, resourceType string, ...) (SKUsClientDeleteNestedResourceTypeSecondResponse, error)
- func (client *SKUsClient) DeleteNestedResourceTypeThird(ctx context.Context, providerNamespace string, resourceType string, ...) (SKUsClientDeleteNestedResourceTypeThirdResponse, error)
- func (client *SKUsClient) Get(ctx context.Context, providerNamespace string, resourceType string, sku string, ...) (SKUsClientGetResponse, error)
- func (client *SKUsClient) GetNestedResourceTypeFirst(ctx context.Context, providerNamespace string, resourceType string, ...) (SKUsClientGetNestedResourceTypeFirstResponse, error)
- func (client *SKUsClient) GetNestedResourceTypeSecond(ctx context.Context, providerNamespace string, resourceType string, ...) (SKUsClientGetNestedResourceTypeSecondResponse, error)
- func (client *SKUsClient) GetNestedResourceTypeThird(ctx context.Context, providerNamespace string, resourceType string, ...) (SKUsClientGetNestedResourceTypeThirdResponse, error)
- func (client *SKUsClient) NewListByResourceTypeRegistrationsNestedResourceTypeFirstPager(providerNamespace string, resourceType string, nestedResourceTypeFirst string, ...) ...
- func (client *SKUsClient) NewListByResourceTypeRegistrationsNestedResourceTypeSecondPager(providerNamespace string, resourceType string, nestedResourceTypeFirst string, ...) ...
- func (client *SKUsClient) NewListByResourceTypeRegistrationsNestedResourceTypeThirdPager(providerNamespace string, resourceType string, nestedResourceTypeFirst string, ...) ...
- func (client *SKUsClient) NewListByResourceTypeRegistrationsPager(providerNamespace string, resourceType string, ...) *runtime.Pager[SKUsClientListByResourceTypeRegistrationsResponse]
- type SKUsClientCreateOrUpdateNestedResourceTypeFirstOptions
- type SKUsClientCreateOrUpdateNestedResourceTypeFirstResponse
- type SKUsClientCreateOrUpdateNestedResourceTypeSecondOptions
- type SKUsClientCreateOrUpdateNestedResourceTypeSecondResponse
- type SKUsClientCreateOrUpdateNestedResourceTypeThirdOptions
- type SKUsClientCreateOrUpdateNestedResourceTypeThirdResponse
- type SKUsClientCreateOrUpdateOptions
- type SKUsClientCreateOrUpdateResponse
- type SKUsClientDeleteNestedResourceTypeFirstOptions
- type SKUsClientDeleteNestedResourceTypeFirstResponse
- type SKUsClientDeleteNestedResourceTypeSecondOptions
- type SKUsClientDeleteNestedResourceTypeSecondResponse
- type SKUsClientDeleteNestedResourceTypeThirdOptions
- type SKUsClientDeleteNestedResourceTypeThirdResponse
- type SKUsClientDeleteOptions
- type SKUsClientDeleteResponse
- type SKUsClientGetNestedResourceTypeFirstOptions
- type SKUsClientGetNestedResourceTypeFirstResponse
- type SKUsClientGetNestedResourceTypeSecondOptions
- type SKUsClientGetNestedResourceTypeSecondResponse
- type SKUsClientGetNestedResourceTypeThirdOptions
- type SKUsClientGetNestedResourceTypeThirdResponse
- type SKUsClientGetOptions
- type SKUsClientGetResponse
- type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstOptions
- type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstResponse
- type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondOptions
- type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondResponse
- type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdOptions
- type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdResponse
- type SKUsClientListByResourceTypeRegistrationsOptions
- type SKUsClientListByResourceTypeRegistrationsResponse
- type ServiceTreeInfo
- type SubscriptionLifecycleNotificationSpecifications
- type SubscriptionNotificationOperation
- type SubscriptionReregistrationResult
- type SubscriptionState
- type SubscriptionStateOverrideAction
- type SubscriptionStateRule
- type SubscriptionTransitioningState
- type SwaggerSpecification
- type TemplateDeploymentCapabilities
- type TemplateDeploymentOptions
- type TemplateDeploymentPolicy
- type TemplateDeploymentPreflightOptions
- type ThirdPartyProviderAuthorization
- type ThrottlingMetric
- type ThrottlingMetricType
- type ThrottlingRule
- type TrafficRegionCategory
- type TrafficRegionRolloutConfiguration
- type TrafficRegions
- type TypedErrorInfo
Examples ¶
- Client.CheckinManifest
- Client.GenerateManifest
- CustomRolloutsClient.CreateOrUpdate
- CustomRolloutsClient.Get
- CustomRolloutsClient.NewListByProviderRegistrationPager
- DefaultRolloutsClient.BeginCreateOrUpdate
- DefaultRolloutsClient.Delete
- DefaultRolloutsClient.Get
- DefaultRolloutsClient.NewListByProviderRegistrationPager
- DefaultRolloutsClient.Stop
- NotificationRegistrationsClient.CreateOrUpdate
- NotificationRegistrationsClient.Delete
- NotificationRegistrationsClient.Get
- NotificationRegistrationsClient.NewListByProviderRegistrationPager
- OperationsClient.CreateOrUpdate
- OperationsClient.Delete
- OperationsClient.ListByProviderRegistration
- OperationsClient.NewListPager
- ProviderRegistrationsClient.BeginCreateOrUpdate
- ProviderRegistrationsClient.Delete
- ProviderRegistrationsClient.GenerateOperations
- ProviderRegistrationsClient.Get
- ProviderRegistrationsClient.NewListPager
- ResourceTypeRegistrationsClient.BeginCreateOrUpdate
- ResourceTypeRegistrationsClient.Delete
- ResourceTypeRegistrationsClient.Get
- ResourceTypeRegistrationsClient.NewListByProviderRegistrationPager
- SKUsClient.CreateOrUpdate
- SKUsClient.CreateOrUpdateNestedResourceTypeFirst
- SKUsClient.CreateOrUpdateNestedResourceTypeSecond
- SKUsClient.CreateOrUpdateNestedResourceTypeThird
- SKUsClient.Delete
- SKUsClient.DeleteNestedResourceTypeFirst
- SKUsClient.DeleteNestedResourceTypeSecond
- SKUsClient.DeleteNestedResourceTypeThird
- SKUsClient.Get
- SKUsClient.GetNestedResourceTypeFirst
- SKUsClient.GetNestedResourceTypeSecond
- SKUsClient.GetNestedResourceTypeThird
- SKUsClient.NewListByResourceTypeRegistrationsNestedResourceTypeFirstPager
- SKUsClient.NewListByResourceTypeRegistrationsNestedResourceTypeSecondPager
- SKUsClient.NewListByResourceTypeRegistrationsNestedResourceTypeThirdPager
- SKUsClient.NewListByResourceTypeRegistrationsPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanaryTrafficRegionRolloutConfiguration ¶
type CanaryTrafficRegionRolloutConfiguration struct { Regions []*string `json:"regions,omitempty"` SkipRegions []*string `json:"skipRegions,omitempty"` }
func (CanaryTrafficRegionRolloutConfiguration) MarshalJSON ¶
func (c CanaryTrafficRegionRolloutConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CanaryTrafficRegionRolloutConfiguration.
type CheckNameAvailabilitySpecifications ¶
type CheckNameAvailabilitySpecifications struct { EnableDefaultValidation *bool `json:"enableDefaultValidation,omitempty"` ResourceTypesWithCustomValidation []*string `json:"resourceTypesWithCustomValidation,omitempty"` }
func (CheckNameAvailabilitySpecifications) MarshalJSON ¶
func (c CheckNameAvailabilitySpecifications) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilitySpecifications.
type CheckinManifestInfo ¶
type CheckinManifestParams ¶
type CheckinManifestParams struct { // REQUIRED; The baseline ARM manifest location supplied to the checkin manifest operation. BaselineArmManifestLocation *string `json:"baselineArmManifestLocation,omitempty"` // REQUIRED; The environment supplied to the checkin manifest operation. Environment *string `json:"environment,omitempty"` }
type Client ¶ added in v0.2.0
type Client struct {
// contains filtered or unexported fields
}
Client contains the methods for the ProviderHub group. Don't use this type directly, use NewClient() instead.
func NewClient ¶ added in v0.2.0
func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error)
NewClient creates a new instance of Client with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*Client) CheckinManifest ¶ added in v0.2.0
func (client *Client) CheckinManifest(ctx context.Context, providerNamespace string, checkinManifestParams CheckinManifestParams, options *ClientCheckinManifestOptions) (ClientCheckinManifestResponse, error)
CheckinManifest - Checkin the manifest. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. checkinManifestParams - The required body parameters supplied to the checkin manifest operation. options - ClientCheckinManifestOptions contains the optional parameters for the Client.CheckinManifest method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/CheckinManifest.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CheckinManifest(ctx, "Microsoft.Contoso", armproviderhub.CheckinManifestParams{ BaselineArmManifestLocation: to.Ptr("EastUS2EUAP"), Environment: to.Ptr("Prod"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*Client) GenerateManifest ¶ added in v0.2.0
func (client *Client) GenerateManifest(ctx context.Context, providerNamespace string, options *ClientGenerateManifestOptions) (ClientGenerateManifestResponse, error)
GenerateManifest - Generates the manifest for the given provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. options - ClientGenerateManifestOptions contains the optional parameters for the Client.GenerateManifest method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/GenerateManifest.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GenerateManifest(ctx, "Microsoft.Contoso", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ClientCheckinManifestOptions ¶ added in v0.2.0
type ClientCheckinManifestOptions struct { }
ClientCheckinManifestOptions contains the optional parameters for the Client.CheckinManifest method.
type ClientCheckinManifestResponse ¶ added in v0.2.0
type ClientCheckinManifestResponse struct {
CheckinManifestInfo
}
ClientCheckinManifestResponse contains the response from method Client.CheckinManifest.
type ClientGenerateManifestOptions ¶ added in v0.2.0
type ClientGenerateManifestOptions struct { }
ClientGenerateManifestOptions contains the optional parameters for the Client.GenerateManifest method.
type ClientGenerateManifestResponse ¶ added in v0.2.0
type ClientGenerateManifestResponse struct {
ResourceProviderManifest
}
ClientGenerateManifestResponse contains the response from method Client.GenerateManifest.
type CustomRollout ¶
type CustomRollout struct { // REQUIRED; Properties of the rollout. Properties *CustomRolloutProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
CustomRollout - Rollout details.
type CustomRolloutArrayResponseWithContinuation ¶
type CustomRolloutArrayResponseWithContinuation struct { // The URL to get to the next set of results, if there are any. NextLink *string `json:"nextLink,omitempty"` Value []*CustomRollout `json:"value,omitempty"` }
type CustomRolloutProperties ¶
type CustomRolloutProperties struct { // REQUIRED Specification *CustomRolloutPropertiesSpecification `json:"specification,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Status *CustomRolloutPropertiesStatus `json:"status,omitempty"` }
CustomRolloutProperties - Properties of the rollout.
type CustomRolloutPropertiesAutoGenerated ¶
type CustomRolloutPropertiesAutoGenerated struct { // REQUIRED Specification *CustomRolloutPropertiesSpecification `json:"specification,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Status *CustomRolloutPropertiesStatus `json:"status,omitempty"` }
type CustomRolloutPropertiesSpecification ¶
type CustomRolloutPropertiesSpecification struct { // REQUIRED Canary *CustomRolloutSpecificationCanary `json:"canary,omitempty"` ProviderRegistration *CustomRolloutSpecificationProviderRegistration `json:"providerRegistration,omitempty"` ResourceTypeRegistrations []*ResourceTypeRegistration `json:"resourceTypeRegistrations,omitempty"` }
func (CustomRolloutPropertiesSpecification) MarshalJSON ¶ added in v0.2.0
func (c CustomRolloutPropertiesSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomRolloutPropertiesSpecification.
type CustomRolloutPropertiesStatus ¶
type CustomRolloutPropertiesStatus struct { CompletedRegions []*string `json:"completedRegions,omitempty"` // Dictionary of FailedOrSkippedRegions map[string]*ExtendedErrorInfo `json:"failedOrSkippedRegions,omitempty"` }
func (CustomRolloutPropertiesStatus) MarshalJSON ¶ added in v0.2.0
func (c CustomRolloutPropertiesStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomRolloutPropertiesStatus.
type CustomRolloutSpecification ¶
type CustomRolloutSpecification struct { // REQUIRED Canary *CustomRolloutSpecificationCanary `json:"canary,omitempty"` ProviderRegistration *CustomRolloutSpecificationProviderRegistration `json:"providerRegistration,omitempty"` ResourceTypeRegistrations []*ResourceTypeRegistration `json:"resourceTypeRegistrations,omitempty"` }
func (CustomRolloutSpecification) MarshalJSON ¶
func (c CustomRolloutSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomRolloutSpecification.
type CustomRolloutSpecificationCanary ¶
type CustomRolloutSpecificationCanary struct {
Regions []*string `json:"regions,omitempty"`
}
func (CustomRolloutSpecificationCanary) MarshalJSON ¶ added in v0.2.0
func (c CustomRolloutSpecificationCanary) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomRolloutSpecificationCanary.
type CustomRolloutSpecificationProviderRegistration ¶
type CustomRolloutSpecificationProviderRegistration struct { Properties *ProviderRegistrationProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
type CustomRolloutStatus ¶
type CustomRolloutStatus struct { CompletedRegions []*string `json:"completedRegions,omitempty"` // Dictionary of FailedOrSkippedRegions map[string]*ExtendedErrorInfo `json:"failedOrSkippedRegions,omitempty"` }
func (CustomRolloutStatus) MarshalJSON ¶
func (c CustomRolloutStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomRolloutStatus.
type CustomRolloutsClient ¶
type CustomRolloutsClient struct {
// contains filtered or unexported fields
}
CustomRolloutsClient contains the methods for the CustomRollouts group. Don't use this type directly, use NewCustomRolloutsClient() instead.
func NewCustomRolloutsClient ¶
func NewCustomRolloutsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CustomRolloutsClient, error)
NewCustomRolloutsClient creates a new instance of CustomRolloutsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*CustomRolloutsClient) CreateOrUpdate ¶
func (client *CustomRolloutsClient) CreateOrUpdate(ctx context.Context, providerNamespace string, rolloutName string, properties CustomRollout, options *CustomRolloutsClientCreateOrUpdateOptions) (CustomRolloutsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates the rollout details. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. rolloutName - The rollout name. properties - The custom rollout properties supplied to the CreateOrUpdate operation. options - CustomRolloutsClientCreateOrUpdateOptions contains the optional parameters for the CustomRolloutsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/CustomRollouts_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewCustomRolloutsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "Microsoft.Contoso", "brazilUsShoeBoxTesting", armproviderhub.CustomRollout{ Properties: &armproviderhub.CustomRolloutProperties{ Specification: &armproviderhub.CustomRolloutPropertiesSpecification{ Canary: &armproviderhub.CustomRolloutSpecificationCanary{ Regions: []*string{ to.Ptr("brazilus")}, }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*CustomRolloutsClient) Get ¶
func (client *CustomRolloutsClient) Get(ctx context.Context, providerNamespace string, rolloutName string, options *CustomRolloutsClientGetOptions) (CustomRolloutsClientGetResponse, error)
Get - Gets the custom rollout details. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. rolloutName - The rollout name. options - CustomRolloutsClientGetOptions contains the optional parameters for the CustomRolloutsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/CustomRollouts_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewCustomRolloutsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "Microsoft.Contoso", "canaryTesting99", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*CustomRolloutsClient) NewListByProviderRegistrationPager ¶ added in v0.4.0
func (client *CustomRolloutsClient) NewListByProviderRegistrationPager(providerNamespace string, options *CustomRolloutsClientListByProviderRegistrationOptions) *runtime.Pager[CustomRolloutsClientListByProviderRegistrationResponse]
NewListByProviderRegistrationPager - Gets the list of the custom rollouts for the given provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. options - CustomRolloutsClientListByProviderRegistrationOptions contains the optional parameters for the CustomRolloutsClient.ListByProviderRegistration method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/CustomRollouts_ListByProviderRegistration.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewCustomRolloutsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByProviderRegistrationPager("Microsoft.Contoso", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type CustomRolloutsClientCreateOrUpdateOptions ¶ added in v0.2.0
type CustomRolloutsClientCreateOrUpdateOptions struct { }
CustomRolloutsClientCreateOrUpdateOptions contains the optional parameters for the CustomRolloutsClient.CreateOrUpdate method.
type CustomRolloutsClientCreateOrUpdateResponse ¶ added in v0.2.0
type CustomRolloutsClientCreateOrUpdateResponse struct {
CustomRollout
}
CustomRolloutsClientCreateOrUpdateResponse contains the response from method CustomRolloutsClient.CreateOrUpdate.
type CustomRolloutsClientGetOptions ¶ added in v0.2.0
type CustomRolloutsClientGetOptions struct { }
CustomRolloutsClientGetOptions contains the optional parameters for the CustomRolloutsClient.Get method.
type CustomRolloutsClientGetResponse ¶ added in v0.2.0
type CustomRolloutsClientGetResponse struct {
CustomRollout
}
CustomRolloutsClientGetResponse contains the response from method CustomRolloutsClient.Get.
type CustomRolloutsClientListByProviderRegistrationOptions ¶ added in v0.2.0
type CustomRolloutsClientListByProviderRegistrationOptions struct { }
CustomRolloutsClientListByProviderRegistrationOptions contains the optional parameters for the CustomRolloutsClient.ListByProviderRegistration method.
type CustomRolloutsClientListByProviderRegistrationResponse ¶ added in v0.2.0
type CustomRolloutsClientListByProviderRegistrationResponse struct {
CustomRolloutArrayResponseWithContinuation
}
CustomRolloutsClientListByProviderRegistrationResponse contains the response from method CustomRolloutsClient.ListByProviderRegistration.
type DefaultRollout ¶
type DefaultRollout struct { // Properties of the rollout. Properties *DefaultRolloutProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
DefaultRollout - Default rollout definition.
type DefaultRolloutArrayResponseWithContinuation ¶
type DefaultRolloutArrayResponseWithContinuation struct { // The URL to get to the next set of results, if there are any. NextLink *string `json:"nextLink,omitempty"` Value []*DefaultRollout `json:"value,omitempty"` }
type DefaultRolloutProperties ¶
type DefaultRolloutProperties struct { ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Specification *DefaultRolloutPropertiesSpecification `json:"specification,omitempty"` Status *DefaultRolloutPropertiesStatus `json:"status,omitempty"` }
DefaultRolloutProperties - Properties of the rollout.
type DefaultRolloutPropertiesAutoGenerated ¶
type DefaultRolloutPropertiesAutoGenerated struct { ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Specification *DefaultRolloutPropertiesSpecification `json:"specification,omitempty"` Status *DefaultRolloutPropertiesStatus `json:"status,omitempty"` }
type DefaultRolloutPropertiesSpecification ¶
type DefaultRolloutPropertiesSpecification struct { Canary *DefaultRolloutSpecificationCanary `json:"canary,omitempty"` HighTraffic *DefaultRolloutSpecificationHighTraffic `json:"highTraffic,omitempty"` LowTraffic *DefaultRolloutSpecificationLowTraffic `json:"lowTraffic,omitempty"` MediumTraffic *DefaultRolloutSpecificationMediumTraffic `json:"mediumTraffic,omitempty"` ProviderRegistration *DefaultRolloutSpecificationProviderRegistration `json:"providerRegistration,omitempty"` ResourceTypeRegistrations []*ResourceTypeRegistration `json:"resourceTypeRegistrations,omitempty"` RestOfTheWorldGroupOne *DefaultRolloutSpecificationRestOfTheWorldGroupOne `json:"restOfTheWorldGroupOne,omitempty"` RestOfTheWorldGroupTwo *DefaultRolloutSpecificationRestOfTheWorldGroupTwo `json:"restOfTheWorldGroupTwo,omitempty"` }
func (DefaultRolloutPropertiesSpecification) MarshalJSON ¶ added in v0.2.0
func (d DefaultRolloutPropertiesSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultRolloutPropertiesSpecification.
type DefaultRolloutPropertiesStatus ¶
type DefaultRolloutPropertiesStatus struct { CompletedRegions []*string `json:"completedRegions,omitempty"` // Dictionary of FailedOrSkippedRegions map[string]*ExtendedErrorInfo `json:"failedOrSkippedRegions,omitempty"` NextTrafficRegion *TrafficRegionCategory `json:"nextTrafficRegion,omitempty"` NextTrafficRegionScheduledTime *time.Time `json:"nextTrafficRegionScheduledTime,omitempty"` SubscriptionReregistrationResult *SubscriptionReregistrationResult `json:"subscriptionReregistrationResult,omitempty"` }
func (DefaultRolloutPropertiesStatus) MarshalJSON ¶ added in v0.2.0
func (d DefaultRolloutPropertiesStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultRolloutPropertiesStatus.
func (*DefaultRolloutPropertiesStatus) UnmarshalJSON ¶ added in v0.2.0
func (d *DefaultRolloutPropertiesStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DefaultRolloutPropertiesStatus.
type DefaultRolloutSpecification ¶
type DefaultRolloutSpecification struct { Canary *DefaultRolloutSpecificationCanary `json:"canary,omitempty"` HighTraffic *DefaultRolloutSpecificationHighTraffic `json:"highTraffic,omitempty"` LowTraffic *DefaultRolloutSpecificationLowTraffic `json:"lowTraffic,omitempty"` MediumTraffic *DefaultRolloutSpecificationMediumTraffic `json:"mediumTraffic,omitempty"` ProviderRegistration *DefaultRolloutSpecificationProviderRegistration `json:"providerRegistration,omitempty"` ResourceTypeRegistrations []*ResourceTypeRegistration `json:"resourceTypeRegistrations,omitempty"` RestOfTheWorldGroupOne *DefaultRolloutSpecificationRestOfTheWorldGroupOne `json:"restOfTheWorldGroupOne,omitempty"` RestOfTheWorldGroupTwo *DefaultRolloutSpecificationRestOfTheWorldGroupTwo `json:"restOfTheWorldGroupTwo,omitempty"` }
func (DefaultRolloutSpecification) MarshalJSON ¶
func (d DefaultRolloutSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultRolloutSpecification.
type DefaultRolloutSpecificationCanary ¶
type DefaultRolloutSpecificationCanary struct { Regions []*string `json:"regions,omitempty"` SkipRegions []*string `json:"skipRegions,omitempty"` }
func (DefaultRolloutSpecificationCanary) MarshalJSON ¶ added in v0.2.0
func (d DefaultRolloutSpecificationCanary) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultRolloutSpecificationCanary.
type DefaultRolloutSpecificationHighTraffic ¶
type DefaultRolloutSpecificationHighTraffic struct { Regions []*string `json:"regions,omitempty"` WaitDuration *string `json:"waitDuration,omitempty"` }
func (DefaultRolloutSpecificationHighTraffic) MarshalJSON ¶ added in v0.2.0
func (d DefaultRolloutSpecificationHighTraffic) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultRolloutSpecificationHighTraffic.
type DefaultRolloutSpecificationLowTraffic ¶
type DefaultRolloutSpecificationLowTraffic struct { Regions []*string `json:"regions,omitempty"` WaitDuration *string `json:"waitDuration,omitempty"` }
func (DefaultRolloutSpecificationLowTraffic) MarshalJSON ¶ added in v0.2.0
func (d DefaultRolloutSpecificationLowTraffic) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultRolloutSpecificationLowTraffic.
type DefaultRolloutSpecificationMediumTraffic ¶
type DefaultRolloutSpecificationMediumTraffic struct { Regions []*string `json:"regions,omitempty"` WaitDuration *string `json:"waitDuration,omitempty"` }
func (DefaultRolloutSpecificationMediumTraffic) MarshalJSON ¶ added in v0.2.0
func (d DefaultRolloutSpecificationMediumTraffic) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultRolloutSpecificationMediumTraffic.
type DefaultRolloutSpecificationProviderRegistration ¶
type DefaultRolloutSpecificationProviderRegistration struct { Properties *ProviderRegistrationProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
type DefaultRolloutSpecificationRestOfTheWorldGroupOne ¶
type DefaultRolloutSpecificationRestOfTheWorldGroupOne struct { Regions []*string `json:"regions,omitempty"` WaitDuration *string `json:"waitDuration,omitempty"` }
func (DefaultRolloutSpecificationRestOfTheWorldGroupOne) MarshalJSON ¶ added in v0.2.0
func (d DefaultRolloutSpecificationRestOfTheWorldGroupOne) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultRolloutSpecificationRestOfTheWorldGroupOne.
type DefaultRolloutSpecificationRestOfTheWorldGroupTwo ¶
type DefaultRolloutSpecificationRestOfTheWorldGroupTwo struct { Regions []*string `json:"regions,omitempty"` WaitDuration *string `json:"waitDuration,omitempty"` }
func (DefaultRolloutSpecificationRestOfTheWorldGroupTwo) MarshalJSON ¶ added in v0.2.0
func (d DefaultRolloutSpecificationRestOfTheWorldGroupTwo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultRolloutSpecificationRestOfTheWorldGroupTwo.
type DefaultRolloutStatus ¶
type DefaultRolloutStatus struct { CompletedRegions []*string `json:"completedRegions,omitempty"` // Dictionary of FailedOrSkippedRegions map[string]*ExtendedErrorInfo `json:"failedOrSkippedRegions,omitempty"` NextTrafficRegion *TrafficRegionCategory `json:"nextTrafficRegion,omitempty"` NextTrafficRegionScheduledTime *time.Time `json:"nextTrafficRegionScheduledTime,omitempty"` SubscriptionReregistrationResult *SubscriptionReregistrationResult `json:"subscriptionReregistrationResult,omitempty"` }
func (DefaultRolloutStatus) MarshalJSON ¶
func (d DefaultRolloutStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultRolloutStatus.
func (*DefaultRolloutStatus) UnmarshalJSON ¶
func (d *DefaultRolloutStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DefaultRolloutStatus.
type DefaultRolloutsClient ¶
type DefaultRolloutsClient struct {
// contains filtered or unexported fields
}
DefaultRolloutsClient contains the methods for the DefaultRollouts group. Don't use this type directly, use NewDefaultRolloutsClient() instead.
func NewDefaultRolloutsClient ¶
func NewDefaultRolloutsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DefaultRolloutsClient, error)
NewDefaultRolloutsClient creates a new instance of DefaultRolloutsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DefaultRolloutsClient) BeginCreateOrUpdate ¶
func (client *DefaultRolloutsClient) BeginCreateOrUpdate(ctx context.Context, providerNamespace string, rolloutName string, properties DefaultRollout, options *DefaultRolloutsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DefaultRolloutsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the rollout details. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. rolloutName - The rollout name. properties - The Default rollout properties supplied to the CreateOrUpdate operation. options - DefaultRolloutsClientBeginCreateOrUpdateOptions contains the optional parameters for the DefaultRolloutsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/DefaultRollouts_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewDefaultRolloutsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "Microsoft.Contoso", "2020week10", armproviderhub.DefaultRollout{ Properties: &armproviderhub.DefaultRolloutProperties{ Specification: &armproviderhub.DefaultRolloutPropertiesSpecification{ Canary: &armproviderhub.DefaultRolloutSpecificationCanary{ SkipRegions: []*string{ to.Ptr("eastus2euap")}, }, RestOfTheWorldGroupTwo: &armproviderhub.DefaultRolloutSpecificationRestOfTheWorldGroupTwo{ WaitDuration: to.Ptr("PT4H"), }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*DefaultRolloutsClient) Delete ¶
func (client *DefaultRolloutsClient) Delete(ctx context.Context, providerNamespace string, rolloutName string, options *DefaultRolloutsClientDeleteOptions) (DefaultRolloutsClientDeleteResponse, error)
Delete - Deletes the rollout resource. Rollout must be in terminal state. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. rolloutName - The rollout name. options - DefaultRolloutsClientDeleteOptions contains the optional parameters for the DefaultRolloutsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/DefaultRollouts_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewDefaultRolloutsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "Microsoft.Contoso", "2020week10", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*DefaultRolloutsClient) Get ¶
func (client *DefaultRolloutsClient) Get(ctx context.Context, providerNamespace string, rolloutName string, options *DefaultRolloutsClientGetOptions) (DefaultRolloutsClientGetResponse, error)
Get - Gets the default rollout details. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. rolloutName - The rollout name. options - DefaultRolloutsClientGetOptions contains the optional parameters for the DefaultRolloutsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/DefaultRollouts_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewDefaultRolloutsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "Microsoft.Contoso", "2020week10", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*DefaultRolloutsClient) NewListByProviderRegistrationPager ¶ added in v0.4.0
func (client *DefaultRolloutsClient) NewListByProviderRegistrationPager(providerNamespace string, options *DefaultRolloutsClientListByProviderRegistrationOptions) *runtime.Pager[DefaultRolloutsClientListByProviderRegistrationResponse]
NewListByProviderRegistrationPager - Gets the list of the rollouts for the given provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. options - DefaultRolloutsClientListByProviderRegistrationOptions contains the optional parameters for the DefaultRolloutsClient.ListByProviderRegistration method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/DefaultRollouts_ListByProviderRegistration.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewDefaultRolloutsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByProviderRegistrationPager("Microsoft.Contoso", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*DefaultRolloutsClient) Stop ¶
func (client *DefaultRolloutsClient) Stop(ctx context.Context, providerNamespace string, rolloutName string, options *DefaultRolloutsClientStopOptions) (DefaultRolloutsClientStopResponse, error)
Stop - Stops or cancels the rollout, if in progress. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. rolloutName - The rollout name. options - DefaultRolloutsClientStopOptions contains the optional parameters for the DefaultRolloutsClient.Stop method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/DefaultRollouts_Stop.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewDefaultRolloutsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Stop(ctx, "Microsoft.Contoso", "2020week10", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
type DefaultRolloutsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type DefaultRolloutsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DefaultRolloutsClientBeginCreateOrUpdateOptions contains the optional parameters for the DefaultRolloutsClient.BeginCreateOrUpdate method.
type DefaultRolloutsClientCreateOrUpdateResponse ¶ added in v0.2.0
type DefaultRolloutsClientCreateOrUpdateResponse struct {
DefaultRollout
}
DefaultRolloutsClientCreateOrUpdateResponse contains the response from method DefaultRolloutsClient.CreateOrUpdate.
type DefaultRolloutsClientDeleteOptions ¶ added in v0.2.0
type DefaultRolloutsClientDeleteOptions struct { }
DefaultRolloutsClientDeleteOptions contains the optional parameters for the DefaultRolloutsClient.Delete method.
type DefaultRolloutsClientDeleteResponse ¶ added in v0.2.0
type DefaultRolloutsClientDeleteResponse struct { }
DefaultRolloutsClientDeleteResponse contains the response from method DefaultRolloutsClient.Delete.
type DefaultRolloutsClientGetOptions ¶ added in v0.2.0
type DefaultRolloutsClientGetOptions struct { }
DefaultRolloutsClientGetOptions contains the optional parameters for the DefaultRolloutsClient.Get method.
type DefaultRolloutsClientGetResponse ¶ added in v0.2.0
type DefaultRolloutsClientGetResponse struct {
DefaultRollout
}
DefaultRolloutsClientGetResponse contains the response from method DefaultRolloutsClient.Get.
type DefaultRolloutsClientListByProviderRegistrationOptions ¶ added in v0.2.0
type DefaultRolloutsClientListByProviderRegistrationOptions struct { }
DefaultRolloutsClientListByProviderRegistrationOptions contains the optional parameters for the DefaultRolloutsClient.ListByProviderRegistration method.
type DefaultRolloutsClientListByProviderRegistrationResponse ¶ added in v0.2.0
type DefaultRolloutsClientListByProviderRegistrationResponse struct {
DefaultRolloutArrayResponseWithContinuation
}
DefaultRolloutsClientListByProviderRegistrationResponse contains the response from method DefaultRolloutsClient.ListByProviderRegistration.
type DefaultRolloutsClientStopOptions ¶ added in v0.2.0
type DefaultRolloutsClientStopOptions struct { }
DefaultRolloutsClientStopOptions contains the optional parameters for the DefaultRolloutsClient.Stop method.
type DefaultRolloutsClientStopResponse ¶ added in v0.2.0
type DefaultRolloutsClientStopResponse struct { }
DefaultRolloutsClientStopResponse contains the response from method DefaultRolloutsClient.Stop.
type Error ¶
type Error struct { // READ-ONLY; Server-defined set of error codes. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Array of details about specific errors that led to this reported error. Details []*Error `json:"details,omitempty" azure:"ro"` // READ-ONLY; Object containing more specific information than the current object about the error. InnerError *ErrorInnerError `json:"innerError,omitempty" azure:"ro"` // READ-ONLY; Human-readable representation of the error. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; Target of the error. Target *string `json:"target,omitempty" azure:"ro"` }
Error - Standard error object.
type ErrorInnerError ¶
type ErrorInnerError struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} // READ-ONLY; Specific error code than was provided by the containing error. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Object containing more specific information than the current object about the error. InnerError interface{} `json:"innerError,omitempty" azure:"ro"` }
ErrorInnerError - Object containing more specific information than the current object about the error.
func (*ErrorInnerError) UnmarshalJSON ¶ added in v0.2.0
func (e *ErrorInnerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorInnerError.
type ErrorResponse ¶
type ErrorResponse struct { // Standard error object. Error *ErrorResponseError `json:"error,omitempty"` }
ErrorResponse - Standard error response.
type ErrorResponseError ¶
type ErrorResponseError struct { // READ-ONLY; Server-defined set of error codes. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Array of details about specific errors that led to this reported error. Details []*Error `json:"details,omitempty" azure:"ro"` // READ-ONLY; Object containing more specific information than the current object about the error. InnerError *ErrorInnerError `json:"innerError,omitempty" azure:"ro"` // READ-ONLY; Human-readable representation of the error. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; Target of the error. Target *string `json:"target,omitempty" azure:"ro"` }
ErrorResponseError - Standard error object.
type ExtendedErrorInfo ¶
type ExtendedErrorInfo struct { AdditionalInfo []*TypedErrorInfo `json:"additionalInfo,omitempty"` Code *string `json:"code,omitempty"` Details []*ExtendedErrorInfo `json:"details,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` }
func (ExtendedErrorInfo) MarshalJSON ¶
func (e ExtendedErrorInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExtendedErrorInfo.
type ExtendedLocationOptions ¶
type ExtensionCategory ¶
type ExtensionCategory string
const ( ExtensionCategoryNotSpecified ExtensionCategory = "NotSpecified" ExtensionCategoryResourceCreationBegin ExtensionCategory = "ResourceCreationBegin" ExtensionCategoryResourceCreationCompleted ExtensionCategory = "ResourceCreationCompleted" ExtensionCategoryResourceCreationValidate ExtensionCategory = "ResourceCreationValidate" ExtensionCategoryResourceDeletionBegin ExtensionCategory = "ResourceDeletionBegin" ExtensionCategoryResourceDeletionCompleted ExtensionCategory = "ResourceDeletionCompleted" ExtensionCategoryResourceDeletionValidate ExtensionCategory = "ResourceDeletionValidate" ExtensionCategoryResourceMoveBegin ExtensionCategory = "ResourceMoveBegin" ExtensionCategoryResourceMoveCompleted ExtensionCategory = "ResourceMoveCompleted" ExtensionCategoryResourcePatchBegin ExtensionCategory = "ResourcePatchBegin" ExtensionCategoryResourcePatchCompleted ExtensionCategory = "ResourcePatchCompleted" ExtensionCategoryResourcePatchValidate ExtensionCategory = "ResourcePatchValidate" ExtensionCategoryResourcePostAction ExtensionCategory = "ResourcePostAction" ExtensionCategoryResourceReadBegin ExtensionCategory = "ResourceReadBegin" ExtensionCategoryResourceReadValidate ExtensionCategory = "ResourceReadValidate" ExtensionCategorySubscriptionLifecycleNotification ExtensionCategory = "SubscriptionLifecycleNotification" )
func PossibleExtensionCategoryValues ¶
func PossibleExtensionCategoryValues() []ExtensionCategory
PossibleExtensionCategoryValues returns the possible values for the ExtensionCategory const type.
type ExtensionOptionType ¶
type ExtensionOptionType string
const ( ExtensionOptionTypeDoNotMergeExistingReadOnlyAndSecretProperties ExtensionOptionType = "DoNotMergeExistingReadOnlyAndSecretProperties" ExtensionOptionTypeIncludeInternalMetadata ExtensionOptionType = "IncludeInternalMetadata" ExtensionOptionTypeNotSpecified ExtensionOptionType = "NotSpecified" )
func PossibleExtensionOptionTypeValues ¶
func PossibleExtensionOptionTypeValues() []ExtensionOptionType
PossibleExtensionOptionTypeValues returns the possible values for the ExtensionOptionType const type.
type ExtensionOptions ¶
type ExtensionOptions struct { Request []*ExtensionOptionType `json:"request,omitempty"` Response []*ExtensionOptionType `json:"response,omitempty"` }
func (ExtensionOptions) MarshalJSON ¶
func (e ExtensionOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExtensionOptions.
type FeaturesPolicy ¶
type FeaturesPolicy string
const ( FeaturesPolicyAll FeaturesPolicy = "All" FeaturesPolicyAny FeaturesPolicy = "Any" )
func PossibleFeaturesPolicyValues ¶
func PossibleFeaturesPolicyValues() []FeaturesPolicy
PossibleFeaturesPolicyValues returns the possible values for the FeaturesPolicy const type.
type FeaturesRule ¶
type FeaturesRule struct { // REQUIRED RequiredFeaturesPolicy *FeaturesPolicy `json:"requiredFeaturesPolicy,omitempty"` }
type IdentityManagement ¶
type IdentityManagement struct {
Type *IdentityManagementTypes `json:"type,omitempty"`
}
type IdentityManagementProperties ¶
type IdentityManagementProperties struct { ApplicationID *string `json:"applicationId,omitempty"` Type *IdentityManagementTypes `json:"type,omitempty"` }
type IdentityManagementTypes ¶
type IdentityManagementTypes string
const ( IdentityManagementTypesActor IdentityManagementTypes = "Actor" IdentityManagementTypesDelegatedResourceIdentity IdentityManagementTypes = "DelegatedResourceIdentity" IdentityManagementTypesNotSpecified IdentityManagementTypes = "NotSpecified" IdentityManagementTypesSystemAssigned IdentityManagementTypes = "SystemAssigned" IdentityManagementTypesUserAssigned IdentityManagementTypes = "UserAssigned" )
func PossibleIdentityManagementTypesValues ¶
func PossibleIdentityManagementTypesValues() []IdentityManagementTypes
PossibleIdentityManagementTypesValues returns the possible values for the IdentityManagementTypes const type.
type InnerError ¶
type InnerError struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} // READ-ONLY; Specific error code than was provided by the containing error. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Object containing more specific information than the current object about the error. InnerError interface{} `json:"innerError,omitempty" azure:"ro"` }
InnerError - Inner error containing list of errors.
func (*InnerError) UnmarshalJSON ¶
func (i *InnerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InnerError.
type LightHouseAuthorization ¶
type LinkedAccessCheck ¶
type LinkedAccessCheck struct { ActionName *string `json:"actionName,omitempty"` LinkedAction *string `json:"linkedAction,omitempty"` LinkedActionVerb *string `json:"linkedActionVerb,omitempty"` LinkedProperty *string `json:"linkedProperty,omitempty"` LinkedType *string `json:"linkedType,omitempty"` }
type LinkedAction ¶
type LinkedAction string
const ( LinkedActionBlocked LinkedAction = "Blocked" LinkedActionEnabled LinkedAction = "Enabled" LinkedActionNotSpecified LinkedAction = "NotSpecified" LinkedActionValidate LinkedAction = "Validate" )
func PossibleLinkedActionValues ¶
func PossibleLinkedActionValues() []LinkedAction
PossibleLinkedActionValues returns the possible values for the LinkedAction const type.
type LinkedOperation ¶
type LinkedOperation string
const ( LinkedOperationCrossResourceGroupResourceMove LinkedOperation = "CrossResourceGroupResourceMove" LinkedOperationCrossSubscriptionResourceMove LinkedOperation = "CrossSubscriptionResourceMove" LinkedOperationNone LinkedOperation = "None" )
func PossibleLinkedOperationValues ¶
func PossibleLinkedOperationValues() []LinkedOperation
PossibleLinkedOperationValues returns the possible values for the LinkedOperation const type.
type LinkedOperationRule ¶
type LinkedOperationRule struct { // REQUIRED LinkedAction *LinkedAction `json:"linkedAction,omitempty"` // REQUIRED LinkedOperation *LinkedOperation `json:"linkedOperation,omitempty"` }
type LoggingDetails ¶
type LoggingDetails string
const ( LoggingDetailsBody LoggingDetails = "Body" LoggingDetailsNone LoggingDetails = "None" )
func PossibleLoggingDetailsValues ¶
func PossibleLoggingDetailsValues() []LoggingDetails
PossibleLoggingDetailsValues returns the possible values for the LoggingDetails const type.
type LoggingDirections ¶
type LoggingDirections string
const ( LoggingDirectionsNone LoggingDirections = "None" LoggingDirectionsRequest LoggingDirections = "Request" LoggingDirectionsResponse LoggingDirections = "Response" )
func PossibleLoggingDirectionsValues ¶
func PossibleLoggingDirectionsValues() []LoggingDirections
PossibleLoggingDirectionsValues returns the possible values for the LoggingDirections const type.
type LoggingHiddenPropertyPath ¶
type LoggingHiddenPropertyPath struct { HiddenPathsOnRequest []*string `json:"hiddenPathsOnRequest,omitempty"` HiddenPathsOnResponse []*string `json:"hiddenPathsOnResponse,omitempty"` }
func (LoggingHiddenPropertyPath) MarshalJSON ¶
func (l LoggingHiddenPropertyPath) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoggingHiddenPropertyPath.
type LoggingRule ¶
type LoggingRule struct { // REQUIRED Action *string `json:"action,omitempty"` // REQUIRED DetailLevel *LoggingDetails `json:"detailLevel,omitempty"` // REQUIRED Direction *LoggingDirections `json:"direction,omitempty"` HiddenPropertyPaths *LoggingRuleHiddenPropertyPaths `json:"hiddenPropertyPaths,omitempty"` }
type LoggingRuleHiddenPropertyPaths ¶
type LoggingRuleHiddenPropertyPaths struct { HiddenPathsOnRequest []*string `json:"hiddenPathsOnRequest,omitempty"` HiddenPathsOnResponse []*string `json:"hiddenPathsOnResponse,omitempty"` }
func (LoggingRuleHiddenPropertyPaths) MarshalJSON ¶ added in v0.2.0
func (l LoggingRuleHiddenPropertyPaths) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoggingRuleHiddenPropertyPaths.
type ManifestResourceDeletionPolicy ¶
type ManifestResourceDeletionPolicy string
const ( ManifestResourceDeletionPolicyCascade ManifestResourceDeletionPolicy = "Cascade" ManifestResourceDeletionPolicyForce ManifestResourceDeletionPolicy = "Force" ManifestResourceDeletionPolicyNotSpecified ManifestResourceDeletionPolicy = "NotSpecified" )
func PossibleManifestResourceDeletionPolicyValues ¶
func PossibleManifestResourceDeletionPolicyValues() []ManifestResourceDeletionPolicy
PossibleManifestResourceDeletionPolicyValues returns the possible values for the ManifestResourceDeletionPolicy const type.
type MessageScope ¶
type MessageScope string
const ( MessageScopeNotSpecified MessageScope = "NotSpecified" MessageScopeRegisteredSubscriptions MessageScope = "RegisteredSubscriptions" )
func PossibleMessageScopeValues ¶
func PossibleMessageScopeValues() []MessageScope
PossibleMessageScopeValues returns the possible values for the MessageScope const type.
type Metadata ¶ added in v0.2.0
type Metadata struct { ProviderAuthentication *MetadataProviderAuthentication `json:"providerAuthentication,omitempty"` ProviderAuthorizations []*ResourceProviderAuthorization `json:"providerAuthorizations,omitempty"` ThirdPartyProviderAuthorization *MetadataThirdPartyProviderAuthorization `json:"thirdPartyProviderAuthorization,omitempty"` }
func (Metadata) MarshalJSON ¶ added in v0.2.0
MarshalJSON implements the json.Marshaller interface for type Metadata.
type MetadataProviderAuthentication ¶ added in v0.2.0
type MetadataProviderAuthentication struct { // REQUIRED AllowedAudiences []*string `json:"allowedAudiences,omitempty"` }
func (MetadataProviderAuthentication) MarshalJSON ¶ added in v0.2.0
func (m MetadataProviderAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MetadataProviderAuthentication.
type MetadataThirdPartyProviderAuthorization ¶ added in v0.2.0
type MetadataThirdPartyProviderAuthorization struct { Authorizations []*LightHouseAuthorization `json:"authorizations,omitempty"` ManagedByTenantID *string `json:"managedByTenantId,omitempty"` }
func (MetadataThirdPartyProviderAuthorization) MarshalJSON ¶ added in v0.2.0
func (m MetadataThirdPartyProviderAuthorization) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MetadataThirdPartyProviderAuthorization.
type NotificationEndpoint ¶
type NotificationEndpoint struct { Locations []*string `json:"locations,omitempty"` NotificationDestination *string `json:"notificationDestination,omitempty"` }
func (NotificationEndpoint) MarshalJSON ¶
func (n NotificationEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NotificationEndpoint.
type NotificationMode ¶
type NotificationMode string
const ( NotificationModeEventHub NotificationMode = "EventHub" NotificationModeNotSpecified NotificationMode = "NotSpecified" NotificationModeWebHook NotificationMode = "WebHook" )
func PossibleNotificationModeValues ¶
func PossibleNotificationModeValues() []NotificationMode
PossibleNotificationModeValues returns the possible values for the NotificationMode const type.
type NotificationRegistration ¶
type NotificationRegistration struct { Properties *NotificationRegistrationProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
NotificationRegistration - The notification registration definition.
type NotificationRegistrationArrayResponseWithContinuation ¶
type NotificationRegistrationArrayResponseWithContinuation struct { // The URL to get to the next set of results, if there are any. NextLink *string `json:"nextLink,omitempty"` Value []*NotificationRegistration `json:"value,omitempty"` }
type NotificationRegistrationProperties ¶
type NotificationRegistrationProperties struct { IncludedEvents []*string `json:"includedEvents,omitempty"` MessageScope *MessageScope `json:"messageScope,omitempty"` NotificationEndpoints []*NotificationEndpoint `json:"notificationEndpoints,omitempty"` NotificationMode *NotificationMode `json:"notificationMode,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` }
func (NotificationRegistrationProperties) MarshalJSON ¶ added in v0.2.0
func (n NotificationRegistrationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NotificationRegistrationProperties.
type NotificationRegistrationPropertiesAutoGenerated ¶
type NotificationRegistrationPropertiesAutoGenerated struct { IncludedEvents []*string `json:"includedEvents,omitempty"` MessageScope *MessageScope `json:"messageScope,omitempty"` NotificationEndpoints []*NotificationEndpoint `json:"notificationEndpoints,omitempty"` NotificationMode *NotificationMode `json:"notificationMode,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` }
func (NotificationRegistrationPropertiesAutoGenerated) MarshalJSON ¶
func (n NotificationRegistrationPropertiesAutoGenerated) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NotificationRegistrationPropertiesAutoGenerated.
type NotificationRegistrationsClient ¶
type NotificationRegistrationsClient struct {
// contains filtered or unexported fields
}
NotificationRegistrationsClient contains the methods for the NotificationRegistrations group. Don't use this type directly, use NewNotificationRegistrationsClient() instead.
func NewNotificationRegistrationsClient ¶
func NewNotificationRegistrationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NotificationRegistrationsClient, error)
NewNotificationRegistrationsClient creates a new instance of NotificationRegistrationsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*NotificationRegistrationsClient) CreateOrUpdate ¶
func (client *NotificationRegistrationsClient) CreateOrUpdate(ctx context.Context, providerNamespace string, notificationRegistrationName string, properties NotificationRegistration, options *NotificationRegistrationsClientCreateOrUpdateOptions) (NotificationRegistrationsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates a notification registration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. notificationRegistrationName - The notification registration. properties - The required body parameters supplied to the notification registration operation. options - NotificationRegistrationsClientCreateOrUpdateOptions contains the optional parameters for the NotificationRegistrationsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/NotificationRegistrations_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewNotificationRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "Microsoft.Contoso", "fooNotificationRegistration", armproviderhub.NotificationRegistration{ Properties: &armproviderhub.NotificationRegistrationProperties{ IncludedEvents: []*string{ to.Ptr("*/write"), to.Ptr("Microsoft.Contoso/employees/delete")}, MessageScope: to.Ptr(armproviderhub.MessageScopeRegisteredSubscriptions), NotificationEndpoints: []*armproviderhub.NotificationEndpoint{ { Locations: []*string{ to.Ptr(""), to.Ptr("East US")}, NotificationDestination: to.Ptr("/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"), }, { Locations: []*string{ to.Ptr("North Europe")}, NotificationDestination: to.Ptr("/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications"), }}, NotificationMode: to.Ptr(armproviderhub.NotificationModeEventHub), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*NotificationRegistrationsClient) Delete ¶
func (client *NotificationRegistrationsClient) Delete(ctx context.Context, providerNamespace string, notificationRegistrationName string, options *NotificationRegistrationsClientDeleteOptions) (NotificationRegistrationsClientDeleteResponse, error)
Delete - Deletes a notification registration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. notificationRegistrationName - The notification registration. options - NotificationRegistrationsClientDeleteOptions contains the optional parameters for the NotificationRegistrationsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/NotificationRegistrations_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewNotificationRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "Microsoft.Contoso", "fooNotificationRegistration", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*NotificationRegistrationsClient) Get ¶
func (client *NotificationRegistrationsClient) Get(ctx context.Context, providerNamespace string, notificationRegistrationName string, options *NotificationRegistrationsClientGetOptions) (NotificationRegistrationsClientGetResponse, error)
Get - Gets the notification registration details. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. notificationRegistrationName - The notification registration. options - NotificationRegistrationsClientGetOptions contains the optional parameters for the NotificationRegistrationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/NotificationRegistrations_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewNotificationRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "Microsoft.Contoso", "fooNotificationRegistration", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*NotificationRegistrationsClient) NewListByProviderRegistrationPager ¶ added in v0.4.0
func (client *NotificationRegistrationsClient) NewListByProviderRegistrationPager(providerNamespace string, options *NotificationRegistrationsClientListByProviderRegistrationOptions) *runtime.Pager[NotificationRegistrationsClientListByProviderRegistrationResponse]
NewListByProviderRegistrationPager - Gets the list of the notification registrations for the given provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. options - NotificationRegistrationsClientListByProviderRegistrationOptions contains the optional parameters for the NotificationRegistrationsClient.ListByProviderRegistration method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/NotificationRegistrations_ListByProviderRegistration.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewNotificationRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByProviderRegistrationPager("Microsoft.Contoso", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type NotificationRegistrationsClientCreateOrUpdateOptions ¶ added in v0.2.0
type NotificationRegistrationsClientCreateOrUpdateOptions struct { }
NotificationRegistrationsClientCreateOrUpdateOptions contains the optional parameters for the NotificationRegistrationsClient.CreateOrUpdate method.
type NotificationRegistrationsClientCreateOrUpdateResponse ¶ added in v0.2.0
type NotificationRegistrationsClientCreateOrUpdateResponse struct {
NotificationRegistration
}
NotificationRegistrationsClientCreateOrUpdateResponse contains the response from method NotificationRegistrationsClient.CreateOrUpdate.
type NotificationRegistrationsClientDeleteOptions ¶ added in v0.2.0
type NotificationRegistrationsClientDeleteOptions struct { }
NotificationRegistrationsClientDeleteOptions contains the optional parameters for the NotificationRegistrationsClient.Delete method.
type NotificationRegistrationsClientDeleteResponse ¶ added in v0.2.0
type NotificationRegistrationsClientDeleteResponse struct { }
NotificationRegistrationsClientDeleteResponse contains the response from method NotificationRegistrationsClient.Delete.
type NotificationRegistrationsClientGetOptions ¶ added in v0.2.0
type NotificationRegistrationsClientGetOptions struct { }
NotificationRegistrationsClientGetOptions contains the optional parameters for the NotificationRegistrationsClient.Get method.
type NotificationRegistrationsClientGetResponse ¶ added in v0.2.0
type NotificationRegistrationsClientGetResponse struct {
NotificationRegistration
}
NotificationRegistrationsClientGetResponse contains the response from method NotificationRegistrationsClient.Get.
type NotificationRegistrationsClientListByProviderRegistrationOptions ¶ added in v0.2.0
type NotificationRegistrationsClientListByProviderRegistrationOptions struct { }
NotificationRegistrationsClientListByProviderRegistrationOptions contains the optional parameters for the NotificationRegistrationsClient.ListByProviderRegistration method.
type NotificationRegistrationsClientListByProviderRegistrationResponse ¶ added in v0.2.0
type NotificationRegistrationsClientListByProviderRegistrationResponse struct {
NotificationRegistrationArrayResponseWithContinuation
}
NotificationRegistrationsClientListByProviderRegistrationResponse contains the response from method NotificationRegistrationsClient.ListByProviderRegistration.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) CreateOrUpdate ¶
func (client *OperationsClient) CreateOrUpdate(ctx context.Context, providerNamespace string, operationsPutContent OperationsPutContent, options *OperationsClientCreateOrUpdateOptions) (OperationsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates the operation supported by the given provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. operationsPutContent - The operations content properties supplied to the CreateOrUpdate operation. options - OperationsClientCreateOrUpdateOptions contains the optional parameters for the OperationsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Operations_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewOperationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "Microsoft.Contoso", armproviderhub.OperationsPutContent{ Contents: []*armproviderhub.OperationsDefinition{ { Name: to.Ptr("Microsoft.Contoso/Employees/Read"), Display: &armproviderhub.OperationsDefinitionDisplay{ Description: to.Ptr("Read employees"), Operation: to.Ptr("Gets/List employee resources"), Provider: to.Ptr("Microsoft.Contoso"), Resource: to.Ptr("Employees"), }, }}, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*OperationsClient) Delete ¶
func (client *OperationsClient) Delete(ctx context.Context, providerNamespace string, options *OperationsClientDeleteOptions) (OperationsClientDeleteResponse, error)
Delete - Deletes an operation. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. options - OperationsClientDeleteOptions contains the optional parameters for the OperationsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Operations_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewOperationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "Microsoft.Contoso", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*OperationsClient) ListByProviderRegistration ¶
func (client *OperationsClient) ListByProviderRegistration(ctx context.Context, providerNamespace string, options *OperationsClientListByProviderRegistrationOptions) (OperationsClientListByProviderRegistrationResponse, error)
ListByProviderRegistration - Gets the operations supported by the given provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. options - OperationsClientListByProviderRegistrationOptions contains the optional parameters for the OperationsClient.ListByProviderRegistration method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Operations_ListByProviderRegistration.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewOperationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListByProviderRegistration(ctx, "Microsoft.Contoso", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*OperationsClient) NewListPager ¶ added in v0.4.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all the operations supported by Microsoft.ProviderHub. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Operations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewOperationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientCreateOrUpdateOptions ¶ added in v0.2.0
type OperationsClientCreateOrUpdateOptions struct { }
OperationsClientCreateOrUpdateOptions contains the optional parameters for the OperationsClient.CreateOrUpdate method.
type OperationsClientCreateOrUpdateResponse ¶ added in v0.2.0
type OperationsClientCreateOrUpdateResponse struct {
OperationsContent
}
OperationsClientCreateOrUpdateResponse contains the response from method OperationsClient.CreateOrUpdate.
type OperationsClientDeleteOptions ¶ added in v0.2.0
type OperationsClientDeleteOptions struct { }
OperationsClientDeleteOptions contains the optional parameters for the OperationsClient.Delete method.
type OperationsClientDeleteResponse ¶ added in v0.2.0
type OperationsClientDeleteResponse struct { }
OperationsClientDeleteResponse contains the response from method OperationsClient.Delete.
type OperationsClientListByProviderRegistrationOptions ¶ added in v0.2.0
type OperationsClientListByProviderRegistrationOptions struct { }
OperationsClientListByProviderRegistrationOptions contains the optional parameters for the OperationsClient.ListByProviderRegistration method.
type OperationsClientListByProviderRegistrationResponse ¶ added in v0.2.0
type OperationsClientListByProviderRegistrationResponse struct { // Array of OperationsDefinition OperationsDefinitionArray []*OperationsDefinition }
OperationsClientListByProviderRegistrationResponse contains the response from method OperationsClient.ListByProviderRegistration.
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct {
OperationsDefinitionArrayResponseWithContinuation
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type OperationsContent ¶
type OperationsContent struct { // Operations content. Properties *OperationsDefinition `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
type OperationsDefinition ¶
type OperationsDefinition struct { // REQUIRED; Display information of the operation. Display *OperationsDefinitionDisplay `json:"display,omitempty"` // REQUIRED; Name of the operation. Name *string `json:"name,omitempty"` ActionType *OperationsDefinitionActionType `json:"actionType,omitempty"` // Indicates whether the operation applies to data-plane. IsDataAction *bool `json:"isDataAction,omitempty"` Origin *OperationsDefinitionOrigin `json:"origin,omitempty"` // Anything Properties interface{} `json:"properties,omitempty"` }
OperationsDefinition - Properties of an Operation.
type OperationsDefinitionActionType ¶
type OperationsDefinitionActionType string
const ( OperationsDefinitionActionTypeInternal OperationsDefinitionActionType = "Internal" OperationsDefinitionActionTypeNotSpecified OperationsDefinitionActionType = "NotSpecified" )
func PossibleOperationsDefinitionActionTypeValues ¶
func PossibleOperationsDefinitionActionTypeValues() []OperationsDefinitionActionType
PossibleOperationsDefinitionActionTypeValues returns the possible values for the OperationsDefinitionActionType const type.
type OperationsDefinitionArrayResponseWithContinuation ¶
type OperationsDefinitionArrayResponseWithContinuation struct { // The URL to get to the next set of results, if there are any. NextLink *string `json:"nextLink,omitempty"` Value []*OperationsDefinition `json:"value,omitempty"` }
type OperationsDefinitionDisplay ¶
type OperationsDefinitionDisplay struct { // REQUIRED Description *string `json:"description,omitempty"` // REQUIRED Operation *string `json:"operation,omitempty"` // REQUIRED Provider *string `json:"provider,omitempty"` // REQUIRED Resource *string `json:"resource,omitempty"` }
OperationsDefinitionDisplay - Display information of the operation.
type OperationsDefinitionOrigin ¶
type OperationsDefinitionOrigin string
const ( OperationsDefinitionOriginNotSpecified OperationsDefinitionOrigin = "NotSpecified" OperationsDefinitionOriginSystem OperationsDefinitionOrigin = "System" OperationsDefinitionOriginUser OperationsDefinitionOrigin = "User" )
func PossibleOperationsDefinitionOriginValues ¶
func PossibleOperationsDefinitionOriginValues() []OperationsDefinitionOrigin
PossibleOperationsDefinitionOriginValues returns the possible values for the OperationsDefinitionOrigin const type.
type OperationsPutContent ¶
type OperationsPutContent struct { // REQUIRED Contents []*OperationsDefinition `json:"contents,omitempty"` }
func (OperationsPutContent) MarshalJSON ¶
func (o OperationsPutContent) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationsPutContent.
type OptInHeaderType ¶
type OptInHeaderType string
const ( OptInHeaderTypeClientGroupMembership OptInHeaderType = "ClientGroupMembership" OptInHeaderTypeNotSpecified OptInHeaderType = "NotSpecified" OptInHeaderTypeSignedAuxiliaryTokens OptInHeaderType = "SignedAuxiliaryTokens" OptInHeaderTypeSignedUserToken OptInHeaderType = "SignedUserToken" OptInHeaderTypeUnboundedClientGroupMembership OptInHeaderType = "UnboundedClientGroupMembership" )
func PossibleOptInHeaderTypeValues ¶
func PossibleOptInHeaderTypeValues() []OptInHeaderType
PossibleOptInHeaderTypeValues returns the possible values for the OptInHeaderType const type.
type PreflightOption ¶
type PreflightOption string
const ( PreflightOptionContinueDeploymentOnFailure PreflightOption = "ContinueDeploymentOnFailure" PreflightOptionDefaultValidationOnly PreflightOption = "DefaultValidationOnly" PreflightOptionNone PreflightOption = "None" )
func PossiblePreflightOptionValues ¶
func PossiblePreflightOptionValues() []PreflightOption
PossiblePreflightOptionValues returns the possible values for the PreflightOption const type.
type ProviderRegistration ¶
type ProviderRegistration struct { Properties *ProviderRegistrationProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
type ProviderRegistrationArrayResponseWithContinuation ¶
type ProviderRegistrationArrayResponseWithContinuation struct { // The URL to get to the next set of results, if there are any. NextLink *string `json:"nextLink,omitempty"` Value []*ProviderRegistration `json:"value,omitempty"` }
type ProviderRegistrationProperties ¶
type ProviderRegistrationProperties struct { Capabilities []*ResourceProviderCapabilities `json:"capabilities,omitempty"` FeaturesRule *ResourceProviderManifestPropertiesFeaturesRule `json:"featuresRule,omitempty"` Management *ResourceProviderManifestPropertiesManagement `json:"management,omitempty"` // Anything Metadata interface{} `json:"metadata,omitempty"` Namespace *string `json:"namespace,omitempty"` ProviderAuthentication *ResourceProviderManifestPropertiesProviderAuthentication `json:"providerAuthentication,omitempty"` ProviderAuthorizations []*ResourceProviderAuthorization `json:"providerAuthorizations,omitempty"` ProviderHubMetadata *ProviderRegistrationPropertiesProviderHubMetadata `json:"providerHubMetadata,omitempty"` ProviderType *ResourceProviderType `json:"providerType,omitempty"` ProviderVersion *string `json:"providerVersion,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` RequestHeaderOptions *ResourceProviderManifestPropertiesRequestHeaderOptions `json:"requestHeaderOptions,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` SubscriptionLifecycleNotificationSpecifications *ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications `json:"subscriptionLifecycleNotificationSpecifications,omitempty"` TemplateDeploymentOptions *ResourceProviderManifestPropertiesTemplateDeploymentOptions `json:"templateDeploymentOptions,omitempty"` }
func (ProviderRegistrationProperties) MarshalJSON ¶ added in v0.2.0
func (p ProviderRegistrationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProviderRegistrationProperties.
type ProviderRegistrationPropertiesAutoGenerated ¶
type ProviderRegistrationPropertiesAutoGenerated struct { Capabilities []*ResourceProviderCapabilities `json:"capabilities,omitempty"` FeaturesRule *ResourceProviderManifestPropertiesFeaturesRule `json:"featuresRule,omitempty"` Management *ResourceProviderManifestPropertiesManagement `json:"management,omitempty"` // Anything Metadata interface{} `json:"metadata,omitempty"` Namespace *string `json:"namespace,omitempty"` ProviderAuthentication *ResourceProviderManifestPropertiesProviderAuthentication `json:"providerAuthentication,omitempty"` ProviderAuthorizations []*ResourceProviderAuthorization `json:"providerAuthorizations,omitempty"` ProviderHubMetadata *ProviderRegistrationPropertiesProviderHubMetadata `json:"providerHubMetadata,omitempty"` ProviderType *ResourceProviderType `json:"providerType,omitempty"` ProviderVersion *string `json:"providerVersion,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` RequestHeaderOptions *ResourceProviderManifestPropertiesRequestHeaderOptions `json:"requestHeaderOptions,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` SubscriptionLifecycleNotificationSpecifications *ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications `json:"subscriptionLifecycleNotificationSpecifications,omitempty"` TemplateDeploymentOptions *ResourceProviderManifestPropertiesTemplateDeploymentOptions `json:"templateDeploymentOptions,omitempty"` }
func (ProviderRegistrationPropertiesAutoGenerated) MarshalJSON ¶
func (p ProviderRegistrationPropertiesAutoGenerated) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProviderRegistrationPropertiesAutoGenerated.
type ProviderRegistrationPropertiesProviderHubMetadata ¶
type ProviderRegistrationPropertiesProviderHubMetadata struct { ProviderAuthentication *MetadataProviderAuthentication `json:"providerAuthentication,omitempty"` ProviderAuthorizations []*ResourceProviderAuthorization `json:"providerAuthorizations,omitempty"` ThirdPartyProviderAuthorization *MetadataThirdPartyProviderAuthorization `json:"thirdPartyProviderAuthorization,omitempty"` }
func (ProviderRegistrationPropertiesProviderHubMetadata) MarshalJSON ¶ added in v0.2.0
func (p ProviderRegistrationPropertiesProviderHubMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProviderRegistrationPropertiesProviderHubMetadata.
type ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications ¶
type ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications struct { SoftDeleteTTL *string `json:"softDeleteTTL,omitempty"` SubscriptionStateOverrideActions []*SubscriptionStateOverrideAction `json:"subscriptionStateOverrideActions,omitempty"` }
func (ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications) MarshalJSON ¶ added in v0.2.0
func (p ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications.
type ProviderRegistrationsClient ¶
type ProviderRegistrationsClient struct {
// contains filtered or unexported fields
}
ProviderRegistrationsClient contains the methods for the ProviderRegistrations group. Don't use this type directly, use NewProviderRegistrationsClient() instead.
func NewProviderRegistrationsClient ¶
func NewProviderRegistrationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProviderRegistrationsClient, error)
NewProviderRegistrationsClient creates a new instance of ProviderRegistrationsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ProviderRegistrationsClient) BeginCreateOrUpdate ¶
func (client *ProviderRegistrationsClient) BeginCreateOrUpdate(ctx context.Context, providerNamespace string, properties ProviderRegistration, options *ProviderRegistrationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ProviderRegistrationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the provider registration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. properties - The provider registration properties supplied to the CreateOrUpdate operation. options - ProviderRegistrationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ProviderRegistrationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/ProviderRegistrations_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewProviderRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "Microsoft.Contoso", armproviderhub.ProviderRegistration{ Properties: &armproviderhub.ProviderRegistrationProperties{ Capabilities: []*armproviderhub.ResourceProviderCapabilities{ { Effect: to.Ptr(armproviderhub.ResourceProviderCapabilitiesEffectAllow), QuotaID: to.Ptr("CSP_2015-05-01"), }, { Effect: to.Ptr(armproviderhub.ResourceProviderCapabilitiesEffectAllow), QuotaID: to.Ptr("CSP_MG_2017-12-01"), }}, Management: &armproviderhub.ResourceProviderManifestPropertiesManagement{ IncidentContactEmail: to.Ptr("helpme@contoso.com"), IncidentRoutingService: to.Ptr("Contoso Resource Provider"), IncidentRoutingTeam: to.Ptr("Contoso Triage"), }, ProviderType: to.Ptr(armproviderhub.ResourceProviderTypeInternal), ProviderVersion: to.Ptr("2.0"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProviderRegistrationsClient) Delete ¶
func (client *ProviderRegistrationsClient) Delete(ctx context.Context, providerNamespace string, options *ProviderRegistrationsClientDeleteOptions) (ProviderRegistrationsClientDeleteResponse, error)
Delete - Deletes a provider registration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. options - ProviderRegistrationsClientDeleteOptions contains the optional parameters for the ProviderRegistrationsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/ProviderRegistrations_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewProviderRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "Microsoft.Contoso", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ProviderRegistrationsClient) GenerateOperations ¶
func (client *ProviderRegistrationsClient) GenerateOperations(ctx context.Context, providerNamespace string, options *ProviderRegistrationsClientGenerateOperationsOptions) (ProviderRegistrationsClientGenerateOperationsResponse, error)
GenerateOperations - Generates the operations api for the given provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. options - ProviderRegistrationsClientGenerateOperationsOptions contains the optional parameters for the ProviderRegistrationsClient.GenerateOperations method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/ProviderRegistrations_GenerateOperations.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewProviderRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GenerateOperations(ctx, "Microsoft.Contoso", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProviderRegistrationsClient) Get ¶
func (client *ProviderRegistrationsClient) Get(ctx context.Context, providerNamespace string, options *ProviderRegistrationsClientGetOptions) (ProviderRegistrationsClientGetResponse, error)
Get - Gets the provider registration details. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. options - ProviderRegistrationsClientGetOptions contains the optional parameters for the ProviderRegistrationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/ProviderRegistrations_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewProviderRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "Microsoft.Contoso", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProviderRegistrationsClient) NewListPager ¶ added in v0.4.0
func (client *ProviderRegistrationsClient) NewListPager(options *ProviderRegistrationsClientListOptions) *runtime.Pager[ProviderRegistrationsClientListResponse]
NewListPager - Gets the list of the provider registrations in the subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 options - ProviderRegistrationsClientListOptions contains the optional parameters for the ProviderRegistrationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/ProviderRegistrations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewProviderRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ProviderRegistrationsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type ProviderRegistrationsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ProviderRegistrationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ProviderRegistrationsClient.BeginCreateOrUpdate method.
type ProviderRegistrationsClientCreateOrUpdateResponse ¶ added in v0.2.0
type ProviderRegistrationsClientCreateOrUpdateResponse struct {
ProviderRegistration
}
ProviderRegistrationsClientCreateOrUpdateResponse contains the response from method ProviderRegistrationsClient.CreateOrUpdate.
type ProviderRegistrationsClientDeleteOptions ¶ added in v0.2.0
type ProviderRegistrationsClientDeleteOptions struct { }
ProviderRegistrationsClientDeleteOptions contains the optional parameters for the ProviderRegistrationsClient.Delete method.
type ProviderRegistrationsClientDeleteResponse ¶ added in v0.2.0
type ProviderRegistrationsClientDeleteResponse struct { }
ProviderRegistrationsClientDeleteResponse contains the response from method ProviderRegistrationsClient.Delete.
type ProviderRegistrationsClientGenerateOperationsOptions ¶ added in v0.2.0
type ProviderRegistrationsClientGenerateOperationsOptions struct { }
ProviderRegistrationsClientGenerateOperationsOptions contains the optional parameters for the ProviderRegistrationsClient.GenerateOperations method.
type ProviderRegistrationsClientGenerateOperationsResponse ¶ added in v0.2.0
type ProviderRegistrationsClientGenerateOperationsResponse struct { // Array of OperationsDefinition OperationsDefinitionArray []*OperationsDefinition }
ProviderRegistrationsClientGenerateOperationsResponse contains the response from method ProviderRegistrationsClient.GenerateOperations.
type ProviderRegistrationsClientGetOptions ¶ added in v0.2.0
type ProviderRegistrationsClientGetOptions struct { }
ProviderRegistrationsClientGetOptions contains the optional parameters for the ProviderRegistrationsClient.Get method.
type ProviderRegistrationsClientGetResponse ¶ added in v0.2.0
type ProviderRegistrationsClientGetResponse struct {
ProviderRegistration
}
ProviderRegistrationsClientGetResponse contains the response from method ProviderRegistrationsClient.Get.
type ProviderRegistrationsClientListOptions ¶ added in v0.2.0
type ProviderRegistrationsClientListOptions struct { }
ProviderRegistrationsClientListOptions contains the optional parameters for the ProviderRegistrationsClient.List method.
type ProviderRegistrationsClientListResponse ¶ added in v0.2.0
type ProviderRegistrationsClientListResponse struct {
ProviderRegistrationArrayResponseWithContinuation
}
ProviderRegistrationsClientListResponse contains the response from method ProviderRegistrationsClient.List.
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateMovingResources ProvisioningState = "MovingResources" ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" ProvisioningStateRolloutInProgress ProvisioningState = "RolloutInProgress" ProvisioningStateRunning ProvisioningState = "Running" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateTransientFailure ProvisioningState = "TransientFailure" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type ProxyResource ¶
type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
type Regionality ¶
type Regionality string
const ( RegionalityGlobal Regionality = "Global" RegionalityNotSpecified Regionality = "NotSpecified" RegionalityRegional Regionality = "Regional" )
func PossibleRegionalityValues ¶
func PossibleRegionalityValues() []Regionality
PossibleRegionalityValues returns the possible values for the Regionality const type.
type RequestHeaderOptions ¶
type RequestHeaderOptions struct {
OptInHeaders *OptInHeaderType `json:"optInHeaders,omitempty"`
}
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type ResourceDeletionPolicy ¶
type ResourceDeletionPolicy string
const ( ResourceDeletionPolicyCascadeDeleteAll ResourceDeletionPolicy = "CascadeDeleteAll" ResourceDeletionPolicyCascadeDeleteProxyOnlyChildren ResourceDeletionPolicy = "CascadeDeleteProxyOnlyChildren" ResourceDeletionPolicyNotSpecified ResourceDeletionPolicy = "NotSpecified" )
func PossibleResourceDeletionPolicyValues ¶
func PossibleResourceDeletionPolicyValues() []ResourceDeletionPolicy
PossibleResourceDeletionPolicyValues returns the possible values for the ResourceDeletionPolicy const type.
type ResourceMovePolicy ¶
type ResourceProviderAuthentication ¶
type ResourceProviderAuthentication struct { // REQUIRED AllowedAudiences []*string `json:"allowedAudiences,omitempty"` }
func (ResourceProviderAuthentication) MarshalJSON ¶
func (r ResourceProviderAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderAuthentication.
type ResourceProviderCapabilities ¶
type ResourceProviderCapabilities struct { // REQUIRED Effect *ResourceProviderCapabilitiesEffect `json:"effect,omitempty"` // REQUIRED QuotaID *string `json:"quotaId,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` }
func (ResourceProviderCapabilities) MarshalJSON ¶
func (r ResourceProviderCapabilities) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderCapabilities.
type ResourceProviderCapabilitiesEffect ¶
type ResourceProviderCapabilitiesEffect string
const ( ResourceProviderCapabilitiesEffectAllow ResourceProviderCapabilitiesEffect = "Allow" ResourceProviderCapabilitiesEffectDisallow ResourceProviderCapabilitiesEffect = "Disallow" ResourceProviderCapabilitiesEffectNotSpecified ResourceProviderCapabilitiesEffect = "NotSpecified" )
func PossibleResourceProviderCapabilitiesEffectValues ¶
func PossibleResourceProviderCapabilitiesEffectValues() []ResourceProviderCapabilitiesEffect
PossibleResourceProviderCapabilitiesEffectValues returns the possible values for the ResourceProviderCapabilitiesEffect const type.
type ResourceProviderEndpoint ¶
type ResourceProviderEndpoint struct { APIVersions []*string `json:"apiVersions,omitempty"` Enabled *bool `json:"enabled,omitempty"` EndpointURI *string `json:"endpointUri,omitempty"` FeaturesRule *ResourceProviderEndpointFeaturesRule `json:"featuresRule,omitempty"` Locations []*string `json:"locations,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` Timeout *string `json:"timeout,omitempty"` }
type ResourceProviderEndpointFeaturesRule ¶
type ResourceProviderEndpointFeaturesRule struct { // REQUIRED RequiredFeaturesPolicy *FeaturesPolicy `json:"requiredFeaturesPolicy,omitempty"` }
type ResourceProviderManagement ¶
type ResourceProviderManagement struct { IncidentContactEmail *string `json:"incidentContactEmail,omitempty"` IncidentRoutingService *string `json:"incidentRoutingService,omitempty"` IncidentRoutingTeam *string `json:"incidentRoutingTeam,omitempty"` ManifestOwners []*string `json:"manifestOwners,omitempty"` ResourceAccessPolicy *ResourceProviderManagementResourceAccessPolicy `json:"resourceAccessPolicy,omitempty"` ResourceAccessRoles []interface{} `json:"resourceAccessRoles,omitempty"` SchemaOwners []*string `json:"schemaOwners,omitempty"` ServiceTreeInfos []*ServiceTreeInfo `json:"serviceTreeInfos,omitempty"` }
func (ResourceProviderManagement) MarshalJSON ¶
func (r ResourceProviderManagement) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderManagement.
type ResourceProviderManagementResourceAccessPolicy ¶
type ResourceProviderManagementResourceAccessPolicy string
const ( ResourceProviderManagementResourceAccessPolicyAcisActionAllowed ResourceProviderManagementResourceAccessPolicy = "AcisActionAllowed" ResourceProviderManagementResourceAccessPolicyAcisReadAllowed ResourceProviderManagementResourceAccessPolicy = "AcisReadAllowed" ResourceProviderManagementResourceAccessPolicyNotSpecified ResourceProviderManagementResourceAccessPolicy = "NotSpecified" )
func PossibleResourceProviderManagementResourceAccessPolicyValues ¶
func PossibleResourceProviderManagementResourceAccessPolicyValues() []ResourceProviderManagementResourceAccessPolicy
PossibleResourceProviderManagementResourceAccessPolicyValues returns the possible values for the ResourceProviderManagementResourceAccessPolicy const type.
type ResourceProviderManifest ¶
type ResourceProviderManifest struct { Capabilities []*ResourceProviderCapabilities `json:"capabilities,omitempty"` FeaturesRule *ResourceProviderManifestFeaturesRule `json:"featuresRule,omitempty"` GlobalNotificationEndpoints []*ResourceProviderEndpoint `json:"globalNotificationEndpoints,omitempty"` Management *ResourceProviderManifestManagement `json:"management,omitempty"` // Anything Metadata interface{} `json:"metadata,omitempty"` Namespace *string `json:"namespace,omitempty"` ProviderAuthentication *ResourceProviderManifestProviderAuthentication `json:"providerAuthentication,omitempty"` ProviderAuthorizations []*ResourceProviderAuthorization `json:"providerAuthorizations,omitempty"` ProviderType *ResourceProviderType `json:"providerType,omitempty"` ProviderVersion *string `json:"providerVersion,omitempty"` ReRegisterSubscriptionMetadata *ResourceProviderManifestReRegisterSubscriptionMetadata `json:"reRegisterSubscriptionMetadata,omitempty"` RequestHeaderOptions *ResourceProviderManifestRequestHeaderOptions `json:"requestHeaderOptions,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` ResourceTypes []*ResourceType `json:"resourceTypes,omitempty"` }
type ResourceProviderManifestFeaturesRule ¶
type ResourceProviderManifestFeaturesRule struct { // REQUIRED RequiredFeaturesPolicy *FeaturesPolicy `json:"requiredFeaturesPolicy,omitempty"` }
type ResourceProviderManifestManagement ¶
type ResourceProviderManifestManagement struct { IncidentContactEmail *string `json:"incidentContactEmail,omitempty"` IncidentRoutingService *string `json:"incidentRoutingService,omitempty"` IncidentRoutingTeam *string `json:"incidentRoutingTeam,omitempty"` ManifestOwners []*string `json:"manifestOwners,omitempty"` ResourceAccessPolicy *ResourceProviderManagementResourceAccessPolicy `json:"resourceAccessPolicy,omitempty"` ResourceAccessRoles []interface{} `json:"resourceAccessRoles,omitempty"` SchemaOwners []*string `json:"schemaOwners,omitempty"` ServiceTreeInfos []*ServiceTreeInfo `json:"serviceTreeInfos,omitempty"` }
func (ResourceProviderManifestManagement) MarshalJSON ¶ added in v0.2.0
func (r ResourceProviderManifestManagement) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderManifestManagement.
type ResourceProviderManifestProperties ¶
type ResourceProviderManifestProperties struct { Capabilities []*ResourceProviderCapabilities `json:"capabilities,omitempty"` FeaturesRule *ResourceProviderManifestPropertiesFeaturesRule `json:"featuresRule,omitempty"` Management *ResourceProviderManifestPropertiesManagement `json:"management,omitempty"` // Anything Metadata interface{} `json:"metadata,omitempty"` Namespace *string `json:"namespace,omitempty"` ProviderAuthentication *ResourceProviderManifestPropertiesProviderAuthentication `json:"providerAuthentication,omitempty"` ProviderAuthorizations []*ResourceProviderAuthorization `json:"providerAuthorizations,omitempty"` ProviderType *ResourceProviderType `json:"providerType,omitempty"` ProviderVersion *string `json:"providerVersion,omitempty"` RequestHeaderOptions *ResourceProviderManifestPropertiesRequestHeaderOptions `json:"requestHeaderOptions,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` TemplateDeploymentOptions *ResourceProviderManifestPropertiesTemplateDeploymentOptions `json:"templateDeploymentOptions,omitempty"` }
func (ResourceProviderManifestProperties) MarshalJSON ¶
func (r ResourceProviderManifestProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderManifestProperties.
type ResourceProviderManifestPropertiesFeaturesRule ¶
type ResourceProviderManifestPropertiesFeaturesRule struct { // REQUIRED RequiredFeaturesPolicy *FeaturesPolicy `json:"requiredFeaturesPolicy,omitempty"` }
type ResourceProviderManifestPropertiesManagement ¶
type ResourceProviderManifestPropertiesManagement struct { IncidentContactEmail *string `json:"incidentContactEmail,omitempty"` IncidentRoutingService *string `json:"incidentRoutingService,omitempty"` IncidentRoutingTeam *string `json:"incidentRoutingTeam,omitempty"` ManifestOwners []*string `json:"manifestOwners,omitempty"` ResourceAccessPolicy *ResourceProviderManagementResourceAccessPolicy `json:"resourceAccessPolicy,omitempty"` ResourceAccessRoles []interface{} `json:"resourceAccessRoles,omitempty"` SchemaOwners []*string `json:"schemaOwners,omitempty"` ServiceTreeInfos []*ServiceTreeInfo `json:"serviceTreeInfos,omitempty"` }
func (ResourceProviderManifestPropertiesManagement) MarshalJSON ¶ added in v0.2.0
func (r ResourceProviderManifestPropertiesManagement) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderManifestPropertiesManagement.
type ResourceProviderManifestPropertiesProviderAuthentication ¶
type ResourceProviderManifestPropertiesProviderAuthentication struct { // REQUIRED AllowedAudiences []*string `json:"allowedAudiences,omitempty"` }
func (ResourceProviderManifestPropertiesProviderAuthentication) MarshalJSON ¶ added in v0.2.0
func (r ResourceProviderManifestPropertiesProviderAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderManifestPropertiesProviderAuthentication.
type ResourceProviderManifestPropertiesRequestHeaderOptions ¶
type ResourceProviderManifestPropertiesRequestHeaderOptions struct {
OptInHeaders *OptInHeaderType `json:"optInHeaders,omitempty"`
}
type ResourceProviderManifestPropertiesTemplateDeploymentOptions ¶
type ResourceProviderManifestPropertiesTemplateDeploymentOptions struct { PreflightOptions []*PreflightOption `json:"preflightOptions,omitempty"` PreflightSupported *bool `json:"preflightSupported,omitempty"` }
func (ResourceProviderManifestPropertiesTemplateDeploymentOptions) MarshalJSON ¶ added in v0.2.0
func (r ResourceProviderManifestPropertiesTemplateDeploymentOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderManifestPropertiesTemplateDeploymentOptions.
type ResourceProviderManifestProviderAuthentication ¶
type ResourceProviderManifestProviderAuthentication struct { // REQUIRED AllowedAudiences []*string `json:"allowedAudiences,omitempty"` }
func (ResourceProviderManifestProviderAuthentication) MarshalJSON ¶ added in v0.2.0
func (r ResourceProviderManifestProviderAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderManifestProviderAuthentication.
type ResourceProviderManifestRequestHeaderOptions ¶
type ResourceProviderManifestRequestHeaderOptions struct {
OptInHeaders *OptInHeaderType `json:"optInHeaders,omitempty"`
}
type ResourceProviderType ¶
type ResourceProviderType string
const ( ResourceProviderTypeAuthorizationFree ResourceProviderType = "AuthorizationFree" ResourceProviderTypeExternal ResourceProviderType = "External" ResourceProviderTypeHidden ResourceProviderType = "Hidden" ResourceProviderTypeInternal ResourceProviderType = "Internal" ResourceProviderTypeLegacyRegistrationRequired ResourceProviderType = "LegacyRegistrationRequired" ResourceProviderTypeNotSpecified ResourceProviderType = "NotSpecified" ResourceProviderTypeRegistrationFree ResourceProviderType = "RegistrationFree" ResourceProviderTypeTenantOnly ResourceProviderType = "TenantOnly" )
func PossibleResourceProviderTypeValues ¶
func PossibleResourceProviderTypeValues() []ResourceProviderType
PossibleResourceProviderTypeValues returns the possible values for the ResourceProviderType const type.
type ResourceType ¶
type ResourceType struct { AuthorizationActionMappings []*AuthorizationActionMapping `json:"authorizationActionMappings,omitempty"` DefaultAPIVersion *string `json:"defaultApiVersion,omitempty"` DisallowedActionVerbs []*string `json:"disallowedActionVerbs,omitempty"` Endpoints []*ResourceProviderEndpoint `json:"endpoints,omitempty"` ExtendedLocations []*ExtendedLocationOptions `json:"extendedLocations,omitempty"` FeaturesRule *ResourceTypeFeaturesRule `json:"featuresRule,omitempty"` IdentityManagement *ResourceTypeIdentityManagement `json:"identityManagement,omitempty"` LinkedAccessChecks []*LinkedAccessCheck `json:"linkedAccessChecks,omitempty"` LinkedOperationRules []*LinkedOperationRule `json:"linkedOperationRules,omitempty"` LoggingRules []*LoggingRule `json:"loggingRules,omitempty"` MarketplaceType *ResourceTypeMarketplaceType `json:"marketplaceType,omitempty"` // Anything Metadata interface{} `json:"metadata,omitempty"` Name *string `json:"name,omitempty"` RequestHeaderOptions *ResourceTypeRequestHeaderOptions `json:"requestHeaderOptions,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` ResourceDeletionPolicy *ManifestResourceDeletionPolicy `json:"resourceDeletionPolicy,omitempty"` ResourceValidation *ResourceValidation `json:"resourceValidation,omitempty"` RoutingType *RoutingType `json:"routingType,omitempty"` SKULink *string `json:"skuLink,omitempty"` ServiceTreeInfos []*ServiceTreeInfo `json:"serviceTreeInfos,omitempty"` SubscriptionStateRules []*SubscriptionStateRule `json:"subscriptionStateRules,omitempty"` TemplateDeploymentPolicy *ResourceTypeTemplateDeploymentPolicy `json:"templateDeploymentPolicy,omitempty"` ThrottlingRules []*ThrottlingRule `json:"throttlingRules,omitempty"` }
type ResourceTypeEndpoint ¶
type ResourceTypeEndpoint struct { APIVersions []*string `json:"apiVersions,omitempty"` Enabled *bool `json:"enabled,omitempty"` Extensions []*ResourceTypeExtension `json:"extensions,omitempty"` FeaturesRule *ResourceTypeEndpointFeaturesRule `json:"featuresRule,omitempty"` Locations []*string `json:"locations,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` Timeout *string `json:"timeout,omitempty"` }
func (ResourceTypeEndpoint) MarshalJSON ¶
func (r ResourceTypeEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeEndpoint.
type ResourceTypeEndpointFeaturesRule ¶
type ResourceTypeEndpointFeaturesRule struct { // REQUIRED RequiredFeaturesPolicy *FeaturesPolicy `json:"requiredFeaturesPolicy,omitempty"` }
type ResourceTypeExtension ¶
type ResourceTypeExtension struct { EndpointURI *string `json:"endpointUri,omitempty"` ExtensionCategories []*ExtensionCategory `json:"extensionCategories,omitempty"` Timeout *string `json:"timeout,omitempty"` }
func (ResourceTypeExtension) MarshalJSON ¶
func (r ResourceTypeExtension) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeExtension.
type ResourceTypeExtensionOptions ¶
type ResourceTypeExtensionOptions struct {
ResourceCreationBegin *ResourceTypeExtensionOptionsResourceCreationBegin `json:"resourceCreationBegin,omitempty"`
}
type ResourceTypeExtensionOptionsResourceCreationBegin ¶
type ResourceTypeExtensionOptionsResourceCreationBegin struct { Request []*ExtensionOptionType `json:"request,omitempty"` Response []*ExtensionOptionType `json:"response,omitempty"` }
func (ResourceTypeExtensionOptionsResourceCreationBegin) MarshalJSON ¶ added in v0.2.0
func (r ResourceTypeExtensionOptionsResourceCreationBegin) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeExtensionOptionsResourceCreationBegin.
type ResourceTypeFeaturesRule ¶
type ResourceTypeFeaturesRule struct { // REQUIRED RequiredFeaturesPolicy *FeaturesPolicy `json:"requiredFeaturesPolicy,omitempty"` }
type ResourceTypeIdentityManagement ¶
type ResourceTypeIdentityManagement struct {
Type *IdentityManagementTypes `json:"type,omitempty"`
}
type ResourceTypeMarketplaceType ¶
type ResourceTypeMarketplaceType string
const ( ResourceTypeMarketplaceTypeAddOn ResourceTypeMarketplaceType = "AddOn" ResourceTypeMarketplaceTypeBypass ResourceTypeMarketplaceType = "Bypass" ResourceTypeMarketplaceTypeNotSpecified ResourceTypeMarketplaceType = "NotSpecified" ResourceTypeMarketplaceTypeStore ResourceTypeMarketplaceType = "Store" )
func PossibleResourceTypeMarketplaceTypeValues ¶
func PossibleResourceTypeMarketplaceTypeValues() []ResourceTypeMarketplaceType
PossibleResourceTypeMarketplaceTypeValues returns the possible values for the ResourceTypeMarketplaceType const type.
type ResourceTypeRegistration ¶
type ResourceTypeRegistration struct { Properties *ResourceTypeRegistrationProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
type ResourceTypeRegistrationArrayResponseWithContinuation ¶
type ResourceTypeRegistrationArrayResponseWithContinuation struct { // The URL to get to the next set of results, if there are any. NextLink *string `json:"nextLink,omitempty"` Value []*ResourceTypeRegistration `json:"value,omitempty"` }
type ResourceTypeRegistrationProperties ¶
type ResourceTypeRegistrationProperties struct { AuthorizationActionMappings []*AuthorizationActionMapping `json:"authorizationActionMappings,omitempty"` CheckNameAvailabilitySpecifications *ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications `json:"checkNameAvailabilitySpecifications,omitempty"` DefaultAPIVersion *string `json:"defaultApiVersion,omitempty"` DisallowedActionVerbs []*string `json:"disallowedActionVerbs,omitempty"` EnableAsyncOperation *bool `json:"enableAsyncOperation,omitempty"` EnableThirdPartyS2S *bool `json:"enableThirdPartyS2S,omitempty"` Endpoints []*ResourceTypeEndpoint `json:"endpoints,omitempty"` ExtendedLocations []*ExtendedLocationOptions `json:"extendedLocations,omitempty"` ExtensionOptions *ResourceTypeRegistrationPropertiesExtensionOptions `json:"extensionOptions,omitempty"` FeaturesRule *ResourceTypeRegistrationPropertiesFeaturesRule `json:"featuresRule,omitempty"` IdentityManagement *ResourceTypeRegistrationPropertiesIdentityManagement `json:"identityManagement,omitempty"` IsPureProxy *bool `json:"isPureProxy,omitempty"` LinkedAccessChecks []*LinkedAccessCheck `json:"linkedAccessChecks,omitempty"` LoggingRules []*LoggingRule `json:"loggingRules,omitempty"` MarketplaceType *ResourceTypeRegistrationPropertiesMarketplaceType `json:"marketplaceType,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Regionality *Regionality `json:"regionality,omitempty"` RequestHeaderOptions *ResourceTypeRegistrationPropertiesRequestHeaderOptions `json:"requestHeaderOptions,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` ResourceDeletionPolicy *ResourceDeletionPolicy `json:"resourceDeletionPolicy,omitempty"` ResourceMovePolicy *ResourceTypeRegistrationPropertiesResourceMovePolicy `json:"resourceMovePolicy,omitempty"` RoutingType *RoutingType `json:"routingType,omitempty"` ServiceTreeInfos []*ServiceTreeInfo `json:"serviceTreeInfos,omitempty"` SubscriptionLifecycleNotificationSpecifications *ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications `json:"subscriptionLifecycleNotificationSpecifications,omitempty"` SubscriptionStateRules []*SubscriptionStateRule `json:"subscriptionStateRules,omitempty"` SwaggerSpecifications []*SwaggerSpecification `json:"swaggerSpecifications,omitempty"` TemplateDeploymentOptions *ResourceTypeRegistrationPropertiesTemplateDeploymentOptions `json:"templateDeploymentOptions,omitempty"` ThrottlingRules []*ThrottlingRule `json:"throttlingRules,omitempty"` }
func (ResourceTypeRegistrationProperties) MarshalJSON ¶ added in v0.2.0
func (r ResourceTypeRegistrationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeRegistrationProperties.
type ResourceTypeRegistrationPropertiesAutoGenerated ¶
type ResourceTypeRegistrationPropertiesAutoGenerated struct { AuthorizationActionMappings []*AuthorizationActionMapping `json:"authorizationActionMappings,omitempty"` CheckNameAvailabilitySpecifications *ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications `json:"checkNameAvailabilitySpecifications,omitempty"` DefaultAPIVersion *string `json:"defaultApiVersion,omitempty"` DisallowedActionVerbs []*string `json:"disallowedActionVerbs,omitempty"` EnableAsyncOperation *bool `json:"enableAsyncOperation,omitempty"` EnableThirdPartyS2S *bool `json:"enableThirdPartyS2S,omitempty"` Endpoints []*ResourceTypeEndpoint `json:"endpoints,omitempty"` ExtendedLocations []*ExtendedLocationOptions `json:"extendedLocations,omitempty"` ExtensionOptions *ResourceTypeRegistrationPropertiesExtensionOptions `json:"extensionOptions,omitempty"` FeaturesRule *ResourceTypeRegistrationPropertiesFeaturesRule `json:"featuresRule,omitempty"` IdentityManagement *ResourceTypeRegistrationPropertiesIdentityManagement `json:"identityManagement,omitempty"` IsPureProxy *bool `json:"isPureProxy,omitempty"` LinkedAccessChecks []*LinkedAccessCheck `json:"linkedAccessChecks,omitempty"` LoggingRules []*LoggingRule `json:"loggingRules,omitempty"` MarketplaceType *ResourceTypeRegistrationPropertiesMarketplaceType `json:"marketplaceType,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Regionality *Regionality `json:"regionality,omitempty"` RequestHeaderOptions *ResourceTypeRegistrationPropertiesRequestHeaderOptions `json:"requestHeaderOptions,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` ResourceDeletionPolicy *ResourceDeletionPolicy `json:"resourceDeletionPolicy,omitempty"` ResourceMovePolicy *ResourceTypeRegistrationPropertiesResourceMovePolicy `json:"resourceMovePolicy,omitempty"` RoutingType *RoutingType `json:"routingType,omitempty"` ServiceTreeInfos []*ServiceTreeInfo `json:"serviceTreeInfos,omitempty"` SubscriptionLifecycleNotificationSpecifications *ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications `json:"subscriptionLifecycleNotificationSpecifications,omitempty"` SubscriptionStateRules []*SubscriptionStateRule `json:"subscriptionStateRules,omitempty"` SwaggerSpecifications []*SwaggerSpecification `json:"swaggerSpecifications,omitempty"` TemplateDeploymentOptions *ResourceTypeRegistrationPropertiesTemplateDeploymentOptions `json:"templateDeploymentOptions,omitempty"` ThrottlingRules []*ThrottlingRule `json:"throttlingRules,omitempty"` }
func (ResourceTypeRegistrationPropertiesAutoGenerated) MarshalJSON ¶
func (r ResourceTypeRegistrationPropertiesAutoGenerated) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeRegistrationPropertiesAutoGenerated.
type ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications ¶
type ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications struct { EnableDefaultValidation *bool `json:"enableDefaultValidation,omitempty"` ResourceTypesWithCustomValidation []*string `json:"resourceTypesWithCustomValidation,omitempty"` }
func (ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications) MarshalJSON ¶ added in v0.2.0
func (r ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications.
type ResourceTypeRegistrationPropertiesExtensionOptions ¶
type ResourceTypeRegistrationPropertiesExtensionOptions struct {
ResourceCreationBegin *ResourceTypeExtensionOptionsResourceCreationBegin `json:"resourceCreationBegin,omitempty"`
}
type ResourceTypeRegistrationPropertiesFeaturesRule ¶
type ResourceTypeRegistrationPropertiesFeaturesRule struct { // REQUIRED RequiredFeaturesPolicy *FeaturesPolicy `json:"requiredFeaturesPolicy,omitempty"` }
type ResourceTypeRegistrationPropertiesIdentityManagement ¶
type ResourceTypeRegistrationPropertiesIdentityManagement struct { ApplicationID *string `json:"applicationId,omitempty"` Type *IdentityManagementTypes `json:"type,omitempty"` }
type ResourceTypeRegistrationPropertiesMarketplaceType ¶
type ResourceTypeRegistrationPropertiesMarketplaceType string
const ( ResourceTypeRegistrationPropertiesMarketplaceTypeAddOn ResourceTypeRegistrationPropertiesMarketplaceType = "AddOn" ResourceTypeRegistrationPropertiesMarketplaceTypeBypass ResourceTypeRegistrationPropertiesMarketplaceType = "Bypass" ResourceTypeRegistrationPropertiesMarketplaceTypeNotSpecified ResourceTypeRegistrationPropertiesMarketplaceType = "NotSpecified" ResourceTypeRegistrationPropertiesMarketplaceTypeStore ResourceTypeRegistrationPropertiesMarketplaceType = "Store" )
func PossibleResourceTypeRegistrationPropertiesMarketplaceTypeValues ¶
func PossibleResourceTypeRegistrationPropertiesMarketplaceTypeValues() []ResourceTypeRegistrationPropertiesMarketplaceType
PossibleResourceTypeRegistrationPropertiesMarketplaceTypeValues returns the possible values for the ResourceTypeRegistrationPropertiesMarketplaceType const type.
type ResourceTypeRegistrationPropertiesRequestHeaderOptions ¶
type ResourceTypeRegistrationPropertiesRequestHeaderOptions struct {
OptInHeaders *OptInHeaderType `json:"optInHeaders,omitempty"`
}
type ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications ¶
type ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications struct { SoftDeleteTTL *string `json:"softDeleteTTL,omitempty"` SubscriptionStateOverrideActions []*SubscriptionStateOverrideAction `json:"subscriptionStateOverrideActions,omitempty"` }
func (ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications) MarshalJSON ¶ added in v0.2.0
func (r ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications.
type ResourceTypeRegistrationPropertiesTemplateDeploymentOptions ¶
type ResourceTypeRegistrationPropertiesTemplateDeploymentOptions struct { PreflightOptions []*PreflightOption `json:"preflightOptions,omitempty"` PreflightSupported *bool `json:"preflightSupported,omitempty"` }
func (ResourceTypeRegistrationPropertiesTemplateDeploymentOptions) MarshalJSON ¶ added in v0.2.0
func (r ResourceTypeRegistrationPropertiesTemplateDeploymentOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeRegistrationPropertiesTemplateDeploymentOptions.
type ResourceTypeRegistrationsClient ¶
type ResourceTypeRegistrationsClient struct {
// contains filtered or unexported fields
}
ResourceTypeRegistrationsClient contains the methods for the ResourceTypeRegistrations group. Don't use this type directly, use NewResourceTypeRegistrationsClient() instead.
func NewResourceTypeRegistrationsClient ¶
func NewResourceTypeRegistrationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceTypeRegistrationsClient, error)
NewResourceTypeRegistrationsClient creates a new instance of ResourceTypeRegistrationsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ResourceTypeRegistrationsClient) BeginCreateOrUpdate ¶
func (client *ResourceTypeRegistrationsClient) BeginCreateOrUpdate(ctx context.Context, providerNamespace string, resourceType string, properties ResourceTypeRegistration, options *ResourceTypeRegistrationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ResourceTypeRegistrationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a resource type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. properties - The required request body parameters supplied to the resource type registration CreateOrUpdate operation. options - ResourceTypeRegistrationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ResourceTypeRegistrationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/ResourceTypeRegistrations_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewResourceTypeRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "Microsoft.Contoso", "employees", armproviderhub.ResourceTypeRegistration{ Properties: &armproviderhub.ResourceTypeRegistrationProperties{ Endpoints: []*armproviderhub.ResourceTypeEndpoint{ { APIVersions: []*string{ to.Ptr("2020-06-01-preview")}, Locations: []*string{ to.Ptr("West US"), to.Ptr("East US"), to.Ptr("North Europe")}, RequiredFeatures: []*string{ to.Ptr("<feature flag>")}, }}, Regionality: to.Ptr(armproviderhub.RegionalityRegional), RoutingType: to.Ptr(armproviderhub.RoutingTypeDefault), SwaggerSpecifications: []*armproviderhub.SwaggerSpecification{ { APIVersions: []*string{ to.Ptr("2020-06-01-preview")}, SwaggerSpecFolderURI: to.Ptr("https://github.com/Azure/azure-rest-api-specs/blob/feature/azure/contoso/specification/contoso/resource-manager/Microsoft.SampleRP/"), }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*ResourceTypeRegistrationsClient) Delete ¶
func (client *ResourceTypeRegistrationsClient) Delete(ctx context.Context, providerNamespace string, resourceType string, options *ResourceTypeRegistrationsClientDeleteOptions) (ResourceTypeRegistrationsClientDeleteResponse, error)
Delete - Deletes a resource type If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. options - ResourceTypeRegistrationsClientDeleteOptions contains the optional parameters for the ResourceTypeRegistrationsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/ResourceTypeRegistrations_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewResourceTypeRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "Microsoft.Contoso", "testResourceType", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ResourceTypeRegistrationsClient) Get ¶
func (client *ResourceTypeRegistrationsClient) Get(ctx context.Context, providerNamespace string, resourceType string, options *ResourceTypeRegistrationsClientGetOptions) (ResourceTypeRegistrationsClientGetResponse, error)
Get - Gets a resource type details in the given subscription and provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. options - ResourceTypeRegistrationsClientGetOptions contains the optional parameters for the ResourceTypeRegistrationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/ResourceTypeRegistrations_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewResourceTypeRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "Microsoft.Contoso", "employees", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ResourceTypeRegistrationsClient) NewListByProviderRegistrationPager ¶ added in v0.4.0
func (client *ResourceTypeRegistrationsClient) NewListByProviderRegistrationPager(providerNamespace string, options *ResourceTypeRegistrationsClientListByProviderRegistrationOptions) *runtime.Pager[ResourceTypeRegistrationsClientListByProviderRegistrationResponse]
NewListByProviderRegistrationPager - Gets the list of the resource types for the given provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. options - ResourceTypeRegistrationsClientListByProviderRegistrationOptions contains the optional parameters for the ResourceTypeRegistrationsClient.ListByProviderRegistration method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/ResourceTypeRegistrations_ListByProviderRegistration.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewResourceTypeRegistrationsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByProviderRegistrationPager("Microsoft.Contoso", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ResourceTypeRegistrationsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type ResourceTypeRegistrationsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ResourceTypeRegistrationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ResourceTypeRegistrationsClient.BeginCreateOrUpdate method.
type ResourceTypeRegistrationsClientCreateOrUpdateResponse ¶ added in v0.2.0
type ResourceTypeRegistrationsClientCreateOrUpdateResponse struct {
ResourceTypeRegistration
}
ResourceTypeRegistrationsClientCreateOrUpdateResponse contains the response from method ResourceTypeRegistrationsClient.CreateOrUpdate.
type ResourceTypeRegistrationsClientDeleteOptions ¶ added in v0.2.0
type ResourceTypeRegistrationsClientDeleteOptions struct { }
ResourceTypeRegistrationsClientDeleteOptions contains the optional parameters for the ResourceTypeRegistrationsClient.Delete method.
type ResourceTypeRegistrationsClientDeleteResponse ¶ added in v0.2.0
type ResourceTypeRegistrationsClientDeleteResponse struct { }
ResourceTypeRegistrationsClientDeleteResponse contains the response from method ResourceTypeRegistrationsClient.Delete.
type ResourceTypeRegistrationsClientGetOptions ¶ added in v0.2.0
type ResourceTypeRegistrationsClientGetOptions struct { }
ResourceTypeRegistrationsClientGetOptions contains the optional parameters for the ResourceTypeRegistrationsClient.Get method.
type ResourceTypeRegistrationsClientGetResponse ¶ added in v0.2.0
type ResourceTypeRegistrationsClientGetResponse struct {
ResourceTypeRegistration
}
ResourceTypeRegistrationsClientGetResponse contains the response from method ResourceTypeRegistrationsClient.Get.
type ResourceTypeRegistrationsClientListByProviderRegistrationOptions ¶ added in v0.2.0
type ResourceTypeRegistrationsClientListByProviderRegistrationOptions struct { }
ResourceTypeRegistrationsClientListByProviderRegistrationOptions contains the optional parameters for the ResourceTypeRegistrationsClient.ListByProviderRegistration method.
type ResourceTypeRegistrationsClientListByProviderRegistrationResponse ¶ added in v0.2.0
type ResourceTypeRegistrationsClientListByProviderRegistrationResponse struct {
ResourceTypeRegistrationArrayResponseWithContinuation
}
ResourceTypeRegistrationsClientListByProviderRegistrationResponse contains the response from method ResourceTypeRegistrationsClient.ListByProviderRegistration.
type ResourceTypeRequestHeaderOptions ¶
type ResourceTypeRequestHeaderOptions struct {
OptInHeaders *OptInHeaderType `json:"optInHeaders,omitempty"`
}
type ResourceTypeSKU ¶
type ResourceTypeSKU struct { // REQUIRED SKUSettings []*SKUSetting `json:"skuSettings,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` }
func (ResourceTypeSKU) MarshalJSON ¶
func (r ResourceTypeSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeSKU.
type ResourceTypeTemplateDeploymentPolicy ¶
type ResourceTypeTemplateDeploymentPolicy struct { // REQUIRED Capabilities *TemplateDeploymentCapabilities `json:"capabilities,omitempty"` // REQUIRED PreflightOptions *TemplateDeploymentPreflightOptions `json:"preflightOptions,omitempty"` }
type ResourceValidation ¶
type ResourceValidation string
const ( ResourceValidationNotSpecified ResourceValidation = "NotSpecified" ResourceValidationProfaneWords ResourceValidation = "ProfaneWords" ResourceValidationReservedWords ResourceValidation = "ReservedWords" )
func PossibleResourceValidationValues ¶
func PossibleResourceValidationValues() []ResourceValidation
PossibleResourceValidationValues returns the possible values for the ResourceValidation const type.
type RolloutStatusBase ¶
type RolloutStatusBase struct { CompletedRegions []*string `json:"completedRegions,omitempty"` // Dictionary of FailedOrSkippedRegions map[string]*ExtendedErrorInfo `json:"failedOrSkippedRegions,omitempty"` }
func (RolloutStatusBase) MarshalJSON ¶
func (r RolloutStatusBase) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RolloutStatusBase.
type RoutingType ¶
type RoutingType string
const ( RoutingTypeCascadeExtension RoutingType = "CascadeExtension" RoutingTypeDefault RoutingType = "Default" RoutingTypeExtension RoutingType = "Extension" RoutingTypeFailover RoutingType = "Failover" RoutingTypeFanout RoutingType = "Fanout" RoutingTypeHostBased RoutingType = "HostBased" RoutingTypeLocationBased RoutingType = "LocationBased" RoutingTypeProxyOnly RoutingType = "ProxyOnly" RoutingTypeTenant RoutingType = "Tenant" )
func PossibleRoutingTypeValues ¶
func PossibleRoutingTypeValues() []RoutingType
PossibleRoutingTypeValues returns the possible values for the RoutingType const type.
type SKUCapability ¶
type SKUCapacity ¶
type SKUCapacity struct { // REQUIRED Minimum *int32 `json:"minimum,omitempty"` Default *int32 `json:"default,omitempty"` Maximum *int32 `json:"maximum,omitempty"` ScaleType *SKUScaleType `json:"scaleType,omitempty"` }
type SKULocationInfo ¶
type SKULocationInfo struct { // REQUIRED Location *string `json:"location,omitempty"` ExtendedLocations []*string `json:"extendedLocations,omitempty"` Type *SKULocationInfoType `json:"type,omitempty"` ZoneDetails []*SKUZoneDetail `json:"zoneDetails,omitempty"` Zones []*string `json:"zones,omitempty"` }
func (SKULocationInfo) MarshalJSON ¶
func (s SKULocationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SKULocationInfo.
type SKULocationInfoType ¶
type SKULocationInfoType string
const ( SKULocationInfoTypeArcZone SKULocationInfoType = "ArcZone" SKULocationInfoTypeEdgeZone SKULocationInfoType = "EdgeZone" SKULocationInfoTypeNotSpecified SKULocationInfoType = "NotSpecified" )
func PossibleSKULocationInfoTypeValues ¶
func PossibleSKULocationInfoTypeValues() []SKULocationInfoType
PossibleSKULocationInfoTypeValues returns the possible values for the SKULocationInfoType const type.
type SKUResource ¶
type SKUResource struct { Properties *SKUResourceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
type SKUResourceArrayResponseWithContinuation ¶
type SKUResourceArrayResponseWithContinuation struct { // The URL to get to the next set of results, if there are any. NextLink *string `json:"nextLink,omitempty"` Value []*SKUResource `json:"value,omitempty"` }
type SKUResourceProperties ¶
type SKUResourceProperties struct { // REQUIRED SKUSettings []*SKUSetting `json:"skuSettings,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` }
func (SKUResourceProperties) MarshalJSON ¶ added in v0.2.0
func (s SKUResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SKUResourceProperties.
type SKUScaleType ¶
type SKUScaleType string
const ( SKUScaleTypeAutomatic SKUScaleType = "Automatic" SKUScaleTypeManual SKUScaleType = "Manual" SKUScaleTypeNone SKUScaleType = "None" )
func PossibleSKUScaleTypeValues ¶
func PossibleSKUScaleTypeValues() []SKUScaleType
PossibleSKUScaleTypeValues returns the possible values for the SKUScaleType const type.
type SKUSetting ¶
type SKUSetting struct { // REQUIRED Name *string `json:"name,omitempty"` Capabilities []*SKUCapability `json:"capabilities,omitempty"` Capacity *SKUSettingCapacity `json:"capacity,omitempty"` Costs []*SKUCost `json:"costs,omitempty"` Family *string `json:"family,omitempty"` Kind *string `json:"kind,omitempty"` LocationInfo []*SKULocationInfo `json:"locationInfo,omitempty"` Locations []*string `json:"locations,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` RequiredQuotaIDs []*string `json:"requiredQuotaIds,omitempty"` Size *string `json:"size,omitempty"` Tier *string `json:"tier,omitempty"` }
func (SKUSetting) MarshalJSON ¶
func (s SKUSetting) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SKUSetting.
type SKUSettingCapacity ¶
type SKUSettingCapacity struct { // REQUIRED Minimum *int32 `json:"minimum,omitempty"` Default *int32 `json:"default,omitempty"` Maximum *int32 `json:"maximum,omitempty"` ScaleType *SKUScaleType `json:"scaleType,omitempty"` }
type SKUZoneDetail ¶
type SKUZoneDetail struct { Capabilities []*SKUCapability `json:"capabilities,omitempty"` Name []*string `json:"name,omitempty"` }
func (SKUZoneDetail) MarshalJSON ¶
func (s SKUZoneDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SKUZoneDetail.
type SKUsClient ¶
type SKUsClient struct {
// contains filtered or unexported fields
}
SKUsClient contains the methods for the SKUs group. Don't use this type directly, use NewSKUsClient() instead.
func NewSKUsClient ¶
func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SKUsClient, error)
NewSKUsClient creates a new instance of SKUsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SKUsClient) CreateOrUpdate ¶
func (client *SKUsClient) CreateOrUpdate(ctx context.Context, providerNamespace string, resourceType string, sku string, properties SKUResource, options *SKUsClientCreateOrUpdateOptions) (SKUsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates the resource type skus in the given resource type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. sku - The SKU. properties - The required body parameters supplied to the resource sku operation. options - SKUsClientCreateOrUpdateOptions contains the optional parameters for the SKUsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "Microsoft.Contoso", "testResourceType", "testSku", armproviderhub.SKUResource{ Properties: &armproviderhub.SKUResourceProperties{ SKUSettings: []*armproviderhub.SKUSetting{ { Name: to.Ptr("freeSku"), Kind: to.Ptr("Standard"), Tier: to.Ptr("Tier1"), }, { Name: to.Ptr("premiumSku"), Costs: []*armproviderhub.SKUCost{ { MeterID: to.Ptr("xxx"), }}, Kind: to.Ptr("Premium"), Tier: to.Ptr("Tier2"), }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SKUsClient) CreateOrUpdateNestedResourceTypeFirst ¶
func (client *SKUsClient) CreateOrUpdateNestedResourceTypeFirst(ctx context.Context, providerNamespace string, resourceType string, nestedResourceTypeFirst string, sku string, properties SKUResource, options *SKUsClientCreateOrUpdateNestedResourceTypeFirstOptions) (SKUsClientCreateOrUpdateNestedResourceTypeFirstResponse, error)
CreateOrUpdateNestedResourceTypeFirst - Creates or updates the resource type skus in the given resource type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. sku - The SKU. properties - The required body parameters supplied to the resource sku operation. options - SKUsClientCreateOrUpdateNestedResourceTypeFirstOptions contains the optional parameters for the SKUsClient.CreateOrUpdateNestedResourceTypeFirst method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_CreateOrUpdateNestedResourceTypeFirst.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdateNestedResourceTypeFirst(ctx, "Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "testSku", armproviderhub.SKUResource{ Properties: &armproviderhub.SKUResourceProperties{ SKUSettings: []*armproviderhub.SKUSetting{ { Name: to.Ptr("freeSku"), Kind: to.Ptr("Standard"), Tier: to.Ptr("Tier1"), }, { Name: to.Ptr("premiumSku"), Costs: []*armproviderhub.SKUCost{ { MeterID: to.Ptr("xxx"), }}, Kind: to.Ptr("Premium"), Tier: to.Ptr("Tier2"), }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SKUsClient) CreateOrUpdateNestedResourceTypeSecond ¶
func (client *SKUsClient) CreateOrUpdateNestedResourceTypeSecond(ctx context.Context, providerNamespace string, resourceType string, nestedResourceTypeFirst string, nestedResourceTypeSecond string, sku string, properties SKUResource, options *SKUsClientCreateOrUpdateNestedResourceTypeSecondOptions) (SKUsClientCreateOrUpdateNestedResourceTypeSecondResponse, error)
CreateOrUpdateNestedResourceTypeSecond - Creates or updates the resource type skus in the given resource type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. nestedResourceTypeSecond - The second child resource type. sku - The SKU. properties - The required body parameters supplied to the resource sku operation. options - SKUsClientCreateOrUpdateNestedResourceTypeSecondOptions contains the optional parameters for the SKUsClient.CreateOrUpdateNestedResourceTypeSecond method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_CreateOrUpdateNestedResourceTypeSecond.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdateNestedResourceTypeSecond(ctx, "Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "nestedResourceTypeSecond", "testSku", armproviderhub.SKUResource{ Properties: &armproviderhub.SKUResourceProperties{ SKUSettings: []*armproviderhub.SKUSetting{ { Name: to.Ptr("freeSku"), Kind: to.Ptr("Standard"), Tier: to.Ptr("Tier1"), }, { Name: to.Ptr("premiumSku"), Costs: []*armproviderhub.SKUCost{ { MeterID: to.Ptr("xxx"), }}, Kind: to.Ptr("Premium"), Tier: to.Ptr("Tier2"), }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SKUsClient) CreateOrUpdateNestedResourceTypeThird ¶
func (client *SKUsClient) CreateOrUpdateNestedResourceTypeThird(ctx context.Context, providerNamespace string, resourceType string, nestedResourceTypeFirst string, nestedResourceTypeSecond string, nestedResourceTypeThird string, sku string, properties SKUResource, options *SKUsClientCreateOrUpdateNestedResourceTypeThirdOptions) (SKUsClientCreateOrUpdateNestedResourceTypeThirdResponse, error)
CreateOrUpdateNestedResourceTypeThird - Creates or updates the resource type skus in the given resource type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. nestedResourceTypeSecond - The second child resource type. nestedResourceTypeThird - The third child resource type. sku - The SKU. properties - The required body parameters supplied to the resource sku operation. options - SKUsClientCreateOrUpdateNestedResourceTypeThirdOptions contains the optional parameters for the SKUsClient.CreateOrUpdateNestedResourceTypeThird method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_CreateOrUpdateNestedResourceTypeThird.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdateNestedResourceTypeThird(ctx, "Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "nestedResourceTypeSecond", "nestedResourceTypeThird", "testSku", armproviderhub.SKUResource{ Properties: &armproviderhub.SKUResourceProperties{ SKUSettings: []*armproviderhub.SKUSetting{ { Name: to.Ptr("freeSku"), Kind: to.Ptr("Standard"), Tier: to.Ptr("Tier1"), }, { Name: to.Ptr("premiumSku"), Costs: []*armproviderhub.SKUCost{ { MeterID: to.Ptr("xxx"), }}, Kind: to.Ptr("Premium"), Tier: to.Ptr("Tier2"), }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SKUsClient) Delete ¶
func (client *SKUsClient) Delete(ctx context.Context, providerNamespace string, resourceType string, sku string, options *SKUsClientDeleteOptions) (SKUsClientDeleteResponse, error)
Delete - Deletes a resource type sku. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. sku - The SKU. options - SKUsClientDeleteOptions contains the optional parameters for the SKUsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "Microsoft.Contoso", "testResourceType", "testSku", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*SKUsClient) DeleteNestedResourceTypeFirst ¶
func (client *SKUsClient) DeleteNestedResourceTypeFirst(ctx context.Context, providerNamespace string, resourceType string, nestedResourceTypeFirst string, sku string, options *SKUsClientDeleteNestedResourceTypeFirstOptions) (SKUsClientDeleteNestedResourceTypeFirstResponse, error)
DeleteNestedResourceTypeFirst - Deletes a resource type sku. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. sku - The SKU. options - SKUsClientDeleteNestedResourceTypeFirstOptions contains the optional parameters for the SKUsClient.DeleteNestedResourceTypeFirst method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_DeleteNestedResourceTypeFirst.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.DeleteNestedResourceTypeFirst(ctx, "Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "testSku", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*SKUsClient) DeleteNestedResourceTypeSecond ¶
func (client *SKUsClient) DeleteNestedResourceTypeSecond(ctx context.Context, providerNamespace string, resourceType string, nestedResourceTypeFirst string, nestedResourceTypeSecond string, sku string, options *SKUsClientDeleteNestedResourceTypeSecondOptions) (SKUsClientDeleteNestedResourceTypeSecondResponse, error)
DeleteNestedResourceTypeSecond - Deletes a resource type sku. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. nestedResourceTypeSecond - The second child resource type. sku - The SKU. options - SKUsClientDeleteNestedResourceTypeSecondOptions contains the optional parameters for the SKUsClient.DeleteNestedResourceTypeSecond method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_DeleteNestedResourceTypeSecond.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.DeleteNestedResourceTypeSecond(ctx, "Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "nestedResourceTypeSecond", "testSku", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*SKUsClient) DeleteNestedResourceTypeThird ¶
func (client *SKUsClient) DeleteNestedResourceTypeThird(ctx context.Context, providerNamespace string, resourceType string, nestedResourceTypeFirst string, nestedResourceTypeSecond string, nestedResourceTypeThird string, sku string, options *SKUsClientDeleteNestedResourceTypeThirdOptions) (SKUsClientDeleteNestedResourceTypeThirdResponse, error)
DeleteNestedResourceTypeThird - Deletes a resource type sku. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. nestedResourceTypeSecond - The second child resource type. nestedResourceTypeThird - The third child resource type. sku - The SKU. options - SKUsClientDeleteNestedResourceTypeThirdOptions contains the optional parameters for the SKUsClient.DeleteNestedResourceTypeThird method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_DeleteNestedResourceTypeThird.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.DeleteNestedResourceTypeThird(ctx, "Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "nestedResourceTypeSecond", "nestedResourceTypeThird", "testSku", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*SKUsClient) Get ¶
func (client *SKUsClient) Get(ctx context.Context, providerNamespace string, resourceType string, sku string, options *SKUsClientGetOptions) (SKUsClientGetResponse, error)
Get - Gets the sku details for the given resource type and sku name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. sku - The SKU. options - SKUsClientGetOptions contains the optional parameters for the SKUsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "Microsoft.Contoso", "testResourceType", "testSku", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SKUsClient) GetNestedResourceTypeFirst ¶
func (client *SKUsClient) GetNestedResourceTypeFirst(ctx context.Context, providerNamespace string, resourceType string, nestedResourceTypeFirst string, sku string, options *SKUsClientGetNestedResourceTypeFirstOptions) (SKUsClientGetNestedResourceTypeFirstResponse, error)
GetNestedResourceTypeFirst - Gets the sku details for the given resource type and sku name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. sku - The SKU. options - SKUsClientGetNestedResourceTypeFirstOptions contains the optional parameters for the SKUsClient.GetNestedResourceTypeFirst method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_GetNestedResourceTypeFirst.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetNestedResourceTypeFirst(ctx, "Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "testSku", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SKUsClient) GetNestedResourceTypeSecond ¶
func (client *SKUsClient) GetNestedResourceTypeSecond(ctx context.Context, providerNamespace string, resourceType string, nestedResourceTypeFirst string, nestedResourceTypeSecond string, sku string, options *SKUsClientGetNestedResourceTypeSecondOptions) (SKUsClientGetNestedResourceTypeSecondResponse, error)
GetNestedResourceTypeSecond - Gets the sku details for the given resource type and sku name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. nestedResourceTypeSecond - The second child resource type. sku - The SKU. options - SKUsClientGetNestedResourceTypeSecondOptions contains the optional parameters for the SKUsClient.GetNestedResourceTypeSecond method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_GetNestedResourceTypeSecond.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetNestedResourceTypeSecond(ctx, "Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "nestedResourceTypeSecond", "testSku", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SKUsClient) GetNestedResourceTypeThird ¶
func (client *SKUsClient) GetNestedResourceTypeThird(ctx context.Context, providerNamespace string, resourceType string, nestedResourceTypeFirst string, nestedResourceTypeSecond string, nestedResourceTypeThird string, sku string, options *SKUsClientGetNestedResourceTypeThirdOptions) (SKUsClientGetNestedResourceTypeThirdResponse, error)
GetNestedResourceTypeThird - Gets the sku details for the given resource type and sku name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. nestedResourceTypeSecond - The second child resource type. nestedResourceTypeThird - The third child resource type. sku - The SKU. options - SKUsClientGetNestedResourceTypeThirdOptions contains the optional parameters for the SKUsClient.GetNestedResourceTypeThird method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_GetNestedResourceTypeThird.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetNestedResourceTypeThird(ctx, "Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "nestedResourceTypeSecond", "nestedResourceTypeThird", "testSku", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SKUsClient) NewListByResourceTypeRegistrationsNestedResourceTypeFirstPager ¶ added in v0.4.0
func (client *SKUsClient) NewListByResourceTypeRegistrationsNestedResourceTypeFirstPager(providerNamespace string, resourceType string, nestedResourceTypeFirst string, options *SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstOptions) *runtime.Pager[SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstResponse]
NewListByResourceTypeRegistrationsNestedResourceTypeFirstPager - Gets the list of skus for the given resource type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. options - SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstOptions contains the optional parameters for the SKUsClient.ListByResourceTypeRegistrationsNestedResourceTypeFirst method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_ListByResourceTypeRegistrationsNestedResourceTypeFirst.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceTypeRegistrationsNestedResourceTypeFirstPager("Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SKUsClient) NewListByResourceTypeRegistrationsNestedResourceTypeSecondPager ¶ added in v0.4.0
func (client *SKUsClient) NewListByResourceTypeRegistrationsNestedResourceTypeSecondPager(providerNamespace string, resourceType string, nestedResourceTypeFirst string, nestedResourceTypeSecond string, options *SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondOptions) *runtime.Pager[SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondResponse]
NewListByResourceTypeRegistrationsNestedResourceTypeSecondPager - Gets the list of skus for the given resource type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. nestedResourceTypeSecond - The second child resource type. options - SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondOptions contains the optional parameters for the SKUsClient.ListByResourceTypeRegistrationsNestedResourceTypeSecond method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_ListByResourceTypeRegistrationsNestedResourceTypeSecond.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceTypeRegistrationsNestedResourceTypeSecondPager("Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "nestedResourceTypeSecond", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SKUsClient) NewListByResourceTypeRegistrationsNestedResourceTypeThirdPager ¶ added in v0.4.0
func (client *SKUsClient) NewListByResourceTypeRegistrationsNestedResourceTypeThirdPager(providerNamespace string, resourceType string, nestedResourceTypeFirst string, nestedResourceTypeSecond string, nestedResourceTypeThird string, options *SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdOptions) *runtime.Pager[SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdResponse]
NewListByResourceTypeRegistrationsNestedResourceTypeThirdPager - Gets the list of skus for the given resource type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. nestedResourceTypeFirst - The first child resource type. nestedResourceTypeSecond - The second child resource type. nestedResourceTypeThird - The third child resource type. options - SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdOptions contains the optional parameters for the SKUsClient.ListByResourceTypeRegistrationsNestedResourceTypeThird method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_ListByResourceTypeRegistrationsNestedResourceTypeThird.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceTypeRegistrationsNestedResourceTypeThirdPager("Microsoft.Contoso", "testResourceType", "nestedResourceTypeFirst", "nestedResourceTypeSecond", "nestedResourceTypeThird", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SKUsClient) NewListByResourceTypeRegistrationsPager ¶ added in v0.4.0
func (client *SKUsClient) NewListByResourceTypeRegistrationsPager(providerNamespace string, resourceType string, options *SKUsClientListByResourceTypeRegistrationsOptions) *runtime.Pager[SKUsClientListByResourceTypeRegistrationsResponse]
NewListByResourceTypeRegistrationsPager - Gets the list of skus for the given resource type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2020-11-20 providerNamespace - The name of the resource provider hosted within ProviderHub. resourceType - The resource type. options - SKUsClientListByResourceTypeRegistrationsOptions contains the optional parameters for the SKUsClient.ListByResourceTypeRegistrations method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/examples/Skus_ListByResourceTypeRegistrations.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armproviderhub.NewSKUsClient("ab7a8701-f7ef-471a-a2f4-d0ebbf494f77", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceTypeRegistrationsPager("Microsoft.Contoso", "testResourceType", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SKUsClientCreateOrUpdateNestedResourceTypeFirstOptions ¶ added in v0.2.0
type SKUsClientCreateOrUpdateNestedResourceTypeFirstOptions struct { }
SKUsClientCreateOrUpdateNestedResourceTypeFirstOptions contains the optional parameters for the SKUsClient.CreateOrUpdateNestedResourceTypeFirst method.
type SKUsClientCreateOrUpdateNestedResourceTypeFirstResponse ¶ added in v0.2.0
type SKUsClientCreateOrUpdateNestedResourceTypeFirstResponse struct {
SKUResource
}
SKUsClientCreateOrUpdateNestedResourceTypeFirstResponse contains the response from method SKUsClient.CreateOrUpdateNestedResourceTypeFirst.
type SKUsClientCreateOrUpdateNestedResourceTypeSecondOptions ¶ added in v0.2.0
type SKUsClientCreateOrUpdateNestedResourceTypeSecondOptions struct { }
SKUsClientCreateOrUpdateNestedResourceTypeSecondOptions contains the optional parameters for the SKUsClient.CreateOrUpdateNestedResourceTypeSecond method.
type SKUsClientCreateOrUpdateNestedResourceTypeSecondResponse ¶ added in v0.2.0
type SKUsClientCreateOrUpdateNestedResourceTypeSecondResponse struct {
SKUResource
}
SKUsClientCreateOrUpdateNestedResourceTypeSecondResponse contains the response from method SKUsClient.CreateOrUpdateNestedResourceTypeSecond.
type SKUsClientCreateOrUpdateNestedResourceTypeThirdOptions ¶ added in v0.2.0
type SKUsClientCreateOrUpdateNestedResourceTypeThirdOptions struct { }
SKUsClientCreateOrUpdateNestedResourceTypeThirdOptions contains the optional parameters for the SKUsClient.CreateOrUpdateNestedResourceTypeThird method.
type SKUsClientCreateOrUpdateNestedResourceTypeThirdResponse ¶ added in v0.2.0
type SKUsClientCreateOrUpdateNestedResourceTypeThirdResponse struct {
SKUResource
}
SKUsClientCreateOrUpdateNestedResourceTypeThirdResponse contains the response from method SKUsClient.CreateOrUpdateNestedResourceTypeThird.
type SKUsClientCreateOrUpdateOptions ¶ added in v0.2.0
type SKUsClientCreateOrUpdateOptions struct { }
SKUsClientCreateOrUpdateOptions contains the optional parameters for the SKUsClient.CreateOrUpdate method.
type SKUsClientCreateOrUpdateResponse ¶ added in v0.2.0
type SKUsClientCreateOrUpdateResponse struct {
SKUResource
}
SKUsClientCreateOrUpdateResponse contains the response from method SKUsClient.CreateOrUpdate.
type SKUsClientDeleteNestedResourceTypeFirstOptions ¶ added in v0.2.0
type SKUsClientDeleteNestedResourceTypeFirstOptions struct { }
SKUsClientDeleteNestedResourceTypeFirstOptions contains the optional parameters for the SKUsClient.DeleteNestedResourceTypeFirst method.
type SKUsClientDeleteNestedResourceTypeFirstResponse ¶ added in v0.2.0
type SKUsClientDeleteNestedResourceTypeFirstResponse struct { }
SKUsClientDeleteNestedResourceTypeFirstResponse contains the response from method SKUsClient.DeleteNestedResourceTypeFirst.
type SKUsClientDeleteNestedResourceTypeSecondOptions ¶ added in v0.2.0
type SKUsClientDeleteNestedResourceTypeSecondOptions struct { }
SKUsClientDeleteNestedResourceTypeSecondOptions contains the optional parameters for the SKUsClient.DeleteNestedResourceTypeSecond method.
type SKUsClientDeleteNestedResourceTypeSecondResponse ¶ added in v0.2.0
type SKUsClientDeleteNestedResourceTypeSecondResponse struct { }
SKUsClientDeleteNestedResourceTypeSecondResponse contains the response from method SKUsClient.DeleteNestedResourceTypeSecond.
type SKUsClientDeleteNestedResourceTypeThirdOptions ¶ added in v0.2.0
type SKUsClientDeleteNestedResourceTypeThirdOptions struct { }
SKUsClientDeleteNestedResourceTypeThirdOptions contains the optional parameters for the SKUsClient.DeleteNestedResourceTypeThird method.
type SKUsClientDeleteNestedResourceTypeThirdResponse ¶ added in v0.2.0
type SKUsClientDeleteNestedResourceTypeThirdResponse struct { }
SKUsClientDeleteNestedResourceTypeThirdResponse contains the response from method SKUsClient.DeleteNestedResourceTypeThird.
type SKUsClientDeleteOptions ¶ added in v0.2.0
type SKUsClientDeleteOptions struct { }
SKUsClientDeleteOptions contains the optional parameters for the SKUsClient.Delete method.
type SKUsClientDeleteResponse ¶ added in v0.2.0
type SKUsClientDeleteResponse struct { }
SKUsClientDeleteResponse contains the response from method SKUsClient.Delete.
type SKUsClientGetNestedResourceTypeFirstOptions ¶ added in v0.2.0
type SKUsClientGetNestedResourceTypeFirstOptions struct { }
SKUsClientGetNestedResourceTypeFirstOptions contains the optional parameters for the SKUsClient.GetNestedResourceTypeFirst method.
type SKUsClientGetNestedResourceTypeFirstResponse ¶ added in v0.2.0
type SKUsClientGetNestedResourceTypeFirstResponse struct {
SKUResource
}
SKUsClientGetNestedResourceTypeFirstResponse contains the response from method SKUsClient.GetNestedResourceTypeFirst.
type SKUsClientGetNestedResourceTypeSecondOptions ¶ added in v0.2.0
type SKUsClientGetNestedResourceTypeSecondOptions struct { }
SKUsClientGetNestedResourceTypeSecondOptions contains the optional parameters for the SKUsClient.GetNestedResourceTypeSecond method.
type SKUsClientGetNestedResourceTypeSecondResponse ¶ added in v0.2.0
type SKUsClientGetNestedResourceTypeSecondResponse struct {
SKUResource
}
SKUsClientGetNestedResourceTypeSecondResponse contains the response from method SKUsClient.GetNestedResourceTypeSecond.
type SKUsClientGetNestedResourceTypeThirdOptions ¶ added in v0.2.0
type SKUsClientGetNestedResourceTypeThirdOptions struct { }
SKUsClientGetNestedResourceTypeThirdOptions contains the optional parameters for the SKUsClient.GetNestedResourceTypeThird method.
type SKUsClientGetNestedResourceTypeThirdResponse ¶ added in v0.2.0
type SKUsClientGetNestedResourceTypeThirdResponse struct {
SKUResource
}
SKUsClientGetNestedResourceTypeThirdResponse contains the response from method SKUsClient.GetNestedResourceTypeThird.
type SKUsClientGetOptions ¶ added in v0.2.0
type SKUsClientGetOptions struct { }
SKUsClientGetOptions contains the optional parameters for the SKUsClient.Get method.
type SKUsClientGetResponse ¶ added in v0.2.0
type SKUsClientGetResponse struct {
SKUResource
}
SKUsClientGetResponse contains the response from method SKUsClient.Get.
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstOptions ¶ added in v0.2.0
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstOptions struct { }
SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstOptions contains the optional parameters for the SKUsClient.ListByResourceTypeRegistrationsNestedResourceTypeFirst method.
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstResponse ¶ added in v0.2.0
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstResponse struct {
SKUResourceArrayResponseWithContinuation
}
SKUsClientListByResourceTypeRegistrationsNestedResourceTypeFirstResponse contains the response from method SKUsClient.ListByResourceTypeRegistrationsNestedResourceTypeFirst.
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondOptions ¶ added in v0.2.0
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondOptions struct { }
SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondOptions contains the optional parameters for the SKUsClient.ListByResourceTypeRegistrationsNestedResourceTypeSecond method.
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondResponse ¶ added in v0.2.0
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondResponse struct {
SKUResourceArrayResponseWithContinuation
}
SKUsClientListByResourceTypeRegistrationsNestedResourceTypeSecondResponse contains the response from method SKUsClient.ListByResourceTypeRegistrationsNestedResourceTypeSecond.
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdOptions ¶ added in v0.2.0
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdOptions struct { }
SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdOptions contains the optional parameters for the SKUsClient.ListByResourceTypeRegistrationsNestedResourceTypeThird method.
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdResponse ¶ added in v0.2.0
type SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdResponse struct {
SKUResourceArrayResponseWithContinuation
}
SKUsClientListByResourceTypeRegistrationsNestedResourceTypeThirdResponse contains the response from method SKUsClient.ListByResourceTypeRegistrationsNestedResourceTypeThird.
type SKUsClientListByResourceTypeRegistrationsOptions ¶ added in v0.2.0
type SKUsClientListByResourceTypeRegistrationsOptions struct { }
SKUsClientListByResourceTypeRegistrationsOptions contains the optional parameters for the SKUsClient.ListByResourceTypeRegistrations method.
type SKUsClientListByResourceTypeRegistrationsResponse ¶ added in v0.2.0
type SKUsClientListByResourceTypeRegistrationsResponse struct {
SKUResourceArrayResponseWithContinuation
}
SKUsClientListByResourceTypeRegistrationsResponse contains the response from method SKUsClient.ListByResourceTypeRegistrations.
type ServiceTreeInfo ¶
type SubscriptionLifecycleNotificationSpecifications ¶
type SubscriptionLifecycleNotificationSpecifications struct { SoftDeleteTTL *string `json:"softDeleteTTL,omitempty"` SubscriptionStateOverrideActions []*SubscriptionStateOverrideAction `json:"subscriptionStateOverrideActions,omitempty"` }
func (SubscriptionLifecycleNotificationSpecifications) MarshalJSON ¶
func (s SubscriptionLifecycleNotificationSpecifications) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionLifecycleNotificationSpecifications.
type SubscriptionNotificationOperation ¶
type SubscriptionNotificationOperation string
const ( SubscriptionNotificationOperationBillingCancellation SubscriptionNotificationOperation = "BillingCancellation" SubscriptionNotificationOperationDeleteAllResources SubscriptionNotificationOperation = "DeleteAllResources" SubscriptionNotificationOperationNoOp SubscriptionNotificationOperation = "NoOp" SubscriptionNotificationOperationNotDefined SubscriptionNotificationOperation = "NotDefined" SubscriptionNotificationOperationSoftDeleteAllResources SubscriptionNotificationOperation = "SoftDeleteAllResources" SubscriptionNotificationOperationUndoSoftDelete SubscriptionNotificationOperation = "UndoSoftDelete" )
func PossibleSubscriptionNotificationOperationValues ¶
func PossibleSubscriptionNotificationOperationValues() []SubscriptionNotificationOperation
PossibleSubscriptionNotificationOperationValues returns the possible values for the SubscriptionNotificationOperation const type.
type SubscriptionReregistrationResult ¶
type SubscriptionReregistrationResult string
const ( SubscriptionReregistrationResultConditionalUpdate SubscriptionReregistrationResult = "ConditionalUpdate" SubscriptionReregistrationResultFailed SubscriptionReregistrationResult = "Failed" SubscriptionReregistrationResultForcedUpdate SubscriptionReregistrationResult = "ForcedUpdate" SubscriptionReregistrationResultNotApplicable SubscriptionReregistrationResult = "NotApplicable" )
func PossibleSubscriptionReregistrationResultValues ¶
func PossibleSubscriptionReregistrationResultValues() []SubscriptionReregistrationResult
PossibleSubscriptionReregistrationResultValues returns the possible values for the SubscriptionReregistrationResult const type.
type SubscriptionState ¶
type SubscriptionState string
const ( SubscriptionStateDeleted SubscriptionState = "Deleted" SubscriptionStateDisabled SubscriptionState = "Disabled" SubscriptionStateEnabled SubscriptionState = "Enabled" SubscriptionStateNotDefined SubscriptionState = "NotDefined" SubscriptionStatePastDue SubscriptionState = "PastDue" SubscriptionStateWarned SubscriptionState = "Warned" )
func PossibleSubscriptionStateValues ¶
func PossibleSubscriptionStateValues() []SubscriptionState
PossibleSubscriptionStateValues returns the possible values for the SubscriptionState const type.
type SubscriptionStateOverrideAction ¶
type SubscriptionStateOverrideAction struct { // REQUIRED Action *SubscriptionNotificationOperation `json:"action,omitempty"` // REQUIRED State *SubscriptionTransitioningState `json:"state,omitempty"` }
type SubscriptionStateRule ¶
type SubscriptionStateRule struct { AllowedActions []*string `json:"allowedActions,omitempty"` State *SubscriptionState `json:"state,omitempty"` }
func (SubscriptionStateRule) MarshalJSON ¶
func (s SubscriptionStateRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionStateRule.
type SubscriptionTransitioningState ¶
type SubscriptionTransitioningState string
const ( SubscriptionTransitioningStateDeleted SubscriptionTransitioningState = "Deleted" SubscriptionTransitioningStateRegistered SubscriptionTransitioningState = "Registered" SubscriptionTransitioningStateSuspended SubscriptionTransitioningState = "Suspended" SubscriptionTransitioningStateSuspendedToDeleted SubscriptionTransitioningState = "SuspendedToDeleted" SubscriptionTransitioningStateSuspendedToRegistered SubscriptionTransitioningState = "SuspendedToRegistered" SubscriptionTransitioningStateSuspendedToUnregistered SubscriptionTransitioningState = "SuspendedToUnregistered" SubscriptionTransitioningStateSuspendedToWarned SubscriptionTransitioningState = "SuspendedToWarned" SubscriptionTransitioningStateUnregistered SubscriptionTransitioningState = "Unregistered" SubscriptionTransitioningStateWarned SubscriptionTransitioningState = "Warned" SubscriptionTransitioningStateWarnedToDeleted SubscriptionTransitioningState = "WarnedToDeleted" SubscriptionTransitioningStateWarnedToRegistered SubscriptionTransitioningState = "WarnedToRegistered" SubscriptionTransitioningStateWarnedToSuspended SubscriptionTransitioningState = "WarnedToSuspended" SubscriptionTransitioningStateWarnedToUnregistered SubscriptionTransitioningState = "WarnedToUnregistered" )
func PossibleSubscriptionTransitioningStateValues ¶
func PossibleSubscriptionTransitioningStateValues() []SubscriptionTransitioningState
PossibleSubscriptionTransitioningStateValues returns the possible values for the SubscriptionTransitioningState const type.
type SwaggerSpecification ¶
type SwaggerSpecification struct { APIVersions []*string `json:"apiVersions,omitempty"` SwaggerSpecFolderURI *string `json:"swaggerSpecFolderUri,omitempty"` }
func (SwaggerSpecification) MarshalJSON ¶
func (s SwaggerSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SwaggerSpecification.
type TemplateDeploymentCapabilities ¶
type TemplateDeploymentCapabilities string
const ( TemplateDeploymentCapabilitiesDefault TemplateDeploymentCapabilities = "Default" TemplateDeploymentCapabilitiesPreflight TemplateDeploymentCapabilities = "Preflight" )
func PossibleTemplateDeploymentCapabilitiesValues ¶
func PossibleTemplateDeploymentCapabilitiesValues() []TemplateDeploymentCapabilities
PossibleTemplateDeploymentCapabilitiesValues returns the possible values for the TemplateDeploymentCapabilities const type.
type TemplateDeploymentOptions ¶
type TemplateDeploymentOptions struct { PreflightOptions []*PreflightOption `json:"preflightOptions,omitempty"` PreflightSupported *bool `json:"preflightSupported,omitempty"` }
func (TemplateDeploymentOptions) MarshalJSON ¶
func (t TemplateDeploymentOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TemplateDeploymentOptions.
type TemplateDeploymentPolicy ¶
type TemplateDeploymentPolicy struct { // REQUIRED Capabilities *TemplateDeploymentCapabilities `json:"capabilities,omitempty"` // REQUIRED PreflightOptions *TemplateDeploymentPreflightOptions `json:"preflightOptions,omitempty"` }
type TemplateDeploymentPreflightOptions ¶
type TemplateDeploymentPreflightOptions string
const ( TemplateDeploymentPreflightOptionsDeploymentRequests TemplateDeploymentPreflightOptions = "DeploymentRequests" TemplateDeploymentPreflightOptionsNone TemplateDeploymentPreflightOptions = "None" TemplateDeploymentPreflightOptionsRegisteredOnly TemplateDeploymentPreflightOptions = "RegisteredOnly" TemplateDeploymentPreflightOptionsTestOnly TemplateDeploymentPreflightOptions = "TestOnly" TemplateDeploymentPreflightOptionsValidationRequests TemplateDeploymentPreflightOptions = "ValidationRequests" )
func PossibleTemplateDeploymentPreflightOptionsValues ¶
func PossibleTemplateDeploymentPreflightOptionsValues() []TemplateDeploymentPreflightOptions
PossibleTemplateDeploymentPreflightOptionsValues returns the possible values for the TemplateDeploymentPreflightOptions const type.
type ThirdPartyProviderAuthorization ¶
type ThirdPartyProviderAuthorization struct { Authorizations []*LightHouseAuthorization `json:"authorizations,omitempty"` ManagedByTenantID *string `json:"managedByTenantId,omitempty"` }
func (ThirdPartyProviderAuthorization) MarshalJSON ¶
func (t ThirdPartyProviderAuthorization) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ThirdPartyProviderAuthorization.
type ThrottlingMetric ¶
type ThrottlingMetric struct { // REQUIRED Limit *int64 `json:"limit,omitempty"` // REQUIRED Type *ThrottlingMetricType `json:"type,omitempty"` Interval *string `json:"interval,omitempty"` }
type ThrottlingMetricType ¶
type ThrottlingMetricType string
const ( ThrottlingMetricTypeNotSpecified ThrottlingMetricType = "NotSpecified" ThrottlingMetricTypeNumberOfRequests ThrottlingMetricType = "NumberOfRequests" ThrottlingMetricTypeNumberOfResources ThrottlingMetricType = "NumberOfResources" )
func PossibleThrottlingMetricTypeValues ¶
func PossibleThrottlingMetricTypeValues() []ThrottlingMetricType
PossibleThrottlingMetricTypeValues returns the possible values for the ThrottlingMetricType const type.
type ThrottlingRule ¶
type ThrottlingRule struct { // REQUIRED Action *string `json:"action,omitempty"` // REQUIRED Metrics []*ThrottlingMetric `json:"metrics,omitempty"` RequiredFeatures []*string `json:"requiredFeatures,omitempty"` }
func (ThrottlingRule) MarshalJSON ¶
func (t ThrottlingRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ThrottlingRule.
type TrafficRegionCategory ¶
type TrafficRegionCategory string
const ( TrafficRegionCategoryCanary TrafficRegionCategory = "Canary" TrafficRegionCategoryHighTraffic TrafficRegionCategory = "HighTraffic" TrafficRegionCategoryLowTraffic TrafficRegionCategory = "LowTraffic" TrafficRegionCategoryMediumTraffic TrafficRegionCategory = "MediumTraffic" TrafficRegionCategoryNone TrafficRegionCategory = "None" TrafficRegionCategoryNotSpecified TrafficRegionCategory = "NotSpecified" TrafficRegionCategoryRestOfTheWorldGroupOne TrafficRegionCategory = "RestOfTheWorldGroupOne" TrafficRegionCategoryRestOfTheWorldGroupTwo TrafficRegionCategory = "RestOfTheWorldGroupTwo" )
func PossibleTrafficRegionCategoryValues ¶
func PossibleTrafficRegionCategoryValues() []TrafficRegionCategory
PossibleTrafficRegionCategoryValues returns the possible values for the TrafficRegionCategory const type.
type TrafficRegionRolloutConfiguration ¶
type TrafficRegionRolloutConfiguration struct { Regions []*string `json:"regions,omitempty"` WaitDuration *string `json:"waitDuration,omitempty"` }
func (TrafficRegionRolloutConfiguration) MarshalJSON ¶
func (t TrafficRegionRolloutConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficRegionRolloutConfiguration.
type TrafficRegions ¶
type TrafficRegions struct {
Regions []*string `json:"regions,omitempty"`
}
func (TrafficRegions) MarshalJSON ¶
func (t TrafficRegions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficRegions.
type TypedErrorInfo ¶
type TypedErrorInfo struct { // REQUIRED Type *string `json:"type,omitempty"` // READ-ONLY; Anything Info interface{} `json:"info,omitempty" azure:"ro"` }
Source Files
¶
- build.go
- zz_generated_client.go
- zz_generated_constants.go
- zz_generated_customrollouts_client.go
- zz_generated_defaultrollouts_client.go
- zz_generated_models.go
- zz_generated_models_serde.go
- zz_generated_notificationregistrations_client.go
- zz_generated_operations_client.go
- zz_generated_providerregistrations_client.go
- zz_generated_resourcetyperegistrations_client.go
- zz_generated_response_types.go
- zz_generated_skus_client.go
- zz_generated_time_rfc3339.go