azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager Index | Files | Directories

package deploymentmanager

import "github.com/Azure/azure-sdk-for-go/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager"

Package deploymentmanager implements the Azure ARM Deploymentmanager service API version 2018-09-01-preview.

REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information.

Index

Package Files

artifactsources.go client.go models.go operations.go rollouts.go services.go servicetopologies.go serviceunits.go steps.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Deploymentmanager
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type ArtifactSource Uses

type ArtifactSource struct {
    autorest.Response `json:"-"`
    // ArtifactSourceProperties - The properties that define the artifact source.
    *ArtifactSourceProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

ArtifactSource the resource that defines the source location where the artifacts are located.

func (ArtifactSource) MarshalJSON Uses

func (as ArtifactSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ArtifactSource.

func (*ArtifactSource) UnmarshalJSON Uses

func (as *ArtifactSource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ArtifactSource struct.

type ArtifactSourceProperties Uses

type ArtifactSourceProperties struct {
    // SourceType - The type of artifact source used.
    SourceType *string `json:"sourceType,omitempty"`
    // ArtifactRoot - 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"`
    // Authentication - The authentication method to use to access the artifact source.
    Authentication BasicAuthentication `json:"authentication,omitempty"`
}

ArtifactSourceProperties the properties that define the artifact source.

func (*ArtifactSourceProperties) UnmarshalJSON Uses

func (as *ArtifactSourceProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ArtifactSourceProperties struct.

type ArtifactSourcePropertiesModel Uses

type ArtifactSourcePropertiesModel struct {
    // SourceType - The type of artifact source used.
    SourceType *string `json:"sourceType,omitempty"`
    // ArtifactRoot - 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"`
    // Authentication - The authentication method to use to access the artifact source.
    Authentication BasicAuthentication `json:"authentication,omitempty"`
}

ArtifactSourcePropertiesModel the properties that define the source location where the artifacts are located.

func (*ArtifactSourcePropertiesModel) UnmarshalJSON Uses

func (aspm *ArtifactSourcePropertiesModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ArtifactSourcePropertiesModel struct.

type ArtifactSourcesClient Uses

type ArtifactSourcesClient struct {
    BaseClient
}

ArtifactSourcesClient is the REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information.

func NewArtifactSourcesClient Uses

func NewArtifactSourcesClient(subscriptionID string) ArtifactSourcesClient

NewArtifactSourcesClient creates an instance of the ArtifactSourcesClient client.

func NewArtifactSourcesClientWithBaseURI Uses

func NewArtifactSourcesClientWithBaseURI(baseURI string, subscriptionID string) ArtifactSourcesClient

NewArtifactSourcesClientWithBaseURI creates an instance of the ArtifactSourcesClient client.

func (ArtifactSourcesClient) CreateOrUpdate Uses

func (client ArtifactSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, artifactSourceName string, artifactSourceInfo *ArtifactSource) (result ArtifactSource, err error)

CreateOrUpdate synchronously creates a new artifact source or updates an existing artifact source. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. artifactSourceName - the name of the artifact source. artifactSourceInfo - source object that defines the resource.

func (ArtifactSourcesClient) CreateOrUpdatePreparer Uses

func (client ArtifactSourcesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, artifactSourceName string, artifactSourceInfo *ArtifactSource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ArtifactSourcesClient) CreateOrUpdateResponder Uses

func (client ArtifactSourcesClient) CreateOrUpdateResponder(resp *http.Response) (result ArtifactSource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ArtifactSourcesClient) CreateOrUpdateSender Uses

func (client ArtifactSourcesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ArtifactSourcesClient) Delete Uses

func (client ArtifactSourcesClient) Delete(ctx context.Context, resourceGroupName string, artifactSourceName string) (result autorest.Response, err error)

Delete sends the delete request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. artifactSourceName - the name of the artifact source.

func (ArtifactSourcesClient) DeletePreparer Uses

func (client ArtifactSourcesClient) DeletePreparer(ctx context.Context, resourceGroupName string, artifactSourceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ArtifactSourcesClient) DeleteResponder Uses

func (client ArtifactSourcesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ArtifactSourcesClient) DeleteSender Uses

func (client ArtifactSourcesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ArtifactSourcesClient) Get Uses

func (client ArtifactSourcesClient) Get(ctx context.Context, resourceGroupName string, artifactSourceName string) (result ArtifactSource, err error)

Get sends the get request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. artifactSourceName - the name of the artifact source.

func (ArtifactSourcesClient) GetPreparer Uses

func (client ArtifactSourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, artifactSourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ArtifactSourcesClient) GetResponder Uses

func (client ArtifactSourcesClient) GetResponder(resp *http.Response) (result ArtifactSource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ArtifactSourcesClient) GetSender Uses

func (client ArtifactSourcesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type Authentication Uses

type Authentication struct {
    // Type - Possible values include: 'TypeAuthentication', 'TypeSas'
    Type Type `json:"type,omitempty"`
}

Authentication defines the authentication method and properties to access the artifacts.

func (Authentication) AsAuthentication Uses

func (a Authentication) AsAuthentication() (*Authentication, bool)

AsAuthentication is the BasicAuthentication implementation for Authentication.

func (Authentication) AsBasicAuthentication Uses

func (a Authentication) AsBasicAuthentication() (BasicAuthentication, bool)

AsBasicAuthentication is the BasicAuthentication implementation for Authentication.

func (Authentication) AsSasAuthentication Uses

func (a Authentication) AsSasAuthentication() (*SasAuthentication, bool)

AsSasAuthentication is the BasicAuthentication implementation for Authentication.

func (Authentication) MarshalJSON Uses

func (a Authentication) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Authentication.

type AzureEntityResource Uses

type AzureEntityResource struct {
    // Etag - READ-ONLY; Resource Etag.
    Etag *string `json:"etag,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

AzureEntityResource the resource model definition for a Azure Resource Manager resource with an etag.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Deploymentmanager.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicAuthentication Uses

type BasicAuthentication interface {
    AsSasAuthentication() (*SasAuthentication, bool)
    AsAuthentication() (*Authentication, bool)
}

BasicAuthentication defines the authentication method and properties to access the artifacts.

type BasicStepProperties Uses

type BasicStepProperties interface {
    AsWaitStepProperties() (*WaitStepProperties, bool)
    AsStepProperties() (*StepProperties, bool)
}

BasicStepProperties the properties of a step resource.

type CloudError Uses

type CloudError struct {
    // Error - The properties that define the error.
    Error *CloudErrorBody `json:"error,omitempty"`
}

CloudError the error information object.

type CloudErrorBody Uses

type CloudErrorBody struct {
    // Code - READ-ONLY; Error code string.
    Code *string `json:"code,omitempty"`
    // Message - READ-ONLY; Descriptive error information.
    Message *string `json:"message,omitempty"`
    // Target - Error target
    Target *string `json:"target,omitempty"`
    // Details - More detailed error information.
    Details *[]CloudErrorBody `json:"details,omitempty"`
}

CloudErrorBody detailed error information of any failure.

type DeploymentMode Uses

type DeploymentMode string

DeploymentMode enumerates the values for deployment mode.

const (
    // Complete ...
    Complete DeploymentMode = "Complete"
    // Incremental ...
    Incremental DeploymentMode = "Incremental"
)

func PossibleDeploymentModeValues Uses

func PossibleDeploymentModeValues() []DeploymentMode

PossibleDeploymentModeValues returns an array of possible values for the DeploymentMode const type.

type Identity Uses

type Identity struct {
    // Type - The identity type.
    Type *string `json:"type,omitempty"`
    // IdentityIds - The list of identities.
    IdentityIds *[]string `json:"identityIds,omitempty"`
}

Identity identity for the resource.

type ListOperation Uses

type ListOperation struct {
    autorest.Response `json:"-"`
    Value             *[]Operation `json:"value,omitempty"`
}

ListOperation ...

type Message Uses

type Message struct {
    // TimeStamp - READ-ONLY; Time in UTC this message was provided.
    TimeStamp *date.Time `json:"timeStamp,omitempty"`
    // Message - READ-ONLY; The actual message text.
    Message *string `json:"message,omitempty"`
}

Message supplementary contextual messages during a rollout.

type Operation Uses

type Operation struct {
    // Name - The name of the operation.
    Name *string `json:"name,omitempty"`
    // Display - The display name of the operation.
    Display *OperationDetail `json:"display,omitempty"`
    // Origin - The origin of the operation.
    Origin *string `json:"origin,omitempty"`
    // Properties - The properties of the operation.
    Properties interface{} `json:"properties,omitempty"`
}

Operation represents an operation that can be performed on the service.

type OperationDetail Uses

type OperationDetail struct {
    // Provider - The name of the provider that supports the operation.
    Provider *string `json:"provider,omitempty"`
    // Resource - The resource type on which this operation can be performed.
    Resource *string `json:"resource,omitempty"`
    // Operation - The name of the operation.
    Operation *string `json:"operation,omitempty"`
    // Description - The description of the operation.
    Description *string `json:"description,omitempty"`
}

OperationDetail the detail about an operation.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information.

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) Get Uses

func (client OperationsClient) Get(ctx context.Context) (result ListOperation, err error)

Get sends the get request.

func (OperationsClient) GetPreparer Uses

func (client OperationsClient) GetPreparer(ctx context.Context) (*http.Request, error)

GetPreparer prepares the Get request.

func (OperationsClient) GetResponder Uses

func (client OperationsClient) GetResponder(resp *http.Response) (result ListOperation, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (OperationsClient) GetSender Uses

func (client OperationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type PrePostStep Uses

type PrePostStep struct {
    // StepID - The resource Id of the step to be run.
    StepID *string `json:"stepId,omitempty"`
}

PrePostStep the properties that define a step.

type ProxyResource Uses

type ProxyResource struct {
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags

type Resource Uses

type Resource struct {
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

Resource ...

type ResourceOperation Uses

type ResourceOperation struct {
    // ResourceName - 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"`
    // OperationID - READ-ONLY; Unique identifier of the operation. For ARM resources, this is the operationId obtained from ARM service.
    OperationID *string `json:"operationId,omitempty"`
    // ResourceType - 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"`
    // ProvisioningState - READ-ONLY; State of the resource deployment. For ARM resources, this is the current provisioning state of the resource.
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // StatusMessage - READ-ONLY; Descriptive information of the resource operation.
    StatusMessage *string `json:"statusMessage,omitempty"`
    // StatusCode - READ-ONLY; Http status code of the operation.
    StatusCode *string `json:"statusCode,omitempty"`
}

ResourceOperation individual resource operation information.

type Rollout Uses

type Rollout struct {
    autorest.Response `json:"-"`
    // Identity - Identity for the resource.
    Identity *Identity `json:"identity,omitempty"`
    // RolloutProperties - The properties that define a rollout.
    *RolloutProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

Rollout defines the rollout.

func (Rollout) MarshalJSON Uses

func (r Rollout) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Rollout.

func (*Rollout) UnmarshalJSON Uses

func (r *Rollout) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Rollout struct.

type RolloutOperationInfo Uses

type RolloutOperationInfo struct {
    // RetryAttempt - 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"`
    // SkipSucceededOnRetry - 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"`
    // StartTime - READ-ONLY; The start time of the rollout in UTC.
    StartTime *date.Time `json:"startTime,omitempty"`
    // EndTime - READ-ONLY; The start time of the rollout in UTC. This property will not be set if the rollout has not completed yet.
    EndTime *date.Time `json:"endTime,omitempty"`
    // Error - READ-ONLY; The detailed error information for any failure.
    Error *CloudErrorBody `json:"error,omitempty"`
}

RolloutOperationInfo detailed runtime information of the rollout.

type RolloutProperties Uses

type RolloutProperties struct {
    // BuildVersion - The version of the build being deployed.
    BuildVersion *string `json:"buildVersion,omitempty"`
    // ArtifactSourceID - The reference to the artifact source resource Id where the payload is located.
    ArtifactSourceID *string `json:"artifactSourceId,omitempty"`
    // TargetServiceTopologyID - 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"`
    // StepGroups - The list of step groups that define the orchestration.
    StepGroups *[]Step `json:"stepGroups,omitempty"`
    // Status - READ-ONLY; The current status of the rollout.
    Status *string `json:"status,omitempty"`
    // TotalRetryAttempts - READ-ONLY; The cardinal count of total number of retries performed on the rollout at a given time.
    TotalRetryAttempts *int32 `json:"totalRetryAttempts,omitempty"`
    // OperationInfo - READ-ONLY; Operational information of the rollout.
    OperationInfo *RolloutOperationInfo `json:"operationInfo,omitempty"`
    // Services - READ-ONLY; The detailed information on the services being deployed.
    Services *[]Service `json:"services,omitempty"`
}

RolloutProperties the properties that define a rollout.

type RolloutPropertiesModel Uses

type RolloutPropertiesModel struct {
    // Status - READ-ONLY; The current status of the rollout.
    Status *string `json:"status,omitempty"`
    // TotalRetryAttempts - READ-ONLY; The cardinal count of total number of retries performed on the rollout at a given time.
    TotalRetryAttempts *int32 `json:"totalRetryAttempts,omitempty"`
    // OperationInfo - READ-ONLY; Operational information of the rollout.
    OperationInfo *RolloutOperationInfo `json:"operationInfo,omitempty"`
    // Services - READ-ONLY; The detailed information on the services being deployed.
    Services *[]Service `json:"services,omitempty"`
}

RolloutPropertiesModel defines the properties of a rollout.

type RolloutRequest Uses

type RolloutRequest struct {
    autorest.Response `json:"-"`
    // Identity - Identity for the resource.
    Identity *Identity `json:"identity,omitempty"`
    // RolloutRequestProperties - Defines the properties that make up a rollout request.
    *RolloutRequestProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

RolloutRequest defines the PUT rollout request body.

func (RolloutRequest) MarshalJSON Uses

func (rr RolloutRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RolloutRequest.

func (*RolloutRequest) UnmarshalJSON Uses

func (rr *RolloutRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RolloutRequest struct.

type RolloutRequestProperties Uses

type RolloutRequestProperties struct {
    // BuildVersion - The version of the build being deployed.
    BuildVersion *string `json:"buildVersion,omitempty"`
    // ArtifactSourceID - The reference to the artifact source resource Id where the payload is located.
    ArtifactSourceID *string `json:"artifactSourceId,omitempty"`
    // TargetServiceTopologyID - 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"`
    // StepGroups - The list of step groups that define the orchestration.
    StepGroups *[]Step `json:"stepGroups,omitempty"`
}

RolloutRequestProperties the properties for defining a rollout.

type RolloutStep Uses

type RolloutStep struct {
    // Name - Name of the step.
    Name *string `json:"name,omitempty"`
    // Status - READ-ONLY; Current state of the step.
    Status *string `json:"status,omitempty"`
    // StepGroup - The step group the current step is part of.
    StepGroup *string `json:"stepGroup,omitempty"`
    // OperationInfo - READ-ONLY; Detailed information of specific action execution.
    OperationInfo *StepOperationInfo `json:"operationInfo,omitempty"`
    // ResourceOperations - READ-ONLY; Set of resource operations that were performed, if any, on an Azure resource.
    ResourceOperations *[]ResourceOperation `json:"resourceOperations,omitempty"`
    // Messages - READ-ONLY; Supplementary informative messages during rollout.
    Messages *[]Message `json:"messages,omitempty"`
}

RolloutStep defines a specific step on a target service unit.

type RolloutsClient Uses

type RolloutsClient struct {
    BaseClient
}

RolloutsClient is the REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information.

func NewRolloutsClient Uses

func NewRolloutsClient(subscriptionID string) RolloutsClient

NewRolloutsClient creates an instance of the RolloutsClient client.

func NewRolloutsClientWithBaseURI Uses

func NewRolloutsClientWithBaseURI(baseURI string, subscriptionID string) RolloutsClient

NewRolloutsClientWithBaseURI creates an instance of the RolloutsClient client.

func (RolloutsClient) Cancel Uses

func (client RolloutsClient) Cancel(ctx context.Context, resourceGroupName string, rolloutName string) (result Rollout, err error)

Cancel only running rollouts can be canceled. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. rolloutName - the rollout name.

func (RolloutsClient) CancelPreparer Uses

func (client RolloutsClient) CancelPreparer(ctx context.Context, resourceGroupName string, rolloutName string) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (RolloutsClient) CancelResponder Uses

func (client RolloutsClient) CancelResponder(resp *http.Response) (result Rollout, err error)

CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.

func (RolloutsClient) CancelSender Uses

func (client RolloutsClient) CancelSender(req *http.Request) (*http.Response, error)

CancelSender sends the Cancel request. The method will close the http.Response Body if it receives an error.

func (RolloutsClient) CreateOrUpdate Uses

func (client RolloutsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, rolloutName string, rolloutRequest *RolloutRequest) (result RolloutsCreateOrUpdateFuture, err error)

CreateOrUpdate this is an asynchronous operation and can be polled to completion using the location header returned by this operation. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. rolloutName - the rollout name. rolloutRequest - source rollout request object that defines the rollout.

func (RolloutsClient) CreateOrUpdatePreparer Uses

func (client RolloutsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, rolloutName string, rolloutRequest *RolloutRequest) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (RolloutsClient) CreateOrUpdateResponder Uses

func (client RolloutsClient) CreateOrUpdateResponder(resp *http.Response) (result RolloutRequest, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (RolloutsClient) CreateOrUpdateSender Uses

func (client RolloutsClient) CreateOrUpdateSender(req *http.Request) (future RolloutsCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (RolloutsClient) Delete Uses

func (client RolloutsClient) Delete(ctx context.Context, resourceGroupName string, rolloutName string) (result autorest.Response, err error)

Delete only rollouts in terminal state can be deleted. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. rolloutName - the rollout name.

func (RolloutsClient) DeletePreparer Uses

func (client RolloutsClient) DeletePreparer(ctx context.Context, resourceGroupName string, rolloutName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (RolloutsClient) DeleteResponder Uses

func (client RolloutsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (RolloutsClient) DeleteSender Uses

func (client RolloutsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (RolloutsClient) Get Uses

func (client RolloutsClient) Get(ctx context.Context, resourceGroupName string, rolloutName string, retryAttempt *int32) (result Rollout, err error)

Get sends the get request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. rolloutName - the rollout name. retryAttempt - rollout retry attempt ordinal to get the result of. If not specified, result of the latest attempt will be returned.

func (RolloutsClient) GetPreparer Uses

func (client RolloutsClient) GetPreparer(ctx context.Context, resourceGroupName string, rolloutName string, retryAttempt *int32) (*http.Request, error)

GetPreparer prepares the Get request.

func (RolloutsClient) GetResponder Uses

func (client RolloutsClient) GetResponder(resp *http.Response) (result Rollout, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RolloutsClient) GetSender Uses

func (client RolloutsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RolloutsClient) Restart Uses

func (client RolloutsClient) Restart(ctx context.Context, resourceGroupName string, rolloutName string, skipSucceeded *bool) (result Rollout, err error)

Restart only failed rollouts can be restarted. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. rolloutName - the rollout name. skipSucceeded - 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.

func (RolloutsClient) RestartPreparer Uses

func (client RolloutsClient) RestartPreparer(ctx context.Context, resourceGroupName string, rolloutName string, skipSucceeded *bool) (*http.Request, error)

RestartPreparer prepares the Restart request.

func (RolloutsClient) RestartResponder Uses

func (client RolloutsClient) RestartResponder(resp *http.Response) (result Rollout, err error)

RestartResponder handles the response to the Restart request. The method always closes the http.Response Body.

func (RolloutsClient) RestartSender Uses

func (client RolloutsClient) RestartSender(req *http.Request) (*http.Response, error)

RestartSender sends the Restart request. The method will close the http.Response Body if it receives an error.

type RolloutsCreateOrUpdateFuture Uses

type RolloutsCreateOrUpdateFuture struct {
    azure.Future
}

RolloutsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*RolloutsCreateOrUpdateFuture) Result Uses

func (future *RolloutsCreateOrUpdateFuture) Result(client RolloutsClient) (rr RolloutRequest, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SasAuthentication Uses

type SasAuthentication struct {
    // SasProperties - The SAS properties
    *SasProperties `json:"properties,omitempty"`
    // Type - Possible values include: 'TypeAuthentication', 'TypeSas'
    Type Type `json:"type,omitempty"`
}

SasAuthentication defines the properties to access the artifacts using an Azure Storage SAS URI.

func (SasAuthentication) AsAuthentication Uses

func (sa SasAuthentication) AsAuthentication() (*Authentication, bool)

AsAuthentication is the BasicAuthentication implementation for SasAuthentication.

func (SasAuthentication) AsBasicAuthentication Uses

func (sa SasAuthentication) AsBasicAuthentication() (BasicAuthentication, bool)

AsBasicAuthentication is the BasicAuthentication implementation for SasAuthentication.

func (SasAuthentication) AsSasAuthentication Uses

func (sa SasAuthentication) AsSasAuthentication() (*SasAuthentication, bool)

AsSasAuthentication is the BasicAuthentication implementation for SasAuthentication.

func (SasAuthentication) MarshalJSON Uses

func (sa SasAuthentication) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SasAuthentication.

func (*SasAuthentication) UnmarshalJSON Uses

func (sa *SasAuthentication) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SasAuthentication struct.

type SasProperties Uses

type SasProperties struct {
    // SasURI - 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 Uses

type Service struct {
    // Name - Name of the service.
    Name *string `json:"name,omitempty"`
    // ServiceUnits - The detailed information about the units that make up the service.
    ServiceUnits *[]ServiceUnit `json:"serviceUnits,omitempty"`
    // TargetLocation - The Azure location to which the resources in the service belong to or should be deployed to.
    TargetLocation *string `json:"targetLocation,omitempty"`
    // TargetSubscriptionID - The subscription to which the resources in the service belong to or should be deployed to.
    TargetSubscriptionID *string `json:"targetSubscriptionId,omitempty"`
}

Service defines a service.

type ServiceProperties Uses

type ServiceProperties struct {
    // TargetLocation - The Azure location to which the resources in the service belong to or should be deployed to.
    TargetLocation *string `json:"targetLocation,omitempty"`
    // TargetSubscriptionID - 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 Uses

type ServiceResource struct {
    autorest.Response `json:"-"`
    // ServiceResourceProperties - The properties that define a service in a service topology.
    *ServiceResourceProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

ServiceResource the resource representation of a service in a service topology.

func (ServiceResource) MarshalJSON Uses

func (sr ServiceResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceResource.

func (*ServiceResource) UnmarshalJSON Uses

func (sr *ServiceResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceResource struct.

type ServiceResourceProperties Uses

type ServiceResourceProperties struct {
    // TargetLocation - The Azure location to which the resources in the service belong to or should be deployed to.
    TargetLocation *string `json:"targetLocation,omitempty"`
    // TargetSubscriptionID - 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 Uses

type ServiceTopologiesClient struct {
    BaseClient
}

ServiceTopologiesClient is the REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information.

func NewServiceTopologiesClient Uses

func NewServiceTopologiesClient(subscriptionID string) ServiceTopologiesClient

NewServiceTopologiesClient creates an instance of the ServiceTopologiesClient client.

func NewServiceTopologiesClientWithBaseURI Uses

func NewServiceTopologiesClientWithBaseURI(baseURI string, subscriptionID string) ServiceTopologiesClient

NewServiceTopologiesClientWithBaseURI creates an instance of the ServiceTopologiesClient client.

func (ServiceTopologiesClient) CreateOrUpdate Uses

func (client ServiceTopologiesClient) CreateOrUpdate(ctx context.Context, serviceTopologyInfo ServiceTopologyResource, resourceGroupName string, serviceTopologyName string) (result ServiceTopologyResource, err error)

CreateOrUpdate synchronously creates a new service topology or updates an existing service topology. Parameters: serviceTopologyInfo - source topology object defines the resource. resourceGroupName - the name of the resource group. The name is case insensitive. serviceTopologyName - the name of the service topology .

func (ServiceTopologiesClient) CreateOrUpdatePreparer Uses

func (client ServiceTopologiesClient) CreateOrUpdatePreparer(ctx context.Context, serviceTopologyInfo ServiceTopologyResource, resourceGroupName string, serviceTopologyName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServiceTopologiesClient) CreateOrUpdateResponder Uses

func (client ServiceTopologiesClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceTopologyResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServiceTopologiesClient) CreateOrUpdateSender Uses

func (client ServiceTopologiesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServiceTopologiesClient) Delete Uses

func (client ServiceTopologiesClient) Delete(ctx context.Context, resourceGroupName string, serviceTopologyName string) (result autorest.Response, err error)

Delete sends the delete request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serviceTopologyName - the name of the service topology .

func (ServiceTopologiesClient) DeletePreparer Uses

func (client ServiceTopologiesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceTopologyName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServiceTopologiesClient) DeleteResponder Uses

func (client ServiceTopologiesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServiceTopologiesClient) DeleteSender Uses

func (client ServiceTopologiesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServiceTopologiesClient) Get Uses

func (client ServiceTopologiesClient) Get(ctx context.Context, resourceGroupName string, serviceTopologyName string) (result ServiceTopologyResource, err error)

Get sends the get request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serviceTopologyName - the name of the service topology .

func (ServiceTopologiesClient) GetPreparer Uses

func (client ServiceTopologiesClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceTopologyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServiceTopologiesClient) GetResponder Uses

func (client ServiceTopologiesClient) GetResponder(resp *http.Response) (result ServiceTopologyResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServiceTopologiesClient) GetSender Uses

func (client ServiceTopologiesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ServiceTopologyProperties Uses

type ServiceTopologyProperties struct {
    // ArtifactSourceID - 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 Uses

type ServiceTopologyResource struct {
    autorest.Response `json:"-"`
    // ServiceTopologyResourceProperties - The properties that define the service topology.
    *ServiceTopologyResourceProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

ServiceTopologyResource the resource representation of a service topology.

func (ServiceTopologyResource) MarshalJSON Uses

func (str ServiceTopologyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceTopologyResource.

func (*ServiceTopologyResource) UnmarshalJSON Uses

func (str *ServiceTopologyResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceTopologyResource struct.

type ServiceTopologyResourceProperties Uses

type ServiceTopologyResourceProperties struct {
    // ArtifactSourceID - 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 Uses

type ServiceUnit struct {
    // Name - Name of the service unit.
    Name *string `json:"name,omitempty"`
    // Steps - Detailed step information, if present.
    Steps *[]RolloutStep `json:"steps,omitempty"`
    // TargetResourceGroup - The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.
    TargetResourceGroup *string `json:"targetResourceGroup,omitempty"`
    // DeploymentMode - Describes the type of ARM deployment to be performed on the resource. Possible values include: 'Incremental', 'Complete'
    DeploymentMode DeploymentMode `json:"deploymentMode,omitempty"`
    // Artifacts - The artifacts for the service unit.
    Artifacts *ServiceUnitArtifacts `json:"artifacts,omitempty"`
}

ServiceUnit defines a service unit.

type ServiceUnitArtifacts Uses

type ServiceUnitArtifacts struct {
    // TemplateURI - The full URI of the ARM template file with the SAS token.
    TemplateURI *string `json:"templateUri,omitempty"`
    // ParametersURI - The full URI of the ARM parameters file with the SAS token.
    ParametersURI *string `json:"parametersUri,omitempty"`
    // TemplateArtifactSourceRelativePath - The path to the ARM template file relative to the artifact source.
    TemplateArtifactSourceRelativePath *string `json:"templateArtifactSourceRelativePath,omitempty"`
    // ParametersArtifactSourceRelativePath - The path to the ARM parameters file relative to the artifact source.
    ParametersArtifactSourceRelativePath *string `json:"parametersArtifactSourceRelativePath,omitempty"`
}

ServiceUnitArtifacts defines the artifacts of a service unit.

type ServiceUnitProperties Uses

type ServiceUnitProperties struct {
    // TargetResourceGroup - The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.
    TargetResourceGroup *string `json:"targetResourceGroup,omitempty"`
    // DeploymentMode - Describes the type of ARM deployment to be performed on the resource. Possible values include: 'Incremental', 'Complete'
    DeploymentMode DeploymentMode `json:"deploymentMode,omitempty"`
    // Artifacts - The artifacts for the service unit.
    Artifacts *ServiceUnitArtifacts `json:"artifacts,omitempty"`
}

ServiceUnitProperties defines the properties of a service unit.

type ServiceUnitResource Uses

type ServiceUnitResource struct {
    autorest.Response `json:"-"`
    // ServiceUnitResourceProperties - The properties that define the service unit.
    *ServiceUnitResourceProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

ServiceUnitResource represents the response of a service unit resource.

func (ServiceUnitResource) MarshalJSON Uses

func (sur ServiceUnitResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceUnitResource.

func (*ServiceUnitResource) UnmarshalJSON Uses

func (sur *ServiceUnitResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceUnitResource struct.

type ServiceUnitResourceProperties Uses

type ServiceUnitResourceProperties struct {
    // TargetResourceGroup - The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.
    TargetResourceGroup *string `json:"targetResourceGroup,omitempty"`
    // DeploymentMode - Describes the type of ARM deployment to be performed on the resource. Possible values include: 'Incremental', 'Complete'
    DeploymentMode DeploymentMode `json:"deploymentMode,omitempty"`
    // Artifacts - The artifacts for the service unit.
    Artifacts *ServiceUnitArtifacts `json:"artifacts,omitempty"`
}

ServiceUnitResourceProperties the properties that define the service unit.

type ServiceUnitsClient Uses

type ServiceUnitsClient struct {
    BaseClient
}

ServiceUnitsClient is the REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information.

func NewServiceUnitsClient Uses

func NewServiceUnitsClient(subscriptionID string) ServiceUnitsClient

NewServiceUnitsClient creates an instance of the ServiceUnitsClient client.

func NewServiceUnitsClientWithBaseURI Uses

func NewServiceUnitsClientWithBaseURI(baseURI string, subscriptionID string) ServiceUnitsClient

NewServiceUnitsClientWithBaseURI creates an instance of the ServiceUnitsClient client.

func (ServiceUnitsClient) CreateOrUpdate Uses

func (client ServiceUnitsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string, serviceUnitInfo ServiceUnitResource) (result ServiceUnitsCreateOrUpdateFuture, err error)

CreateOrUpdate this is an asynchronous operation and can be polled to completion using the operation resource returned by this operation. Parameters: 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.

func (ServiceUnitsClient) CreateOrUpdatePreparer Uses

func (client ServiceUnitsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string, serviceUnitInfo ServiceUnitResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServiceUnitsClient) CreateOrUpdateResponder Uses

func (client ServiceUnitsClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceUnitResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServiceUnitsClient) CreateOrUpdateSender Uses

func (client ServiceUnitsClient) CreateOrUpdateSender(req *http.Request) (future ServiceUnitsCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServiceUnitsClient) Delete Uses

func (client ServiceUnitsClient) Delete(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string) (result autorest.Response, err error)

Delete sends the delete request. Parameters: 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.

func (ServiceUnitsClient) DeletePreparer Uses

func (client ServiceUnitsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServiceUnitsClient) DeleteResponder Uses

func (client ServiceUnitsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServiceUnitsClient) DeleteSender Uses

func (client ServiceUnitsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServiceUnitsClient) Get Uses

func (client ServiceUnitsClient) Get(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string) (result ServiceUnitResource, err error)

Get sends the get request. Parameters: 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.

func (ServiceUnitsClient) GetPreparer Uses

func (client ServiceUnitsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServiceUnitsClient) GetResponder Uses

func (client ServiceUnitsClient) GetResponder(resp *http.Response) (result ServiceUnitResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServiceUnitsClient) GetSender Uses

func (client ServiceUnitsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ServiceUnitsCreateOrUpdateFuture Uses

type ServiceUnitsCreateOrUpdateFuture struct {
    azure.Future
}

ServiceUnitsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServiceUnitsCreateOrUpdateFuture) Result Uses

func (future *ServiceUnitsCreateOrUpdateFuture) Result(client ServiceUnitsClient) (sur ServiceUnitResource, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServicesClient Uses

type ServicesClient struct {
    BaseClient
}

ServicesClient is the REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information.

func NewServicesClient Uses

func NewServicesClient(subscriptionID string) ServicesClient

NewServicesClient creates an instance of the ServicesClient client.

func NewServicesClientWithBaseURI Uses

func NewServicesClientWithBaseURI(baseURI string, subscriptionID string) ServicesClient

NewServicesClientWithBaseURI creates an instance of the ServicesClient client.

func (ServicesClient) CreateOrUpdate Uses

func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceInfo ServiceResource) (result ServiceResource, err error)

CreateOrUpdate synchronously creates a new service or updates an existing service. Parameters: 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

func (ServicesClient) CreateOrUpdatePreparer Uses

func (client ServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceInfo ServiceResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServicesClient) CreateOrUpdateResponder Uses

func (client ServicesClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServicesClient) CreateOrUpdateSender Uses

func (client ServicesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) Delete Uses

func (client ServicesClient) Delete(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string) (result autorest.Response, err error)

Delete sends the delete request. Parameters: 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.

func (ServicesClient) DeletePreparer Uses

func (client ServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServicesClient) DeleteResponder Uses

func (client ServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServicesClient) DeleteSender Uses

func (client ServicesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) Get Uses

func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string) (result ServiceResource, err error)

Get sends the get request. Parameters: 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.

func (ServicesClient) GetPreparer Uses

func (client ServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServicesClient) GetResponder Uses

func (client ServicesClient) GetResponder(resp *http.Response) (result ServiceResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServicesClient) GetSender Uses

func (client ServicesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type Step Uses

type Step struct {
    // Name - The name of the step group.
    Name *string `json:"name,omitempty"`
    // DependsOnStepGroups - The list of step group names on which this step group depends on.
    DependsOnStepGroups *[]string `json:"dependsOnStepGroups,omitempty"`
    // PreDeploymentSteps - The list of steps to be run before deploying the target.
    PreDeploymentSteps *[]PrePostStep `json:"preDeploymentSteps,omitempty"`
    // DeploymentTargetID - 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"`
    // PostDeploymentSteps - The list of steps to be run after deploying the target.
    PostDeploymentSteps *[]PrePostStep `json:"postDeploymentSteps,omitempty"`
}

Step the properties that define an Azure Deployment Manager step.

type StepOperationInfo Uses

type StepOperationInfo struct {
    // DeploymentName - READ-ONLY; The name of the ARM deployment initiated as part of the step.
    DeploymentName *string `json:"deploymentName,omitempty"`
    // CorrelationID - READ-ONLY; Unique identifier to track the request for ARM-based resources.
    CorrelationID *string `json:"correlationId,omitempty"`
    // StartTime - READ-ONLY; Start time of the action in UTC.
    StartTime *date.Time `json:"startTime,omitempty"`
    // EndTime - READ-ONLY; End time of the action in UTC.
    EndTime *date.Time `json:"endTime,omitempty"`
    // LastUpdatedTime - READ-ONLY; Last time in UTC this operation was updated.
    LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"`
    // Error - The errors, if any, for the action.
    Error *CloudErrorBody `json:"error,omitempty"`
}

StepOperationInfo detailed information of a specific step run.

type StepProperties Uses

type StepProperties struct {
    // StepType - Possible values include: 'StepTypeStepProperties', 'StepTypeWait'
    StepType StepType `json:"stepType,omitempty"`
}

StepProperties the properties of a step resource.

func (StepProperties) AsBasicStepProperties Uses

func (sp StepProperties) AsBasicStepProperties() (BasicStepProperties, bool)

AsBasicStepProperties is the BasicStepProperties implementation for StepProperties.

func (StepProperties) AsStepProperties Uses

func (sp StepProperties) AsStepProperties() (*StepProperties, bool)

AsStepProperties is the BasicStepProperties implementation for StepProperties.

func (StepProperties) AsWaitStepProperties Uses

func (sp StepProperties) AsWaitStepProperties() (*WaitStepProperties, bool)

AsWaitStepProperties is the BasicStepProperties implementation for StepProperties.

func (StepProperties) MarshalJSON Uses

func (sp StepProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StepProperties.

type StepResource Uses

type StepResource struct {
    autorest.Response `json:"-"`
    // Properties - The properties that define the step.
    Properties BasicStepProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

StepResource the resource representation of a rollout step.

func (StepResource) MarshalJSON Uses

func (sr StepResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StepResource.

func (*StepResource) UnmarshalJSON Uses

func (sr *StepResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StepResource struct.

type StepType Uses

type StepType string

StepType enumerates the values for step type.

const (
    // StepTypeStepProperties ...
    StepTypeStepProperties StepType = "StepProperties"
    // StepTypeWait ...
    StepTypeWait StepType = "Wait"
)

func PossibleStepTypeValues Uses

func PossibleStepTypeValues() []StepType

PossibleStepTypeValues returns an array of possible values for the StepType const type.

type StepsClient Uses

type StepsClient struct {
    BaseClient
}

StepsClient is the REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information.

func NewStepsClient Uses

func NewStepsClient(subscriptionID string) StepsClient

NewStepsClient creates an instance of the StepsClient client.

func NewStepsClientWithBaseURI Uses

func NewStepsClientWithBaseURI(baseURI string, subscriptionID string) StepsClient

NewStepsClientWithBaseURI creates an instance of the StepsClient client.

func (StepsClient) CreateOrUpdate Uses

func (client StepsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, stepName string, stepInfo *StepResource) (result StepResource, err error)

CreateOrUpdate synchronously creates a new step or updates an existing step. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. stepName - the name of the deployment step. stepInfo - the step object.

func (StepsClient) CreateOrUpdatePreparer Uses

func (client StepsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, stepName string, stepInfo *StepResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (StepsClient) CreateOrUpdateResponder Uses

func (client StepsClient) CreateOrUpdateResponder(resp *http.Response) (result StepResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (StepsClient) CreateOrUpdateSender Uses

func (client StepsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (StepsClient) Delete Uses

func (client StepsClient) Delete(ctx context.Context, resourceGroupName string, stepName string) (result autorest.Response, err error)

Delete sends the delete request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. stepName - the name of the deployment step.

func (StepsClient) DeletePreparer Uses

func (client StepsClient) DeletePreparer(ctx context.Context, resourceGroupName string, stepName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (StepsClient) DeleteResponder Uses

func (client StepsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (StepsClient) DeleteSender Uses

func (client StepsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (StepsClient) Get Uses

func (client StepsClient) Get(ctx context.Context, resourceGroupName string, stepName string) (result StepResource, err error)

Get sends the get request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. stepName - the name of the deployment step.

func (StepsClient) GetPreparer Uses

func (client StepsClient) GetPreparer(ctx context.Context, resourceGroupName string, stepName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (StepsClient) GetResponder Uses

func (client StepsClient) GetResponder(resp *http.Response) (result StepResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (StepsClient) GetSender Uses

func (client StepsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type TrackedResource Uses

type TrackedResource struct {
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for a ARM tracked top level resource

func (TrackedResource) MarshalJSON Uses

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type Type Uses

type Type string

Type enumerates the values for type.

const (
    // TypeAuthentication ...
    TypeAuthentication Type = "Authentication"
    // TypeSas ...
    TypeSas Type = "Sas"
)

func PossibleTypeValues Uses

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type WaitStepAttributes Uses

type WaitStepAttributes struct {
    // Duration - 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 Uses

type WaitStepProperties struct {
    // Attributes - The Wait attributes
    Attributes *WaitStepAttributes `json:"attributes,omitempty"`
    // StepType - Possible values include: 'StepTypeStepProperties', 'StepTypeWait'
    StepType StepType `json:"stepType,omitempty"`
}

WaitStepProperties defines the properties of a Wait step.

func (WaitStepProperties) AsBasicStepProperties Uses

func (wsp WaitStepProperties) AsBasicStepProperties() (BasicStepProperties, bool)

AsBasicStepProperties is the BasicStepProperties implementation for WaitStepProperties.

func (WaitStepProperties) AsStepProperties Uses

func (wsp WaitStepProperties) AsStepProperties() (*StepProperties, bool)

AsStepProperties is the BasicStepProperties implementation for WaitStepProperties.

func (WaitStepProperties) AsWaitStepProperties Uses

func (wsp WaitStepProperties) AsWaitStepProperties() (*WaitStepProperties, bool)

AsWaitStepProperties is the BasicStepProperties implementation for WaitStepProperties.

func (WaitStepProperties) MarshalJSON Uses

func (wsp WaitStepProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WaitStepProperties.

Directories

PathSynopsis
deploymentmanagerapi

Package deploymentmanager imports 9 packages (graph) and is imported by 3 packages. Updated 2019-07-30. Refresh now. Tools for package owners.