Documentation ¶
Index ¶
- type APIKeyAuthentication
- type ArtifactSource
- type ArtifactSourceProperties
- type ArtifactSourcePropertiesAutoGenerated
- type ArtifactSourcesClient
- func (client *ArtifactSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, artifactSourceName string, ...) (ArtifactSourcesClientCreateOrUpdateResponse, error)
- func (client *ArtifactSourcesClient) Delete(ctx context.Context, resourceGroupName string, artifactSourceName string, ...) (ArtifactSourcesClientDeleteResponse, error)
- func (client *ArtifactSourcesClient) Get(ctx context.Context, resourceGroupName string, artifactSourceName string, ...) (ArtifactSourcesClientGetResponse, error)
- func (client *ArtifactSourcesClient) List(ctx context.Context, resourceGroupName string, ...) (ArtifactSourcesClientListResponse, error)
- type ArtifactSourcesClientCreateOrUpdateOptions
- type ArtifactSourcesClientCreateOrUpdateResponse
- type ArtifactSourcesClientCreateOrUpdateResult
- type ArtifactSourcesClientDeleteOptions
- type ArtifactSourcesClientDeleteResponse
- type ArtifactSourcesClientGetOptions
- type ArtifactSourcesClientGetResponse
- type ArtifactSourcesClientGetResult
- type ArtifactSourcesClientListOptions
- type ArtifactSourcesClientListResponse
- type ArtifactSourcesClientListResult
- type Authentication
- type AuthenticationClassification
- type CloudError
- type CloudErrorBody
- type DeploymentMode
- type HealthCheckStepAttributes
- type HealthCheckStepAttributesClassification
- type HealthCheckStepProperties
- type Identity
- type Message
- type Operation
- type OperationDetail
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type OperationsClientListResult
- type OperationsList
- type PrePostStep
- type Resource
- type ResourceOperation
- type RestAuthLocation
- type RestAuthType
- type RestHealthCheck
- type RestHealthCheckStepAttributes
- type RestMatchQuantifier
- type RestParameters
- type RestRequest
- type RestRequestAuthentication
- type RestRequestAuthenticationClassification
- type RestRequestMethod
- type RestResponse
- type RestResponseRegex
- type Rollout
- type RolloutIdentityAuthentication
- type RolloutOperationInfo
- type RolloutProperties
- type RolloutPropertiesAutoGenerated
- type RolloutRequest
- type RolloutRequestProperties
- type RolloutStep
- type RolloutsClient
- func (client *RolloutsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, rolloutName string, ...) (RolloutsClientCreateOrUpdatePollerResponse, error)
- func (client *RolloutsClient) Cancel(ctx context.Context, resourceGroupName string, rolloutName string, ...) (RolloutsClientCancelResponse, error)
- func (client *RolloutsClient) Delete(ctx context.Context, resourceGroupName string, rolloutName string, ...) (RolloutsClientDeleteResponse, error)
- func (client *RolloutsClient) Get(ctx context.Context, resourceGroupName string, rolloutName string, ...) (RolloutsClientGetResponse, error)
- func (client *RolloutsClient) List(ctx context.Context, resourceGroupName string, ...) (RolloutsClientListResponse, error)
- func (client *RolloutsClient) Restart(ctx context.Context, resourceGroupName string, rolloutName string, ...) (RolloutsClientRestartResponse, error)
- type RolloutsClientBeginCreateOrUpdateOptions
- type RolloutsClientCancelOptions
- type RolloutsClientCancelResponse
- type RolloutsClientCancelResult
- type RolloutsClientCreateOrUpdatePoller
- func (p *RolloutsClientCreateOrUpdatePoller) Done() bool
- func (p *RolloutsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (RolloutsClientCreateOrUpdateResponse, error)
- func (p *RolloutsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *RolloutsClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type RolloutsClientCreateOrUpdatePollerResponse
- type RolloutsClientCreateOrUpdateResponse
- type RolloutsClientCreateOrUpdateResult
- type RolloutsClientDeleteOptions
- type RolloutsClientDeleteResponse
- type RolloutsClientGetOptions
- type RolloutsClientGetResponse
- type RolloutsClientGetResult
- type RolloutsClientListOptions
- type RolloutsClientListResponse
- type RolloutsClientListResult
- type RolloutsClientRestartOptions
- type RolloutsClientRestartResponse
- type RolloutsClientRestartResult
- type SasAuthentication
- type SasProperties
- type Service
- type ServiceProperties
- type ServiceResource
- type ServiceResourceProperties
- type ServiceTopologiesClient
- func (client *ServiceTopologiesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServiceTopologiesClientCreateOrUpdateResponse, error)
- func (client *ServiceTopologiesClient) Delete(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServiceTopologiesClientDeleteResponse, error)
- func (client *ServiceTopologiesClient) Get(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServiceTopologiesClientGetResponse, error)
- func (client *ServiceTopologiesClient) List(ctx context.Context, resourceGroupName string, ...) (ServiceTopologiesClientListResponse, error)
- type ServiceTopologiesClientCreateOrUpdateOptions
- type ServiceTopologiesClientCreateOrUpdateResponse
- type ServiceTopologiesClientCreateOrUpdateResult
- type ServiceTopologiesClientDeleteOptions
- type ServiceTopologiesClientDeleteResponse
- type ServiceTopologiesClientGetOptions
- type ServiceTopologiesClientGetResponse
- type ServiceTopologiesClientGetResult
- type ServiceTopologiesClientListOptions
- type ServiceTopologiesClientListResponse
- type ServiceTopologiesClientListResult
- type ServiceTopologyProperties
- type ServiceTopologyResource
- type ServiceTopologyResourceProperties
- type ServiceUnit
- type ServiceUnitArtifacts
- type ServiceUnitProperties
- type ServiceUnitResource
- type ServiceUnitResourceProperties
- type ServiceUnitsClient
- func (client *ServiceUnitsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServiceUnitsClientCreateOrUpdatePollerResponse, error)
- func (client *ServiceUnitsClient) Delete(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServiceUnitsClientDeleteResponse, error)
- func (client *ServiceUnitsClient) Get(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServiceUnitsClientGetResponse, error)
- func (client *ServiceUnitsClient) List(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServiceUnitsClientListResponse, error)
- type ServiceUnitsClientBeginCreateOrUpdateOptions
- type ServiceUnitsClientCreateOrUpdatePoller
- func (p *ServiceUnitsClientCreateOrUpdatePoller) Done() bool
- func (p *ServiceUnitsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ServiceUnitsClientCreateOrUpdateResponse, error)
- func (p *ServiceUnitsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ServiceUnitsClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type ServiceUnitsClientCreateOrUpdatePollerResponse
- type ServiceUnitsClientCreateOrUpdateResponse
- type ServiceUnitsClientCreateOrUpdateResult
- type ServiceUnitsClientDeleteOptions
- type ServiceUnitsClientDeleteResponse
- type ServiceUnitsClientGetOptions
- type ServiceUnitsClientGetResponse
- type ServiceUnitsClientGetResult
- type ServiceUnitsClientListOptions
- type ServiceUnitsClientListResponse
- type ServiceUnitsClientListResult
- type ServicesClient
- func (client *ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServicesClientCreateOrUpdateResponse, error)
- func (client *ServicesClient) Delete(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServicesClientDeleteResponse, error)
- func (client *ServicesClient) Get(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServicesClientGetResponse, error)
- func (client *ServicesClient) List(ctx context.Context, resourceGroupName string, serviceTopologyName string, ...) (ServicesClientListResponse, error)
- type ServicesClientCreateOrUpdateOptions
- type ServicesClientCreateOrUpdateResponse
- type ServicesClientCreateOrUpdateResult
- type ServicesClientDeleteOptions
- type ServicesClientDeleteResponse
- type ServicesClientGetOptions
- type ServicesClientGetResponse
- type ServicesClientGetResult
- type ServicesClientListOptions
- type ServicesClientListResponse
- type ServicesClientListResult
- type StepGroup
- type StepOperationInfo
- type StepProperties
- type StepPropertiesClassification
- type StepResource
- type StepType
- type StepsClient
- func (client *StepsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, stepName string, ...) (StepsClientCreateOrUpdateResponse, error)
- func (client *StepsClient) Delete(ctx context.Context, resourceGroupName string, stepName string, ...) (StepsClientDeleteResponse, error)
- func (client *StepsClient) Get(ctx context.Context, resourceGroupName string, stepName string, ...) (StepsClientGetResponse, error)
- func (client *StepsClient) List(ctx context.Context, resourceGroupName string, options *StepsClientListOptions) (StepsClientListResponse, error)
- type StepsClientCreateOrUpdateOptions
- type StepsClientCreateOrUpdateResponse
- type StepsClientCreateOrUpdateResult
- type StepsClientDeleteOptions
- type StepsClientDeleteResponse
- type StepsClientGetOptions
- type StepsClientGetResponse
- type StepsClientGetResult
- type StepsClientListOptions
- type StepsClientListResponse
- type StepsClientListResult
- type TrackedResource
- type WaitStepAttributes
- type WaitStepProperties
Examples ¶
- ArtifactSourcesClient.CreateOrUpdate
- ArtifactSourcesClient.Delete
- ArtifactSourcesClient.Get
- ArtifactSourcesClient.List
- OperationsClient.List
- RolloutsClient.BeginCreateOrUpdate
- RolloutsClient.Cancel
- RolloutsClient.Delete
- RolloutsClient.Get
- RolloutsClient.List
- RolloutsClient.Restart
- ServiceTopologiesClient.CreateOrUpdate
- ServiceTopologiesClient.Delete
- ServiceTopologiesClient.Get
- ServiceTopologiesClient.List
- ServiceUnitsClient.BeginCreateOrUpdate
- ServiceUnitsClient.Delete
- ServiceUnitsClient.Get
- ServiceUnitsClient.List
- ServicesClient.CreateOrUpdate
- ServicesClient.Delete
- ServicesClient.Get
- ServicesClient.List
- StepsClient.CreateOrUpdate
- StepsClient.Delete
- StepsClient.Get
- StepsClient.List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyAuthentication ¶
type APIKeyAuthentication struct { // REQUIRED; The location of the authentication key/value pair in the request. In *RestAuthLocation `json:"in,omitempty"` // REQUIRED; The key name of the authentication key/value pair. Name *string `json:"name,omitempty"` // REQUIRED; The authentication type. Type *RestAuthType `json:"type,omitempty"` // REQUIRED; The value of the authentication key/value pair. Value *string `json:"value,omitempty"` }
APIKeyAuthentication - ApiKey authentication gives a name and a value that can be included in either the request header or query parameters.
func (*APIKeyAuthentication) GetRestRequestAuthentication ¶ added in v0.2.0
func (a *APIKeyAuthentication) GetRestRequestAuthentication() *RestRequestAuthentication
GetRestRequestAuthentication implements the RestRequestAuthenticationClassification interface for type APIKeyAuthentication.
func (APIKeyAuthentication) MarshalJSON ¶
func (a APIKeyAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIKeyAuthentication.
func (*APIKeyAuthentication) UnmarshalJSON ¶
func (a *APIKeyAuthentication) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type APIKeyAuthentication.
type ArtifactSource ¶
type ArtifactSource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // The properties that define the artifact source. Properties *ArtifactSourceProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,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"` }
ArtifactSource - The resource that defines the source location where the artifacts are located.
func (ArtifactSource) MarshalJSON ¶
func (a ArtifactSource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ArtifactSource.
type ArtifactSourceProperties ¶
type ArtifactSourceProperties struct { // REQUIRED; The authentication method to use to access the artifact source. Authentication AuthenticationClassification `json:"authentication,omitempty"` // REQUIRED; The type of artifact source used. SourceType *string `json:"sourceType,omitempty"` // The path from the location that the 'authentication' property [say, a SAS URI to the blob container] refers to, to the // location of the artifacts. This can be used to differentiate different versions // of the artifacts. Or, different types of artifacts like binaries or templates. The location referenced by the authentication // property concatenated with this optional artifactRoot path forms the // artifact source location where the artifacts are expected to be found. ArtifactRoot *string `json:"artifactRoot,omitempty"` }
ArtifactSourceProperties - The properties that define the artifact source.
func (ArtifactSourceProperties) MarshalJSON ¶ added in v0.2.0
func (a ArtifactSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ArtifactSourceProperties.
func (*ArtifactSourceProperties) UnmarshalJSON ¶ added in v0.2.0
func (a *ArtifactSourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ArtifactSourceProperties.
type ArtifactSourcePropertiesAutoGenerated ¶
type ArtifactSourcePropertiesAutoGenerated struct { // REQUIRED; The authentication method to use to access the artifact source. Authentication AuthenticationClassification `json:"authentication,omitempty"` // REQUIRED; The type of artifact source used. SourceType *string `json:"sourceType,omitempty"` // The path from the location that the 'authentication' property [say, a SAS URI to the blob container] refers to, to the // location of the artifacts. This can be used to differentiate different versions // of the artifacts. Or, different types of artifacts like binaries or templates. The location referenced by the authentication // property concatenated with this optional artifactRoot path forms the // artifact source location where the artifacts are expected to be found. ArtifactRoot *string `json:"artifactRoot,omitempty"` }
ArtifactSourcePropertiesAutoGenerated - The properties that define the source location where the artifacts are located.
func (ArtifactSourcePropertiesAutoGenerated) MarshalJSON ¶
func (a ArtifactSourcePropertiesAutoGenerated) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ArtifactSourcePropertiesAutoGenerated.
func (*ArtifactSourcePropertiesAutoGenerated) UnmarshalJSON ¶
func (a *ArtifactSourcePropertiesAutoGenerated) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ArtifactSourcePropertiesAutoGenerated.
type ArtifactSourcesClient ¶
type ArtifactSourcesClient struct {
// contains filtered or unexported fields
}
ArtifactSourcesClient contains the methods for the ArtifactSources group. Don't use this type directly, use NewArtifactSourcesClient() instead.
func NewArtifactSourcesClient ¶
func NewArtifactSourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ArtifactSourcesClient
NewArtifactSourcesClient creates a new instance of ArtifactSourcesClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ArtifactSourcesClient) CreateOrUpdate ¶
func (client *ArtifactSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, artifactSourceName string, options *ArtifactSourcesClientCreateOrUpdateOptions) (ArtifactSourcesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Synchronously creates a new artifact source or updates an existing artifact source. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. artifactSourceName - The name of the artifact source. options - ArtifactSourcesClientCreateOrUpdateOptions contains the optional parameters for the ArtifactSourcesClient.CreateOrUpdate method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/artifactsource_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewArtifactSourcesClient("<subscription-id>", cred, nil) _, err = client.CreateOrUpdate(ctx, "<resource-group-name>", "<artifact-source-name>", &armdeploymentmanager.ArtifactSourcesClientCreateOrUpdateOptions{ArtifactSourceInfo: &armdeploymentmanager.ArtifactSource{ Location: to.StringPtr("<location>"), Tags: map[string]*string{}, Properties: &armdeploymentmanager.ArtifactSourceProperties{ Authentication: &armdeploymentmanager.SasAuthentication{ Type: to.StringPtr("<type>"), Properties: &armdeploymentmanager.SasProperties{ SasURI: to.StringPtr("<sas-uri>"), }, }, SourceType: to.StringPtr("<source-type>"), }, }, }) if err != nil { log.Fatal(err) } }
Output:
func (*ArtifactSourcesClient) Delete ¶
func (client *ArtifactSourcesClient) Delete(ctx context.Context, resourceGroupName string, artifactSourceName string, options *ArtifactSourcesClientDeleteOptions) (ArtifactSourcesClientDeleteResponse, error)
Delete - Deletes an artifact source. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. artifactSourceName - The name of the artifact source. options - ArtifactSourcesClientDeleteOptions contains the optional parameters for the ArtifactSourcesClient.Delete method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/artifactsource_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewArtifactSourcesClient("<subscription-id>", cred, nil) _, err = client.Delete(ctx, "<resource-group-name>", "<artifact-source-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*ArtifactSourcesClient) Get ¶
func (client *ArtifactSourcesClient) Get(ctx context.Context, resourceGroupName string, artifactSourceName string, options *ArtifactSourcesClientGetOptions) (ArtifactSourcesClientGetResponse, error)
Get - Gets an artifact source. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. artifactSourceName - The name of the artifact source. options - ArtifactSourcesClientGetOptions contains the optional parameters for the ArtifactSourcesClient.Get method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/artifactsource_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewArtifactSourcesClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<artifact-source-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ArtifactSourcesClientGetResult) }
Output:
func (*ArtifactSourcesClient) List ¶
func (client *ArtifactSourcesClient) List(ctx context.Context, resourceGroupName string, options *ArtifactSourcesClientListOptions) (ArtifactSourcesClientListResponse, error)
List - Lists the artifact sources in a resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - ArtifactSourcesClientListOptions contains the optional parameters for the ArtifactSourcesClient.List method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/artifactsources_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewArtifactSourcesClient("<subscription-id>", cred, nil) res, err := client.List(ctx, "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ArtifactSourcesClientListResult) }
Output:
type ArtifactSourcesClientCreateOrUpdateOptions ¶ added in v0.2.0
type ArtifactSourcesClientCreateOrUpdateOptions struct { // Source object that defines the resource. ArtifactSourceInfo *ArtifactSource }
ArtifactSourcesClientCreateOrUpdateOptions contains the optional parameters for the ArtifactSourcesClient.CreateOrUpdate method.
type ArtifactSourcesClientCreateOrUpdateResponse ¶ added in v0.2.0
type ArtifactSourcesClientCreateOrUpdateResponse struct { ArtifactSourcesClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ArtifactSourcesClientCreateOrUpdateResponse contains the response from method ArtifactSourcesClient.CreateOrUpdate.
type ArtifactSourcesClientCreateOrUpdateResult ¶ added in v0.2.0
type ArtifactSourcesClientCreateOrUpdateResult struct {
ArtifactSource
}
ArtifactSourcesClientCreateOrUpdateResult contains the result from method ArtifactSourcesClient.CreateOrUpdate.
type ArtifactSourcesClientDeleteOptions ¶ added in v0.2.0
type ArtifactSourcesClientDeleteOptions struct { }
ArtifactSourcesClientDeleteOptions contains the optional parameters for the ArtifactSourcesClient.Delete method.
type ArtifactSourcesClientDeleteResponse ¶ added in v0.2.0
type ArtifactSourcesClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ArtifactSourcesClientDeleteResponse contains the response from method ArtifactSourcesClient.Delete.
type ArtifactSourcesClientGetOptions ¶ added in v0.2.0
type ArtifactSourcesClientGetOptions struct { }
ArtifactSourcesClientGetOptions contains the optional parameters for the ArtifactSourcesClient.Get method.
type ArtifactSourcesClientGetResponse ¶ added in v0.2.0
type ArtifactSourcesClientGetResponse struct { ArtifactSourcesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ArtifactSourcesClientGetResponse contains the response from method ArtifactSourcesClient.Get.
type ArtifactSourcesClientGetResult ¶ added in v0.2.0
type ArtifactSourcesClientGetResult struct {
ArtifactSource
}
ArtifactSourcesClientGetResult contains the result from method ArtifactSourcesClient.Get.
type ArtifactSourcesClientListOptions ¶ added in v0.2.0
type ArtifactSourcesClientListOptions struct { }
ArtifactSourcesClientListOptions contains the optional parameters for the ArtifactSourcesClient.List method.
type ArtifactSourcesClientListResponse ¶ added in v0.2.0
type ArtifactSourcesClientListResponse struct { ArtifactSourcesClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ArtifactSourcesClientListResponse contains the response from method ArtifactSourcesClient.List.
type ArtifactSourcesClientListResult ¶ added in v0.2.0
type ArtifactSourcesClientListResult struct { // The list of artifact sources. ArtifactSourceArray []*ArtifactSource }
ArtifactSourcesClientListResult contains the result from method ArtifactSourcesClient.List.
type Authentication ¶
type Authentication struct { // REQUIRED; The authentication type Type *string `json:"type,omitempty"` }
Authentication - Defines the authentication method and properties to access the artifacts.
func (*Authentication) GetAuthentication ¶
func (a *Authentication) GetAuthentication() *Authentication
GetAuthentication implements the AuthenticationClassification interface for type Authentication.
type AuthenticationClassification ¶
type AuthenticationClassification interface { // GetAuthentication returns the Authentication content of the underlying type. GetAuthentication() *Authentication }
AuthenticationClassification provides polymorphic access to related types. Call the interface's GetAuthentication() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *Authentication, *SasAuthentication
type CloudError ¶
type CloudError struct { // The properties that define the error. Error *CloudErrorBody `json:"error,omitempty"` }
CloudError - The error information object.
type CloudErrorBody ¶
type CloudErrorBody struct { // More detailed error information. Details []*CloudErrorBody `json:"details,omitempty"` // Error target Target *string `json:"target,omitempty"` // READ-ONLY; Error code string. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Descriptive error information. Message *string `json:"message,omitempty" azure:"ro"` }
CloudErrorBody - Detailed error information of any failure.
func (CloudErrorBody) MarshalJSON ¶
func (c CloudErrorBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CloudErrorBody.
type DeploymentMode ¶
type DeploymentMode string
DeploymentMode - Describes the type of ARM deployment to be performed on the resource.
const ( DeploymentModeIncremental DeploymentMode = "Incremental" DeploymentModeComplete DeploymentMode = "Complete" )
func PossibleDeploymentModeValues ¶
func PossibleDeploymentModeValues() []DeploymentMode
PossibleDeploymentModeValues returns the possible values for the DeploymentMode const type.
func (DeploymentMode) ToPtr ¶
func (c DeploymentMode) ToPtr() *DeploymentMode
ToPtr returns a *DeploymentMode pointing to the current value.
type HealthCheckStepAttributes ¶
type HealthCheckStepAttributes struct { // REQUIRED; The duration in ISO 8601 format for which the resource is expected to be continuously healthy. If maxElasticDuration // is specified, healthy state duration is enforced after the detection of first // healthy signal. HealthyStateDuration *string `json:"healthyStateDuration,omitempty"` // REQUIRED; The type of health check. Type *string `json:"type,omitempty"` // The duration in ISO 8601 format for which the health check waits for the resource to become healthy. Health check fails // if it doesn't. Health check starts to enforce healthyStateDuration once resource // becomes healthy. MaxElasticDuration *string `json:"maxElasticDuration,omitempty"` // The duration in ISO 8601 format for which health check waits idly without any checks. WaitDuration *string `json:"waitDuration,omitempty"` }
HealthCheckStepAttributes - The attributes for the health check step.
func (*HealthCheckStepAttributes) GetHealthCheckStepAttributes ¶
func (h *HealthCheckStepAttributes) GetHealthCheckStepAttributes() *HealthCheckStepAttributes
GetHealthCheckStepAttributes implements the HealthCheckStepAttributesClassification interface for type HealthCheckStepAttributes.
type HealthCheckStepAttributesClassification ¶
type HealthCheckStepAttributesClassification interface { // GetHealthCheckStepAttributes returns the HealthCheckStepAttributes content of the underlying type. GetHealthCheckStepAttributes() *HealthCheckStepAttributes }
HealthCheckStepAttributesClassification provides polymorphic access to related types. Call the interface's GetHealthCheckStepAttributes() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *HealthCheckStepAttributes, *RestHealthCheckStepAttributes
type HealthCheckStepProperties ¶
type HealthCheckStepProperties struct { // REQUIRED; The health check step attributes Attributes HealthCheckStepAttributesClassification `json:"attributes,omitempty"` // REQUIRED; The type of step. StepType *StepType `json:"stepType,omitempty"` }
HealthCheckStepProperties - Defines the properties of a health check step.
func (*HealthCheckStepProperties) GetStepProperties ¶ added in v0.2.0
func (h *HealthCheckStepProperties) GetStepProperties() *StepProperties
GetStepProperties implements the StepPropertiesClassification interface for type HealthCheckStepProperties.
func (HealthCheckStepProperties) MarshalJSON ¶
func (h HealthCheckStepProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HealthCheckStepProperties.
func (*HealthCheckStepProperties) UnmarshalJSON ¶
func (h *HealthCheckStepProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HealthCheckStepProperties.
type Identity ¶
type Identity struct { // REQUIRED; The list of identities. IdentityIDs []*string `json:"identityIds,omitempty"` // REQUIRED; The identity type. Type *string `json:"type,omitempty"` }
Identity for the resource.
func (Identity) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Identity.
type Message ¶
type Message struct { // READ-ONLY; The actual message text. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; Time in UTC this message was provided. TimeStamp *time.Time `json:"timeStamp,omitempty" azure:"ro"` }
Message - Supplementary contextual messages during a rollout.
func (Message) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Message.
func (*Message) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Message.
type Operation ¶
type Operation struct { // The display name of the operation. Display *OperationDetail `json:"display,omitempty"` // The name of the operation. Name *string `json:"name,omitempty"` // The origin of the operation. Origin *string `json:"origin,omitempty"` // The properties of the operation. Properties map[string]interface{} `json:"properties,omitempty"` }
Operation - Represents an operation that can be performed on the service.
type OperationDetail ¶
type OperationDetail struct { // The description of the operation. Description *string `json:"description,omitempty"` // The name of the operation. Operation *string `json:"operation,omitempty"` // The name of the provider that supports the operation. Provider *string `json:"provider,omitempty"` // The resource type on which this operation can be performed. Resource *string `json:"resource,omitempty"` }
OperationDetail - The detail about an operation.
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(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(ctx context.Context, options *OperationsClientListOptions) (OperationsClientListResponse, error)
List - Lists the supported operations. If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewOperationsClient(cred, nil) res, err := client.List(ctx, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.OperationsClientListResult) }
Output:
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 { OperationsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
OperationsClientListResponse contains the response from method OperationsClient.List.
type OperationsClientListResult ¶ added in v0.2.0
type OperationsClientListResult struct {
OperationsList
}
OperationsClientListResult contains the result from method OperationsClient.List.
type OperationsList ¶
type OperationsList struct { // The list of supported operations Value *Operation `json:"value,omitempty"` }
OperationsList - The operations response.
type PrePostStep ¶
type PrePostStep struct { // REQUIRED; The resource Id of the step to be run. StepID *string `json:"stepId,omitempty"` }
PrePostStep - The properties that define a step.
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 ResourceOperation ¶
type ResourceOperation struct { // Name of the resource as specified in the artifacts. For ARM resources, this is the name of the resource specified in the // template. ResourceName *string `json:"resourceName,omitempty"` // Type of the resource as specified in the artifacts. For ARM resources, this is the type of the resource specified in the // template. ResourceType *string `json:"resourceType,omitempty"` // READ-ONLY; Unique identifier of the operation. For ARM resources, this is the operationId obtained from ARM service. OperationID *string `json:"operationId,omitempty" azure:"ro"` // READ-ONLY; State of the resource deployment. For ARM resources, this is the current provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Http status code of the operation. StatusCode *string `json:"statusCode,omitempty" azure:"ro"` // READ-ONLY; Descriptive information of the resource operation. StatusMessage *string `json:"statusMessage,omitempty" azure:"ro"` }
ResourceOperation - Individual resource operation information.
type RestAuthLocation ¶
type RestAuthLocation string
RestAuthLocation - The location of the authentication key/value pair in the request.
const ( RestAuthLocationQuery RestAuthLocation = "Query" RestAuthLocationHeader RestAuthLocation = "Header" )
func PossibleRestAuthLocationValues ¶
func PossibleRestAuthLocationValues() []RestAuthLocation
PossibleRestAuthLocationValues returns the possible values for the RestAuthLocation const type.
func (RestAuthLocation) ToPtr ¶
func (c RestAuthLocation) ToPtr() *RestAuthLocation
ToPtr returns a *RestAuthLocation pointing to the current value.
type RestAuthType ¶
type RestAuthType string
RestAuthType - The authentication type.
const ( RestAuthTypeAPIKey RestAuthType = "ApiKey" RestAuthTypeRolloutIdentity RestAuthType = "RolloutIdentity" )
func PossibleRestAuthTypeValues ¶
func PossibleRestAuthTypeValues() []RestAuthType
PossibleRestAuthTypeValues returns the possible values for the RestAuthType const type.
func (RestAuthType) ToPtr ¶
func (c RestAuthType) ToPtr() *RestAuthType
ToPtr returns a *RestAuthType pointing to the current value.
type RestHealthCheck ¶
type RestHealthCheck struct { // REQUIRED; A unique name for this check. Name *string `json:"name,omitempty"` // REQUIRED; The request to the health provider. Request *RestRequest `json:"request,omitempty"` // The expected response from the health provider. If no expected response is provided, the default is to expect the received // response to have an HTTP status code of 200 OK. Response *RestResponse `json:"response,omitempty"` }
RestHealthCheck - A REST based health check
type RestHealthCheckStepAttributes ¶
type RestHealthCheckStepAttributes struct { // REQUIRED; The duration in ISO 8601 format for which the resource is expected to be continuously healthy. If maxElasticDuration // is specified, healthy state duration is enforced after the detection of first // healthy signal. HealthyStateDuration *string `json:"healthyStateDuration,omitempty"` // REQUIRED; The type of health check. Type *string `json:"type,omitempty"` // The duration in ISO 8601 format for which the health check waits for the resource to become healthy. Health check fails // if it doesn't. Health check starts to enforce healthyStateDuration once resource // becomes healthy. MaxElasticDuration *string `json:"maxElasticDuration,omitempty"` // The REST health check parameters. Properties *RestParameters `json:"properties,omitempty"` // The duration in ISO 8601 format for which health check waits idly without any checks. WaitDuration *string `json:"waitDuration,omitempty"` }
RestHealthCheckStepAttributes - Defines the REST health check step properties.
func (*RestHealthCheckStepAttributes) GetHealthCheckStepAttributes ¶ added in v0.2.0
func (r *RestHealthCheckStepAttributes) GetHealthCheckStepAttributes() *HealthCheckStepAttributes
GetHealthCheckStepAttributes implements the HealthCheckStepAttributesClassification interface for type RestHealthCheckStepAttributes.
func (RestHealthCheckStepAttributes) MarshalJSON ¶
func (r RestHealthCheckStepAttributes) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RestHealthCheckStepAttributes.
func (*RestHealthCheckStepAttributes) UnmarshalJSON ¶
func (r *RestHealthCheckStepAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RestHealthCheckStepAttributes.
type RestMatchQuantifier ¶
type RestMatchQuantifier string
RestMatchQuantifier - Indicates whether any or all of the expressions should match with the response content.
const ( RestMatchQuantifierAll RestMatchQuantifier = "All" RestMatchQuantifierAny RestMatchQuantifier = "Any" )
func PossibleRestMatchQuantifierValues ¶
func PossibleRestMatchQuantifierValues() []RestMatchQuantifier
PossibleRestMatchQuantifierValues returns the possible values for the RestMatchQuantifier const type.
func (RestMatchQuantifier) ToPtr ¶
func (c RestMatchQuantifier) ToPtr() *RestMatchQuantifier
ToPtr returns a *RestMatchQuantifier pointing to the current value.
type RestParameters ¶
type RestParameters struct { // REQUIRED; The list of checks that form the health check step. HealthChecks []*RestHealthCheck `json:"healthChecks,omitempty"` }
RestParameters - The parameters for the REST health check.
func (RestParameters) MarshalJSON ¶
func (r RestParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RestParameters.
type RestRequest ¶
type RestRequest struct { // REQUIRED; The authentication information required in the request to the health provider. Authentication RestRequestAuthenticationClassification `json:"authentication,omitempty"` // REQUIRED; The HTTP method to use for the request. Method *RestRequestMethod `json:"method,omitempty"` // REQUIRED; The HTTP URI to use for the request. URI *string `json:"uri,omitempty"` }
RestRequest - The properties that make up a REST request
func (RestRequest) MarshalJSON ¶
func (r RestRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RestRequest.
func (*RestRequest) UnmarshalJSON ¶
func (r *RestRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RestRequest.
type RestRequestAuthentication ¶
type RestRequestAuthentication struct { // REQUIRED; The authentication type. Type *RestAuthType `json:"type,omitempty"` }
RestRequestAuthentication - The authentication information required in the REST health check request to the health provider.
func (*RestRequestAuthentication) GetRestRequestAuthentication ¶
func (r *RestRequestAuthentication) GetRestRequestAuthentication() *RestRequestAuthentication
GetRestRequestAuthentication implements the RestRequestAuthenticationClassification interface for type RestRequestAuthentication.
type RestRequestAuthenticationClassification ¶
type RestRequestAuthenticationClassification interface { // GetRestRequestAuthentication returns the RestRequestAuthentication content of the underlying type. GetRestRequestAuthentication() *RestRequestAuthentication }
RestRequestAuthenticationClassification provides polymorphic access to related types. Call the interface's GetRestRequestAuthentication() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *APIKeyAuthentication, *RestRequestAuthentication, *RolloutIdentityAuthentication
type RestRequestMethod ¶
type RestRequestMethod string
RestRequestMethod - The HTTP method to use for the request.
const ( RestRequestMethodGET RestRequestMethod = "GET" RestRequestMethodPOST RestRequestMethod = "POST" )
func PossibleRestRequestMethodValues ¶
func PossibleRestRequestMethodValues() []RestRequestMethod
PossibleRestRequestMethodValues returns the possible values for the RestRequestMethod const type.
func (RestRequestMethod) ToPtr ¶
func (c RestRequestMethod) ToPtr() *RestRequestMethod
ToPtr returns a *RestRequestMethod pointing to the current value.
type RestResponse ¶
type RestResponse struct { // The regular expressions to match the response content with. Regex *RestResponseRegex `json:"regex,omitempty"` // The HTTP status codes expected in a successful health check response. The response is expected to match one of the given // status codes. If no expected status codes are provided, default expected status // code is 200 OK. SuccessStatusCodes []*string `json:"successStatusCodes,omitempty"` }
RestResponse - The properties that make up the expected REST response
func (RestResponse) MarshalJSON ¶
func (r RestResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RestResponse.
type RestResponseRegex ¶
type RestResponseRegex struct { // Indicates whether any or all of the expressions should match with the response content. MatchQuantifier *RestMatchQuantifier `json:"matchQuantifier,omitempty"` // The list of regular expressions. Matches []*string `json:"matches,omitempty"` }
RestResponseRegex - The regular expressions to match the response content with.
func (RestResponseRegex) MarshalJSON ¶
func (r RestResponseRegex) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RestResponseRegex.
type Rollout ¶
type Rollout struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Identity for the resource. Identity *Identity `json:"identity,omitempty"` // The properties that define a rollout. Properties *RolloutProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,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"` }
Rollout - Defines the rollout.
func (Rollout) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Rollout.
type RolloutIdentityAuthentication ¶
type RolloutIdentityAuthentication struct { // REQUIRED; The authentication type. Type *RestAuthType `json:"type,omitempty"` }
RolloutIdentityAuthentication - RolloutIdentity uses the user-assigned managed identity authentication context specified in the Identity property during rollout creation.
func (*RolloutIdentityAuthentication) GetRestRequestAuthentication ¶ added in v0.2.0
func (r *RolloutIdentityAuthentication) GetRestRequestAuthentication() *RestRequestAuthentication
GetRestRequestAuthentication implements the RestRequestAuthenticationClassification interface for type RolloutIdentityAuthentication.
func (RolloutIdentityAuthentication) MarshalJSON ¶
func (r RolloutIdentityAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RolloutIdentityAuthentication.
func (*RolloutIdentityAuthentication) UnmarshalJSON ¶ added in v0.2.0
func (r *RolloutIdentityAuthentication) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RolloutIdentityAuthentication.
type RolloutOperationInfo ¶
type RolloutOperationInfo struct { // READ-ONLY; The start time of the rollout in UTC. This property will not be set if the rollout has not completed yet. EndTime *time.Time `json:"endTime,omitempty" azure:"ro"` // READ-ONLY; The detailed error information for any failure. Error *CloudErrorBody `json:"error,omitempty" azure:"ro"` // READ-ONLY; The ordinal count of the number of retry attempts on a rollout. 0 if no retries of the rollout have been performed. // If the rollout is updated with a PUT, this count is reset to 0. RetryAttempt *int32 `json:"retryAttempt,omitempty" azure:"ro"` // READ-ONLY; True, if all steps that succeeded on the previous run/attempt were chosen to be skipped in this retry attempt. // False, otherwise. SkipSucceededOnRetry *bool `json:"skipSucceededOnRetry,omitempty" azure:"ro"` // READ-ONLY; The start time of the rollout in UTC. StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` }
RolloutOperationInfo - Detailed runtime information of the rollout.
func (RolloutOperationInfo) MarshalJSON ¶
func (r RolloutOperationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RolloutOperationInfo.
func (*RolloutOperationInfo) UnmarshalJSON ¶
func (r *RolloutOperationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RolloutOperationInfo.
type RolloutProperties ¶
type RolloutProperties struct { // REQUIRED; The version of the build being deployed. BuildVersion *string `json:"buildVersion,omitempty"` // REQUIRED; The list of step groups that define the orchestration. StepGroups []*StepGroup `json:"stepGroups,omitempty"` // REQUIRED; The resource Id of the service topology from which service units are being referenced in step groups to be deployed. TargetServiceTopologyID *string `json:"targetServiceTopologyId,omitempty"` // The reference to the artifact source resource Id where the payload is located. ArtifactSourceID *string `json:"artifactSourceId,omitempty"` // READ-ONLY; Operational information of the rollout. OperationInfo *RolloutOperationInfo `json:"operationInfo,omitempty" azure:"ro"` // READ-ONLY; The detailed information on the services being deployed. Services []*Service `json:"services,omitempty" azure:"ro"` // READ-ONLY; The current status of the rollout. Status *string `json:"status,omitempty" azure:"ro"` // READ-ONLY; The cardinal count of total number of retries performed on the rollout at a given time. TotalRetryAttempts *int32 `json:"totalRetryAttempts,omitempty" azure:"ro"` }
RolloutProperties - The properties that define a rollout.
func (RolloutProperties) MarshalJSON ¶ added in v0.2.0
func (r RolloutProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RolloutProperties.
type RolloutPropertiesAutoGenerated ¶
type RolloutPropertiesAutoGenerated struct { // READ-ONLY; Operational information of the rollout. OperationInfo *RolloutOperationInfo `json:"operationInfo,omitempty" azure:"ro"` // READ-ONLY; The detailed information on the services being deployed. Services []*Service `json:"services,omitempty" azure:"ro"` // READ-ONLY; The current status of the rollout. Status *string `json:"status,omitempty" azure:"ro"` // READ-ONLY; The cardinal count of total number of retries performed on the rollout at a given time. TotalRetryAttempts *int32 `json:"totalRetryAttempts,omitempty" azure:"ro"` }
RolloutPropertiesAutoGenerated - Defines the properties of a rollout.
func (RolloutPropertiesAutoGenerated) MarshalJSON ¶
func (r RolloutPropertiesAutoGenerated) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RolloutPropertiesAutoGenerated.
type RolloutRequest ¶
type RolloutRequest struct { // REQUIRED; Identity for the resource. Identity *Identity `json:"identity,omitempty"` // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // REQUIRED; Defines the properties that make up a rollout request. Properties *RolloutRequestProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,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"` }
RolloutRequest - Defines the PUT rollout request body.
func (RolloutRequest) MarshalJSON ¶
func (r RolloutRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RolloutRequest.
type RolloutRequestProperties ¶
type RolloutRequestProperties struct { // REQUIRED; The version of the build being deployed. BuildVersion *string `json:"buildVersion,omitempty"` // REQUIRED; The list of step groups that define the orchestration. StepGroups []*StepGroup `json:"stepGroups,omitempty"` // REQUIRED; The resource Id of the service topology from which service units are being referenced in step groups to be deployed. TargetServiceTopologyID *string `json:"targetServiceTopologyId,omitempty"` // The reference to the artifact source resource Id where the payload is located. ArtifactSourceID *string `json:"artifactSourceId,omitempty"` }
RolloutRequestProperties - The properties for defining a rollout.
func (RolloutRequestProperties) MarshalJSON ¶
func (r RolloutRequestProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RolloutRequestProperties.
type RolloutStep ¶
type RolloutStep struct { // REQUIRED; Name of the step. Name *string `json:"name,omitempty"` // The step group the current step is part of. StepGroup *string `json:"stepGroup,omitempty"` // READ-ONLY; Supplementary informative messages during rollout. Messages []*Message `json:"messages,omitempty" azure:"ro"` // READ-ONLY; Detailed information of specific action execution. OperationInfo *StepOperationInfo `json:"operationInfo,omitempty" azure:"ro"` // READ-ONLY; Set of resource operations that were performed, if any, on an Azure resource. ResourceOperations []*ResourceOperation `json:"resourceOperations,omitempty" azure:"ro"` // READ-ONLY; Current state of the step. Status *string `json:"status,omitempty" azure:"ro"` }
RolloutStep - Defines a specific step on a target service unit.
func (RolloutStep) MarshalJSON ¶
func (r RolloutStep) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RolloutStep.
type RolloutsClient ¶
type RolloutsClient struct {
// contains filtered or unexported fields
}
RolloutsClient contains the methods for the Rollouts group. Don't use this type directly, use NewRolloutsClient() instead.
func NewRolloutsClient ¶
func NewRolloutsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *RolloutsClient
NewRolloutsClient creates a new instance of RolloutsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*RolloutsClient) BeginCreateOrUpdate ¶
func (client *RolloutsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, rolloutName string, options *RolloutsClientBeginCreateOrUpdateOptions) (RolloutsClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - This is an asynchronous operation and can be polled to completion using the location header returned by this operation. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. rolloutName - The rollout name. options - RolloutsClientBeginCreateOrUpdateOptions contains the optional parameters for the RolloutsClient.BeginCreateOrUpdate method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollout_createorupdate.json
package main import ( "context" "log" "time" "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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewRolloutsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<rollout-name>", &armdeploymentmanager.RolloutsClientBeginCreateOrUpdateOptions{RolloutRequest: &armdeploymentmanager.RolloutRequest{ Location: to.StringPtr("<location>"), Tags: map[string]*string{}, Identity: &armdeploymentmanager.Identity{ Type: to.StringPtr("<type>"), IdentityIDs: []*string{ to.StringPtr("/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userassignedidentities/myuseridentity")}, }, Properties: &armdeploymentmanager.RolloutRequestProperties{ ArtifactSourceID: to.StringPtr("<artifact-source-id>"), BuildVersion: to.StringPtr("<build-version>"), StepGroups: []*armdeploymentmanager.StepGroup{ { Name: to.StringPtr("<name>"), DeploymentTargetID: to.StringPtr("<deployment-target-id>"), PostDeploymentSteps: []*armdeploymentmanager.PrePostStep{ { StepID: to.StringPtr("<step-id>"), }}, PreDeploymentSteps: []*armdeploymentmanager.PrePostStep{ { StepID: to.StringPtr("<step-id>"), }, { StepID: to.StringPtr("<step-id>"), }}, }, { Name: to.StringPtr("<name>"), DependsOnStepGroups: []*string{ to.StringPtr("FirstRegion")}, DeploymentTargetID: to.StringPtr("<deployment-target-id>"), PostDeploymentSteps: []*armdeploymentmanager.PrePostStep{ { StepID: to.StringPtr("<step-id>"), }}, PreDeploymentSteps: []*armdeploymentmanager.PrePostStep{ { StepID: to.StringPtr("<step-id>"), }, { StepID: to.StringPtr("<step-id>"), }}, }}, TargetServiceTopologyID: to.StringPtr("<target-service-topology-id>"), }, }, }) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*RolloutsClient) Cancel ¶
func (client *RolloutsClient) Cancel(ctx context.Context, resourceGroupName string, rolloutName string, options *RolloutsClientCancelOptions) (RolloutsClientCancelResponse, error)
Cancel - Only running rollouts can be canceled. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. rolloutName - The rollout name. options - RolloutsClientCancelOptions contains the optional parameters for the RolloutsClient.Cancel method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollout_post_cancel.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewRolloutsClient("<subscription-id>", cred, nil) res, err := client.Cancel(ctx, "<resource-group-name>", "<rollout-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.RolloutsClientCancelResult) }
Output:
func (*RolloutsClient) Delete ¶
func (client *RolloutsClient) Delete(ctx context.Context, resourceGroupName string, rolloutName string, options *RolloutsClientDeleteOptions) (RolloutsClientDeleteResponse, error)
Delete - Only rollouts in terminal state can be deleted. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. rolloutName - The rollout name. options - RolloutsClientDeleteOptions contains the optional parameters for the RolloutsClient.Delete method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollout_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewRolloutsClient("<subscription-id>", cred, nil) _, err = client.Delete(ctx, "<resource-group-name>", "<rollout-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*RolloutsClient) Get ¶
func (client *RolloutsClient) Get(ctx context.Context, resourceGroupName string, rolloutName string, options *RolloutsClientGetOptions) (RolloutsClientGetResponse, error)
Get - Gets detailed information of a rollout. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. rolloutName - The rollout name. options - RolloutsClientGetOptions contains the optional parameters for the RolloutsClient.Get method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollout_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewRolloutsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<rollout-name>", &armdeploymentmanager.RolloutsClientGetOptions{RetryAttempt: nil}) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.RolloutsClientGetResult) }
Output:
func (*RolloutsClient) List ¶
func (client *RolloutsClient) List(ctx context.Context, resourceGroupName string, options *RolloutsClientListOptions) (RolloutsClientListResponse, error)
List - Lists the rollouts in a resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - RolloutsClientListOptions contains the optional parameters for the RolloutsClient.List method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollouts_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewRolloutsClient("<subscription-id>", cred, nil) res, err := client.List(ctx, "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.RolloutsClientListResult) }
Output:
func (*RolloutsClient) Restart ¶
func (client *RolloutsClient) Restart(ctx context.Context, resourceGroupName string, rolloutName string, options *RolloutsClientRestartOptions) (RolloutsClientRestartResponse, error)
Restart - Only failed rollouts can be restarted. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. rolloutName - The rollout name. options - RolloutsClientRestartOptions contains the optional parameters for the RolloutsClient.Restart method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollout_post_restart.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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewRolloutsClient("<subscription-id>", cred, nil) res, err := client.Restart(ctx, "<resource-group-name>", "<rollout-name>", &armdeploymentmanager.RolloutsClientRestartOptions{SkipSucceeded: to.BoolPtr(true)}) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.RolloutsClientRestartResult) }
Output:
type RolloutsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type RolloutsClientBeginCreateOrUpdateOptions struct { // Source rollout request object that defines the rollout. RolloutRequest *RolloutRequest }
RolloutsClientBeginCreateOrUpdateOptions contains the optional parameters for the RolloutsClient.BeginCreateOrUpdate method.
type RolloutsClientCancelOptions ¶ added in v0.2.0
type RolloutsClientCancelOptions struct { }
RolloutsClientCancelOptions contains the optional parameters for the RolloutsClient.Cancel method.
type RolloutsClientCancelResponse ¶ added in v0.2.0
type RolloutsClientCancelResponse struct { RolloutsClientCancelResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
RolloutsClientCancelResponse contains the response from method RolloutsClient.Cancel.
type RolloutsClientCancelResult ¶ added in v0.2.0
type RolloutsClientCancelResult struct {
Rollout
}
RolloutsClientCancelResult contains the result from method RolloutsClient.Cancel.
type RolloutsClientCreateOrUpdatePoller ¶ added in v0.2.0
type RolloutsClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
RolloutsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*RolloutsClientCreateOrUpdatePoller) Done ¶ added in v0.2.0
func (p *RolloutsClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*RolloutsClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.2.0
func (p *RolloutsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (RolloutsClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final RolloutsClientCreateOrUpdateResponse will be returned.
func (*RolloutsClientCreateOrUpdatePoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*RolloutsClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.2.0
func (p *RolloutsClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type RolloutsClientCreateOrUpdatePollerResponse ¶ added in v0.2.0
type RolloutsClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *RolloutsClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
RolloutsClientCreateOrUpdatePollerResponse contains the response from method RolloutsClient.CreateOrUpdate.
func (RolloutsClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.2.0
func (l RolloutsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (RolloutsClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*RolloutsClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.2.0
func (l *RolloutsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *RolloutsClient, token string) error
Resume rehydrates a RolloutsClientCreateOrUpdatePollerResponse from the provided client and resume token.
type RolloutsClientCreateOrUpdateResponse ¶ added in v0.2.0
type RolloutsClientCreateOrUpdateResponse struct { RolloutsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
RolloutsClientCreateOrUpdateResponse contains the response from method RolloutsClient.CreateOrUpdate.
type RolloutsClientCreateOrUpdateResult ¶ added in v0.2.0
type RolloutsClientCreateOrUpdateResult struct {
RolloutRequest
}
RolloutsClientCreateOrUpdateResult contains the result from method RolloutsClient.CreateOrUpdate.
type RolloutsClientDeleteOptions ¶ added in v0.2.0
type RolloutsClientDeleteOptions struct { }
RolloutsClientDeleteOptions contains the optional parameters for the RolloutsClient.Delete method.
type RolloutsClientDeleteResponse ¶ added in v0.2.0
type RolloutsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
RolloutsClientDeleteResponse contains the response from method RolloutsClient.Delete.
type RolloutsClientGetOptions ¶ added in v0.2.0
type RolloutsClientGetOptions struct { // Rollout retry attempt ordinal to get the result of. If not specified, result of the latest attempt will be returned. RetryAttempt *int32 }
RolloutsClientGetOptions contains the optional parameters for the RolloutsClient.Get method.
type RolloutsClientGetResponse ¶ added in v0.2.0
type RolloutsClientGetResponse struct { RolloutsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
RolloutsClientGetResponse contains the response from method RolloutsClient.Get.
type RolloutsClientGetResult ¶ added in v0.2.0
type RolloutsClientGetResult struct {
Rollout
}
RolloutsClientGetResult contains the result from method RolloutsClient.Get.
type RolloutsClientListOptions ¶ added in v0.2.0
type RolloutsClientListOptions struct { }
RolloutsClientListOptions contains the optional parameters for the RolloutsClient.List method.
type RolloutsClientListResponse ¶ added in v0.2.0
type RolloutsClientListResponse struct { RolloutsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
RolloutsClientListResponse contains the response from method RolloutsClient.List.
type RolloutsClientListResult ¶ added in v0.2.0
type RolloutsClientListResult struct { // The list of rollouts. RolloutArray []*Rollout }
RolloutsClientListResult contains the result from method RolloutsClient.List.
type RolloutsClientRestartOptions ¶ added in v0.2.0
type RolloutsClientRestartOptions struct { // If true, will skip all succeeded steps so far in the rollout. If false, will execute the entire rollout again regardless // of the current state of individual resources. Defaults to false if not // specified. SkipSucceeded *bool }
RolloutsClientRestartOptions contains the optional parameters for the RolloutsClient.Restart method.
type RolloutsClientRestartResponse ¶ added in v0.2.0
type RolloutsClientRestartResponse struct { RolloutsClientRestartResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
RolloutsClientRestartResponse contains the response from method RolloutsClient.Restart.
type RolloutsClientRestartResult ¶ added in v0.2.0
type RolloutsClientRestartResult struct {
Rollout
}
RolloutsClientRestartResult contains the result from method RolloutsClient.Restart.
type SasAuthentication ¶
type SasAuthentication struct { // REQUIRED; The authentication type Type *string `json:"type,omitempty"` // The SAS properties Properties *SasProperties `json:"properties,omitempty"` }
SasAuthentication - Defines the properties to access the artifacts using an Azure Storage SAS URI.
func (*SasAuthentication) GetAuthentication ¶ added in v0.2.0
func (s *SasAuthentication) GetAuthentication() *Authentication
GetAuthentication implements the AuthenticationClassification interface for type SasAuthentication.
func (SasAuthentication) MarshalJSON ¶
func (s SasAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SasAuthentication.
func (*SasAuthentication) UnmarshalJSON ¶
func (s *SasAuthentication) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SasAuthentication.
type SasProperties ¶
type SasProperties struct { // REQUIRED; The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts // are located can be defined in the artifactRoot. SasURI *string `json:"sasUri,omitempty"` }
SasProperties - The properties that define SAS authentication.
type Service ¶
type Service struct { // REQUIRED; The Azure location to which the resources in the service belong to or should be deployed to. TargetLocation *string `json:"targetLocation,omitempty"` // REQUIRED; The subscription to which the resources in the service belong to or should be deployed to. TargetSubscriptionID *string `json:"targetSubscriptionId,omitempty"` // Name of the service. Name *string `json:"name,omitempty"` // The detailed information about the units that make up the service. ServiceUnits []*ServiceUnit `json:"serviceUnits,omitempty"` }
Service - Defines a service.
func (Service) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Service.
type ServiceProperties ¶
type ServiceProperties struct { // REQUIRED; The Azure location to which the resources in the service belong to or should be deployed to. TargetLocation *string `json:"targetLocation,omitempty"` // REQUIRED; The subscription to which the resources in the service belong to or should be deployed to. TargetSubscriptionID *string `json:"targetSubscriptionId,omitempty"` }
ServiceProperties - The properties of a service.
type ServiceResource ¶
type ServiceResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // REQUIRED; The properties that define a service in a service topology. Properties *ServiceResourceProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,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"` }
ServiceResource - The resource representation of a service in a service topology.
func (ServiceResource) MarshalJSON ¶
func (s ServiceResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceResource.
type ServiceResourceProperties ¶
type ServiceResourceProperties struct { // REQUIRED; The Azure location to which the resources in the service belong to or should be deployed to. TargetLocation *string `json:"targetLocation,omitempty"` // REQUIRED; The subscription to which the resources in the service belong to or should be deployed to. TargetSubscriptionID *string `json:"targetSubscriptionId,omitempty"` }
ServiceResourceProperties - The properties that define a service in a service topology.
type ServiceTopologiesClient ¶
type ServiceTopologiesClient struct {
// contains filtered or unexported fields
}
ServiceTopologiesClient contains the methods for the ServiceTopologies group. Don't use this type directly, use NewServiceTopologiesClient() instead.
func NewServiceTopologiesClient ¶
func NewServiceTopologiesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ServiceTopologiesClient
NewServiceTopologiesClient creates a new instance of ServiceTopologiesClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ServiceTopologiesClient) CreateOrUpdate ¶
func (client *ServiceTopologiesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceTopologyInfo ServiceTopologyResource, options *ServiceTopologiesClientCreateOrUpdateOptions) (ServiceTopologiesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Synchronously creates a new service topology or updates an existing service topology. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . serviceTopologyInfo - Source topology object defines the resource. options - ServiceTopologiesClientCreateOrUpdateOptions contains the optional parameters for the ServiceTopologiesClient.CreateOrUpdate method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/servicetopology_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServiceTopologiesClient("<subscription-id>", cred, nil) _, err = client.CreateOrUpdate(ctx, "<resource-group-name>", "<service-topology-name>", armdeploymentmanager.ServiceTopologyResource{ Location: to.StringPtr("<location>"), Tags: map[string]*string{}, Properties: &armdeploymentmanager.ServiceTopologyResourceProperties{ ArtifactSourceID: to.StringPtr("<artifact-source-id>"), }, }, nil) if err != nil { log.Fatal(err) } }
Output:
func (*ServiceTopologiesClient) Delete ¶
func (client *ServiceTopologiesClient) Delete(ctx context.Context, resourceGroupName string, serviceTopologyName string, options *ServiceTopologiesClientDeleteOptions) (ServiceTopologiesClientDeleteResponse, error)
Delete - Deletes the service topology. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . options - ServiceTopologiesClientDeleteOptions contains the optional parameters for the ServiceTopologiesClient.Delete method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/servicetopology_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServiceTopologiesClient("<subscription-id>", cred, nil) _, err = client.Delete(ctx, "<resource-group-name>", "<service-topology-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*ServiceTopologiesClient) Get ¶
func (client *ServiceTopologiesClient) Get(ctx context.Context, resourceGroupName string, serviceTopologyName string, options *ServiceTopologiesClientGetOptions) (ServiceTopologiesClientGetResponse, error)
Get - Gets the service topology. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . options - ServiceTopologiesClientGetOptions contains the optional parameters for the ServiceTopologiesClient.Get method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/servicetopology_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServiceTopologiesClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-topology-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServiceTopologiesClientGetResult) }
Output:
func (*ServiceTopologiesClient) List ¶
func (client *ServiceTopologiesClient) List(ctx context.Context, resourceGroupName string, options *ServiceTopologiesClientListOptions) (ServiceTopologiesClientListResponse, error)
List - Lists the service topologies in the resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - ServiceTopologiesClientListOptions contains the optional parameters for the ServiceTopologiesClient.List method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/servicetopologies_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServiceTopologiesClient("<subscription-id>", cred, nil) res, err := client.List(ctx, "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServiceTopologiesClientListResult) }
Output:
type ServiceTopologiesClientCreateOrUpdateOptions ¶ added in v0.2.0
type ServiceTopologiesClientCreateOrUpdateOptions struct { }
ServiceTopologiesClientCreateOrUpdateOptions contains the optional parameters for the ServiceTopologiesClient.CreateOrUpdate method.
type ServiceTopologiesClientCreateOrUpdateResponse ¶ added in v0.2.0
type ServiceTopologiesClientCreateOrUpdateResponse struct { ServiceTopologiesClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceTopologiesClientCreateOrUpdateResponse contains the response from method ServiceTopologiesClient.CreateOrUpdate.
type ServiceTopologiesClientCreateOrUpdateResult ¶ added in v0.2.0
type ServiceTopologiesClientCreateOrUpdateResult struct {
ServiceTopologyResource
}
ServiceTopologiesClientCreateOrUpdateResult contains the result from method ServiceTopologiesClient.CreateOrUpdate.
type ServiceTopologiesClientDeleteOptions ¶ added in v0.2.0
type ServiceTopologiesClientDeleteOptions struct { }
ServiceTopologiesClientDeleteOptions contains the optional parameters for the ServiceTopologiesClient.Delete method.
type ServiceTopologiesClientDeleteResponse ¶ added in v0.2.0
type ServiceTopologiesClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceTopologiesClientDeleteResponse contains the response from method ServiceTopologiesClient.Delete.
type ServiceTopologiesClientGetOptions ¶ added in v0.2.0
type ServiceTopologiesClientGetOptions struct { }
ServiceTopologiesClientGetOptions contains the optional parameters for the ServiceTopologiesClient.Get method.
type ServiceTopologiesClientGetResponse ¶ added in v0.2.0
type ServiceTopologiesClientGetResponse struct { ServiceTopologiesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceTopologiesClientGetResponse contains the response from method ServiceTopologiesClient.Get.
type ServiceTopologiesClientGetResult ¶ added in v0.2.0
type ServiceTopologiesClientGetResult struct {
ServiceTopologyResource
}
ServiceTopologiesClientGetResult contains the result from method ServiceTopologiesClient.Get.
type ServiceTopologiesClientListOptions ¶ added in v0.2.0
type ServiceTopologiesClientListOptions struct { }
ServiceTopologiesClientListOptions contains the optional parameters for the ServiceTopologiesClient.List method.
type ServiceTopologiesClientListResponse ¶ added in v0.2.0
type ServiceTopologiesClientListResponse struct { ServiceTopologiesClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceTopologiesClientListResponse contains the response from method ServiceTopologiesClient.List.
type ServiceTopologiesClientListResult ¶ added in v0.2.0
type ServiceTopologiesClientListResult struct { // The list of service topologies. ServiceTopologyResourceArray []*ServiceTopologyResource }
ServiceTopologiesClientListResult contains the result from method ServiceTopologiesClient.List.
type ServiceTopologyProperties ¶
type ServiceTopologyProperties struct { // The resource Id of the artifact source that contains the artifacts that can be referenced in the service units. ArtifactSourceID *string `json:"artifactSourceId,omitempty"` }
ServiceTopologyProperties - The properties of a service topology.
type ServiceTopologyResource ¶
type ServiceTopologyResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // REQUIRED; The properties that define the service topology. Properties *ServiceTopologyResourceProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,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"` }
ServiceTopologyResource - The resource representation of a service topology.
func (ServiceTopologyResource) MarshalJSON ¶
func (s ServiceTopologyResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceTopologyResource.
type ServiceTopologyResourceProperties ¶
type ServiceTopologyResourceProperties struct { // The resource Id of the artifact source that contains the artifacts that can be referenced in the service units. ArtifactSourceID *string `json:"artifactSourceId,omitempty"` }
ServiceTopologyResourceProperties - The properties that define the service topology.
type ServiceUnit ¶
type ServiceUnit struct { // REQUIRED; Describes the type of ARM deployment to be performed on the resource. DeploymentMode *DeploymentMode `json:"deploymentMode,omitempty"` // REQUIRED; The Azure Resource Group to which the resources in the service unit belong to or should be deployed to. TargetResourceGroup *string `json:"targetResourceGroup,omitempty"` // The artifacts for the service unit. Artifacts *ServiceUnitArtifacts `json:"artifacts,omitempty"` // Name of the service unit. Name *string `json:"name,omitempty"` // Detailed step information, if present. Steps []*RolloutStep `json:"steps,omitempty"` }
ServiceUnit - Defines a service unit.
func (ServiceUnit) MarshalJSON ¶
func (s ServiceUnit) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceUnit.
type ServiceUnitArtifacts ¶
type ServiceUnitArtifacts struct { // The path to the ARM parameters file relative to the artifact source. ParametersArtifactSourceRelativePath *string `json:"parametersArtifactSourceRelativePath,omitempty"` // The full URI of the ARM parameters file with the SAS token. ParametersURI *string `json:"parametersUri,omitempty"` // The path to the ARM template file relative to the artifact source. TemplateArtifactSourceRelativePath *string `json:"templateArtifactSourceRelativePath,omitempty"` // The full URI of the ARM template file with the SAS token. TemplateURI *string `json:"templateUri,omitempty"` }
ServiceUnitArtifacts - Defines the artifacts of a service unit.
type ServiceUnitProperties ¶
type ServiceUnitProperties struct { // REQUIRED; Describes the type of ARM deployment to be performed on the resource. DeploymentMode *DeploymentMode `json:"deploymentMode,omitempty"` // REQUIRED; The Azure Resource Group to which the resources in the service unit belong to or should be deployed to. TargetResourceGroup *string `json:"targetResourceGroup,omitempty"` // The artifacts for the service unit. Artifacts *ServiceUnitArtifacts `json:"artifacts,omitempty"` }
ServiceUnitProperties - Defines the properties of a service unit.
type ServiceUnitResource ¶
type ServiceUnitResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // REQUIRED; The properties that define the service unit. Properties *ServiceUnitResourceProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,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"` }
ServiceUnitResource - Represents the response of a service unit resource.
func (ServiceUnitResource) MarshalJSON ¶
func (s ServiceUnitResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceUnitResource.
type ServiceUnitResourceProperties ¶
type ServiceUnitResourceProperties struct { // REQUIRED; Describes the type of ARM deployment to be performed on the resource. DeploymentMode *DeploymentMode `json:"deploymentMode,omitempty"` // REQUIRED; The Azure Resource Group to which the resources in the service unit belong to or should be deployed to. TargetResourceGroup *string `json:"targetResourceGroup,omitempty"` // The artifacts for the service unit. Artifacts *ServiceUnitArtifacts `json:"artifacts,omitempty"` }
ServiceUnitResourceProperties - The properties that define the service unit.
type ServiceUnitsClient ¶
type ServiceUnitsClient struct {
// contains filtered or unexported fields
}
ServiceUnitsClient contains the methods for the ServiceUnits group. Don't use this type directly, use NewServiceUnitsClient() instead.
func NewServiceUnitsClient ¶
func NewServiceUnitsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ServiceUnitsClient
NewServiceUnitsClient creates a new instance of ServiceUnitsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ServiceUnitsClient) BeginCreateOrUpdate ¶
func (client *ServiceUnitsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string, serviceUnitInfo ServiceUnitResource, options *ServiceUnitsClientBeginCreateOrUpdateOptions) (ServiceUnitsClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . serviceName - The name of the service resource. serviceUnitName - The name of the service unit resource. serviceUnitInfo - The service unit resource object. options - ServiceUnitsClientBeginCreateOrUpdateOptions contains the optional parameters for the ServiceUnitsClient.BeginCreateOrUpdate method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/serviceunit_createorupdate_noartifactsource.json
package main import ( "context" "log" "time" "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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServiceUnitsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-topology-name>", "<service-name>", "<service-unit-name>", armdeploymentmanager.ServiceUnitResource{ Location: to.StringPtr("<location>"), Tags: map[string]*string{}, Properties: &armdeploymentmanager.ServiceUnitResourceProperties{ Artifacts: &armdeploymentmanager.ServiceUnitArtifacts{ ParametersURI: to.StringPtr("<parameters-uri>"), TemplateURI: to.StringPtr("<template-uri>"), }, DeploymentMode: armdeploymentmanager.DeploymentModeIncremental.ToPtr(), TargetResourceGroup: to.StringPtr("<target-resource-group>"), }, }, nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*ServiceUnitsClient) Delete ¶
func (client *ServiceUnitsClient) Delete(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string, options *ServiceUnitsClientDeleteOptions) (ServiceUnitsClientDeleteResponse, error)
Delete - Deletes the service unit. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . serviceName - The name of the service resource. serviceUnitName - The name of the service unit resource. options - ServiceUnitsClientDeleteOptions contains the optional parameters for the ServiceUnitsClient.Delete method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/serviceunit_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServiceUnitsClient("<subscription-id>", cred, nil) _, err = client.Delete(ctx, "<resource-group-name>", "<service-topology-name>", "<service-name>", "<service-unit-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*ServiceUnitsClient) Get ¶
func (client *ServiceUnitsClient) Get(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string, options *ServiceUnitsClientGetOptions) (ServiceUnitsClientGetResponse, error)
Get - Gets the service unit. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . serviceName - The name of the service resource. serviceUnitName - The name of the service unit resource. options - ServiceUnitsClientGetOptions contains the optional parameters for the ServiceUnitsClient.Get method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/serviceunit_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServiceUnitsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-topology-name>", "<service-name>", "<service-unit-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServiceUnitsClientGetResult) }
Output:
func (*ServiceUnitsClient) List ¶
func (client *ServiceUnitsClient) List(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, options *ServiceUnitsClientListOptions) (ServiceUnitsClientListResponse, error)
List - Lists the service units under a service in the service topology. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . serviceName - The name of the service resource. options - ServiceUnitsClientListOptions contains the optional parameters for the ServiceUnitsClient.List method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/serviceunits_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServiceUnitsClient("<subscription-id>", cred, nil) res, err := client.List(ctx, "<resource-group-name>", "<service-topology-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServiceUnitsClientListResult) }
Output:
type ServiceUnitsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type ServiceUnitsClientBeginCreateOrUpdateOptions struct { }
ServiceUnitsClientBeginCreateOrUpdateOptions contains the optional parameters for the ServiceUnitsClient.BeginCreateOrUpdate method.
type ServiceUnitsClientCreateOrUpdatePoller ¶ added in v0.2.0
type ServiceUnitsClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
ServiceUnitsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*ServiceUnitsClientCreateOrUpdatePoller) Done ¶ added in v0.2.0
func (p *ServiceUnitsClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ServiceUnitsClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.2.0
func (p *ServiceUnitsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ServiceUnitsClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ServiceUnitsClientCreateOrUpdateResponse will be returned.
func (*ServiceUnitsClientCreateOrUpdatePoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ServiceUnitsClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.2.0
func (p *ServiceUnitsClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ServiceUnitsClientCreateOrUpdatePollerResponse ¶ added in v0.2.0
type ServiceUnitsClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *ServiceUnitsClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceUnitsClientCreateOrUpdatePollerResponse contains the response from method ServiceUnitsClient.CreateOrUpdate.
func (ServiceUnitsClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.2.0
func (l ServiceUnitsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ServiceUnitsClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ServiceUnitsClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.2.0
func (l *ServiceUnitsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ServiceUnitsClient, token string) error
Resume rehydrates a ServiceUnitsClientCreateOrUpdatePollerResponse from the provided client and resume token.
type ServiceUnitsClientCreateOrUpdateResponse ¶ added in v0.2.0
type ServiceUnitsClientCreateOrUpdateResponse struct { ServiceUnitsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceUnitsClientCreateOrUpdateResponse contains the response from method ServiceUnitsClient.CreateOrUpdate.
type ServiceUnitsClientCreateOrUpdateResult ¶ added in v0.2.0
type ServiceUnitsClientCreateOrUpdateResult struct {
ServiceUnitResource
}
ServiceUnitsClientCreateOrUpdateResult contains the result from method ServiceUnitsClient.CreateOrUpdate.
type ServiceUnitsClientDeleteOptions ¶ added in v0.2.0
type ServiceUnitsClientDeleteOptions struct { }
ServiceUnitsClientDeleteOptions contains the optional parameters for the ServiceUnitsClient.Delete method.
type ServiceUnitsClientDeleteResponse ¶ added in v0.2.0
type ServiceUnitsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceUnitsClientDeleteResponse contains the response from method ServiceUnitsClient.Delete.
type ServiceUnitsClientGetOptions ¶ added in v0.2.0
type ServiceUnitsClientGetOptions struct { }
ServiceUnitsClientGetOptions contains the optional parameters for the ServiceUnitsClient.Get method.
type ServiceUnitsClientGetResponse ¶ added in v0.2.0
type ServiceUnitsClientGetResponse struct { ServiceUnitsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceUnitsClientGetResponse contains the response from method ServiceUnitsClient.Get.
type ServiceUnitsClientGetResult ¶ added in v0.2.0
type ServiceUnitsClientGetResult struct {
ServiceUnitResource
}
ServiceUnitsClientGetResult contains the result from method ServiceUnitsClient.Get.
type ServiceUnitsClientListOptions ¶ added in v0.2.0
type ServiceUnitsClientListOptions struct { }
ServiceUnitsClientListOptions contains the optional parameters for the ServiceUnitsClient.List method.
type ServiceUnitsClientListResponse ¶ added in v0.2.0
type ServiceUnitsClientListResponse struct { ServiceUnitsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceUnitsClientListResponse contains the response from method ServiceUnitsClient.List.
type ServiceUnitsClientListResult ¶ added in v0.2.0
type ServiceUnitsClientListResult struct { // The list of service units. ServiceUnitResourceArray []*ServiceUnitResource }
ServiceUnitsClientListResult contains the result from method ServiceUnitsClient.List.
type ServicesClient ¶
type ServicesClient struct {
// contains filtered or unexported fields
}
ServicesClient contains the methods for the Services group. Don't use this type directly, use NewServicesClient() instead.
func NewServicesClient ¶
func NewServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ServicesClient
NewServicesClient creates a new instance of ServicesClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ServicesClient) CreateOrUpdate ¶
func (client *ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceInfo ServiceResource, options *ServicesClientCreateOrUpdateOptions) (ServicesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Synchronously creates a new service or updates an existing service. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . serviceName - The name of the service resource. serviceInfo - The service object options - ServicesClientCreateOrUpdateOptions contains the optional parameters for the ServicesClient.CreateOrUpdate method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/service_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServicesClient("<subscription-id>", cred, nil) _, err = client.CreateOrUpdate(ctx, "<resource-group-name>", "<service-topology-name>", "<service-name>", armdeploymentmanager.ServiceResource{ Location: to.StringPtr("<location>"), Tags: map[string]*string{}, Properties: &armdeploymentmanager.ServiceResourceProperties{ TargetLocation: to.StringPtr("<target-location>"), TargetSubscriptionID: to.StringPtr("<target-subscription-id>"), }, }, nil) if err != nil { log.Fatal(err) } }
Output:
func (*ServicesClient) Delete ¶
func (client *ServicesClient) Delete(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, options *ServicesClientDeleteOptions) (ServicesClientDeleteResponse, error)
Delete - Deletes the service. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . serviceName - The name of the service resource. options - ServicesClientDeleteOptions contains the optional parameters for the ServicesClient.Delete method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/service_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServicesClient("<subscription-id>", cred, nil) _, err = client.Delete(ctx, "<resource-group-name>", "<service-topology-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*ServicesClient) Get ¶
func (client *ServicesClient) Get(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, options *ServicesClientGetOptions) (ServicesClientGetResponse, error)
Get - Gets the service. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . serviceName - The name of the service resource. options - ServicesClientGetOptions contains the optional parameters for the ServicesClient.Get method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/service_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServicesClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-topology-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServicesClientGetResult) }
Output:
func (*ServicesClient) List ¶
func (client *ServicesClient) List(ctx context.Context, resourceGroupName string, serviceTopologyName string, options *ServicesClientListOptions) (ServicesClientListResponse, error)
List - Lists the services in the service topology. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. serviceTopologyName - The name of the service topology . options - ServicesClientListOptions contains the optional parameters for the ServicesClient.List method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/services_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewServicesClient("<subscription-id>", cred, nil) res, err := client.List(ctx, "<resource-group-name>", "<service-topology-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServicesClientListResult) }
Output:
type ServicesClientCreateOrUpdateOptions ¶ added in v0.2.0
type ServicesClientCreateOrUpdateOptions struct { }
ServicesClientCreateOrUpdateOptions contains the optional parameters for the ServicesClient.CreateOrUpdate method.
type ServicesClientCreateOrUpdateResponse ¶ added in v0.2.0
type ServicesClientCreateOrUpdateResponse struct { ServicesClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientCreateOrUpdateResponse contains the response from method ServicesClient.CreateOrUpdate.
type ServicesClientCreateOrUpdateResult ¶ added in v0.2.0
type ServicesClientCreateOrUpdateResult struct {
ServiceResource
}
ServicesClientCreateOrUpdateResult contains the result from method ServicesClient.CreateOrUpdate.
type ServicesClientDeleteOptions ¶ added in v0.2.0
type ServicesClientDeleteOptions struct { }
ServicesClientDeleteOptions contains the optional parameters for the ServicesClient.Delete method.
type ServicesClientDeleteResponse ¶ added in v0.2.0
type ServicesClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientDeleteResponse contains the response from method ServicesClient.Delete.
type ServicesClientGetOptions ¶ added in v0.2.0
type ServicesClientGetOptions struct { }
ServicesClientGetOptions contains the optional parameters for the ServicesClient.Get method.
type ServicesClientGetResponse ¶ added in v0.2.0
type ServicesClientGetResponse struct { ServicesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientGetResponse contains the response from method ServicesClient.Get.
type ServicesClientGetResult ¶ added in v0.2.0
type ServicesClientGetResult struct {
ServiceResource
}
ServicesClientGetResult contains the result from method ServicesClient.Get.
type ServicesClientListOptions ¶ added in v0.2.0
type ServicesClientListOptions struct { }
ServicesClientListOptions contains the optional parameters for the ServicesClient.List method.
type ServicesClientListResponse ¶ added in v0.2.0
type ServicesClientListResponse struct { ServicesClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientListResponse contains the response from method ServicesClient.List.
type ServicesClientListResult ¶ added in v0.2.0
type ServicesClientListResult struct { // The list of services. ServiceResourceArray []*ServiceResource }
ServicesClientListResult contains the result from method ServicesClient.List.
type StepGroup ¶
type StepGroup struct { // REQUIRED; The resource Id of service unit to be deployed. The service unit should be from the service topology referenced // in targetServiceTopologyId DeploymentTargetID *string `json:"deploymentTargetId,omitempty"` // REQUIRED; The name of the step group. Name *string `json:"name,omitempty"` // The list of step group names on which this step group depends on. DependsOnStepGroups []*string `json:"dependsOnStepGroups,omitempty"` // The list of steps to be run after deploying the target. PostDeploymentSteps []*PrePostStep `json:"postDeploymentSteps,omitempty"` // The list of steps to be run before deploying the target. PreDeploymentSteps []*PrePostStep `json:"preDeploymentSteps,omitempty"` }
StepGroup - The properties that define a Step group in a rollout.
func (StepGroup) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type StepGroup.
type StepOperationInfo ¶
type StepOperationInfo struct { // The errors, if any, for the action. Error *CloudErrorBody `json:"error,omitempty"` // READ-ONLY; Unique identifier to track the request for ARM-based resources. CorrelationID *string `json:"correlationId,omitempty" azure:"ro"` // READ-ONLY; The name of the ARM deployment initiated as part of the step. DeploymentName *string `json:"deploymentName,omitempty" azure:"ro"` // READ-ONLY; End time of the action in UTC. EndTime *time.Time `json:"endTime,omitempty" azure:"ro"` // READ-ONLY; Last time in UTC this operation was updated. LastUpdatedTime *time.Time `json:"lastUpdatedTime,omitempty" azure:"ro"` // READ-ONLY; Start time of the action in UTC. StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` }
StepOperationInfo - Detailed information of a specific step run.
func (StepOperationInfo) MarshalJSON ¶
func (s StepOperationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StepOperationInfo.
func (*StepOperationInfo) UnmarshalJSON ¶
func (s *StepOperationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StepOperationInfo.
type StepProperties ¶
type StepProperties struct { // REQUIRED; The type of step. StepType *StepType `json:"stepType,omitempty"` }
StepProperties - The properties of a step resource.
func (*StepProperties) GetStepProperties ¶
func (s *StepProperties) GetStepProperties() *StepProperties
GetStepProperties implements the StepPropertiesClassification interface for type StepProperties.
type StepPropertiesClassification ¶
type StepPropertiesClassification interface { // GetStepProperties returns the StepProperties content of the underlying type. GetStepProperties() *StepProperties }
StepPropertiesClassification provides polymorphic access to related types. Call the interface's GetStepProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *HealthCheckStepProperties, *StepProperties, *WaitStepProperties
type StepResource ¶
type StepResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // REQUIRED; The properties that define the step. Properties StepPropertiesClassification `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,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"` }
StepResource - The resource representation of a rollout step.
func (StepResource) MarshalJSON ¶
func (s StepResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StepResource.
func (*StepResource) UnmarshalJSON ¶
func (s *StepResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StepResource.
type StepType ¶
type StepType string
StepType - The type of step.
func PossibleStepTypeValues ¶
func PossibleStepTypeValues() []StepType
PossibleStepTypeValues returns the possible values for the StepType const type.
type StepsClient ¶
type StepsClient struct {
// contains filtered or unexported fields
}
StepsClient contains the methods for the Steps group. Don't use this type directly, use NewStepsClient() instead.
func NewStepsClient ¶
func NewStepsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *StepsClient
NewStepsClient creates a new instance of StepsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*StepsClient) CreateOrUpdate ¶
func (client *StepsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, stepName string, options *StepsClientCreateOrUpdateOptions) (StepsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Synchronously creates a new step or updates an existing step. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. stepName - The name of the deployment step. options - StepsClientCreateOrUpdateOptions contains the optional parameters for the StepsClient.CreateOrUpdate method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/step_health_check_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewStepsClient("<subscription-id>", cred, nil) _, err = client.CreateOrUpdate(ctx, "<resource-group-name>", "<step-name>", &armdeploymentmanager.StepsClientCreateOrUpdateOptions{StepInfo: &armdeploymentmanager.StepResource{ Location: to.StringPtr("<location>"), Tags: map[string]*string{}, Properties: &armdeploymentmanager.HealthCheckStepProperties{ StepType: armdeploymentmanager.StepTypeHealthCheck.ToPtr(), Attributes: &armdeploymentmanager.RestHealthCheckStepAttributes{ Type: to.StringPtr("<type>"), HealthyStateDuration: to.StringPtr("<healthy-state-duration>"), MaxElasticDuration: to.StringPtr("<max-elastic-duration>"), WaitDuration: to.StringPtr("<wait-duration>"), Properties: &armdeploymentmanager.RestParameters{ HealthChecks: []*armdeploymentmanager.RestHealthCheck{ { Name: to.StringPtr("<name>"), Response: &armdeploymentmanager.RestResponse{ Regex: &armdeploymentmanager.RestResponseRegex{ MatchQuantifier: armdeploymentmanager.RestMatchQuantifierAll.ToPtr(), Matches: []*string{ to.StringPtr("(?i)Contoso-App"), to.StringPtr("(?i)\"health_status\":((.|\n)*)\"(green|yellow)\""), to.StringPtr("(?mi)^(\"application_host\": 94781052)$")}, }, SuccessStatusCodes: []*string{ to.StringPtr("OK")}, }, Request: &armdeploymentmanager.RestRequest{ Method: armdeploymentmanager.RestRequestMethodGET.ToPtr(), Authentication: &armdeploymentmanager.APIKeyAuthentication{ Type: armdeploymentmanager.RestAuthTypeAPIKey.ToPtr(), Name: to.StringPtr("<name>"), In: armdeploymentmanager.RestAuthLocationQuery.ToPtr(), Value: to.StringPtr("<value>"), }, URI: to.StringPtr("<uri>"), }, }, { Name: to.StringPtr("<name>"), Response: &armdeploymentmanager.RestResponse{ Regex: &armdeploymentmanager.RestResponseRegex{ MatchQuantifier: armdeploymentmanager.RestMatchQuantifierAll.ToPtr(), Matches: []*string{ to.StringPtr("(?i)Contoso-Service-EndToEnd"), to.StringPtr("(?i)\"health_status\":((.|\n)*)\"(green)\"")}, }, SuccessStatusCodes: []*string{ to.StringPtr("OK")}, }, Request: &armdeploymentmanager.RestRequest{ Method: armdeploymentmanager.RestRequestMethodGET.ToPtr(), Authentication: &armdeploymentmanager.APIKeyAuthentication{ Type: armdeploymentmanager.RestAuthTypeAPIKey.ToPtr(), Name: to.StringPtr("<name>"), In: armdeploymentmanager.RestAuthLocationHeader.ToPtr(), Value: to.StringPtr("<value>"), }, URI: to.StringPtr("<uri>"), }, }}, }, }, }, }, }) if err != nil { log.Fatal(err) } }
Output:
func (*StepsClient) Delete ¶
func (client *StepsClient) Delete(ctx context.Context, resourceGroupName string, stepName string, options *StepsClientDeleteOptions) (StepsClientDeleteResponse, error)
Delete - Deletes the step. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. stepName - The name of the deployment step. options - StepsClientDeleteOptions contains the optional parameters for the StepsClient.Delete method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/step_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewStepsClient("<subscription-id>", cred, nil) _, err = client.Delete(ctx, "<resource-group-name>", "<step-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*StepsClient) Get ¶
func (client *StepsClient) Get(ctx context.Context, resourceGroupName string, stepName string, options *StepsClientGetOptions) (StepsClientGetResponse, error)
Get - Gets the step. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. stepName - The name of the deployment step. options - StepsClientGetOptions contains the optional parameters for the StepsClient.Get method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/step_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewStepsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<step-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.StepsClientGetResult) }
Output:
func (*StepsClient) List ¶
func (client *StepsClient) List(ctx context.Context, resourceGroupName string, options *StepsClientListOptions) (StepsClientListResponse, error)
List - Lists the steps in a resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - StepsClientListOptions contains the optional parameters for the StepsClient.List method.
Example ¶
x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/steps_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/deploymentmanager/armdeploymentmanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armdeploymentmanager.NewStepsClient("<subscription-id>", cred, nil) res, err := client.List(ctx, "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.StepsClientListResult) }
Output:
type StepsClientCreateOrUpdateOptions ¶ added in v0.2.0
type StepsClientCreateOrUpdateOptions struct { // The step object. StepInfo *StepResource }
StepsClientCreateOrUpdateOptions contains the optional parameters for the StepsClient.CreateOrUpdate method.
type StepsClientCreateOrUpdateResponse ¶ added in v0.2.0
type StepsClientCreateOrUpdateResponse struct { StepsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StepsClientCreateOrUpdateResponse contains the response from method StepsClient.CreateOrUpdate.
type StepsClientCreateOrUpdateResult ¶ added in v0.2.0
type StepsClientCreateOrUpdateResult struct {
StepResource
}
StepsClientCreateOrUpdateResult contains the result from method StepsClient.CreateOrUpdate.
type StepsClientDeleteOptions ¶ added in v0.2.0
type StepsClientDeleteOptions struct { }
StepsClientDeleteOptions contains the optional parameters for the StepsClient.Delete method.
type StepsClientDeleteResponse ¶ added in v0.2.0
type StepsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StepsClientDeleteResponse contains the response from method StepsClient.Delete.
type StepsClientGetOptions ¶ added in v0.2.0
type StepsClientGetOptions struct { }
StepsClientGetOptions contains the optional parameters for the StepsClient.Get method.
type StepsClientGetResponse ¶ added in v0.2.0
type StepsClientGetResponse struct { StepsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StepsClientGetResponse contains the response from method StepsClient.Get.
type StepsClientGetResult ¶ added in v0.2.0
type StepsClientGetResult struct {
StepResource
}
StepsClientGetResult contains the result from method StepsClient.Get.
type StepsClientListOptions ¶ added in v0.2.0
type StepsClientListOptions struct { }
StepsClientListOptions contains the optional parameters for the StepsClient.List method.
type StepsClientListResponse ¶ added in v0.2.0
type StepsClientListResponse struct { StepsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StepsClientListResponse contains the response from method StepsClient.List.
type StepsClientListResult ¶ added in v0.2.0
type StepsClientListResult struct { // The list of steps. StepResourceArray []*StepResource }
StepsClientListResult contains the result from method StepsClient.List.
type TrackedResource ¶
type TrackedResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,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"` }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
type WaitStepAttributes ¶
type WaitStepAttributes struct { // REQUIRED; The duration in ISO 8601 format of how long the wait should be. Duration *string `json:"duration,omitempty"` }
WaitStepAttributes - The parameters for the wait step.
type WaitStepProperties ¶
type WaitStepProperties struct { // REQUIRED; The Wait attributes Attributes *WaitStepAttributes `json:"attributes,omitempty"` // REQUIRED; The type of step. StepType *StepType `json:"stepType,omitempty"` }
WaitStepProperties - Defines the properties of a Wait step.
func (*WaitStepProperties) GetStepProperties ¶ added in v0.2.0
func (w *WaitStepProperties) GetStepProperties() *StepProperties
GetStepProperties implements the StepPropertiesClassification interface for type WaitStepProperties.
func (WaitStepProperties) MarshalJSON ¶
func (w WaitStepProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WaitStepProperties.
func (*WaitStepProperties) UnmarshalJSON ¶
func (w *WaitStepProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WaitStepProperties.
Source Files ¶
- build.go
- zz_generated_artifactsources_client.go
- zz_generated_constants.go
- zz_generated_models.go
- zz_generated_operations_client.go
- zz_generated_pollers.go
- zz_generated_polymorphic_helpers.go
- zz_generated_response_types.go
- zz_generated_rollouts_client.go
- zz_generated_services_client.go
- zz_generated_servicetopologies_client.go
- zz_generated_serviceunits_client.go
- zz_generated_steps_client.go
- zz_generated_time_rfc3339.go