Documentation ¶
Index ¶
- func PossibleValuesForCleanupOptions() []string
- func PossibleValuesForManagedServiceIdentityType() []string
- func PossibleValuesForScriptProvisioningState() []string
- func PossibleValuesForScriptType() []string
- func ValidateDeploymentScriptID(input interface{}, key string) (warnings []string, errors []error)
- type AzureCliScript
- type AzureCliScriptProperties
- type AzurePowerShellScript
- type AzurePowerShellScriptProperties
- type CleanupOptions
- type ContainerConfiguration
- type CreateOperationResponse
- type DeleteOperationResponse
- type DeploymentScript
- type DeploymentScriptId
- type DeploymentScriptOperationPredicate
- type DeploymentScriptUpdateParameter
- type DeploymentScriptsClient
- func (c DeploymentScriptsClient) Create(ctx context.Context, id DeploymentScriptId, input DeploymentScript) (result CreateOperationResponse, err error)
- func (c DeploymentScriptsClient) CreateThenPoll(ctx context.Context, id DeploymentScriptId, input DeploymentScript) error
- func (c DeploymentScriptsClient) Delete(ctx context.Context, id DeploymentScriptId) (result DeleteOperationResponse, err error)
- func (c DeploymentScriptsClient) Get(ctx context.Context, id DeploymentScriptId) (result GetOperationResponse, err error)
- func (c DeploymentScriptsClient) GetLogs(ctx context.Context, id DeploymentScriptId) (result GetLogsOperationResponse, err error)
- func (c DeploymentScriptsClient) GetLogsDefault(ctx context.Context, id DeploymentScriptId, ...) (result GetLogsDefaultOperationResponse, err error)
- func (c DeploymentScriptsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c DeploymentScriptsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c DeploymentScriptsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c DeploymentScriptsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- func (c DeploymentScriptsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
- func (c DeploymentScriptsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionCompleteResult, err error)
- func (c DeploymentScriptsClient) Update(ctx context.Context, id DeploymentScriptId, ...) (result UpdateOperationResponse, err error)
- type EnvironmentVariable
- type ErrorAdditionalInfo
- type ErrorResponse
- type GetLogsDefaultOperationOptions
- type GetLogsDefaultOperationResponse
- type GetLogsOperationResponse
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationResponse
- type LogProperties
- type ManagedServiceIdentity
- type ManagedServiceIdentityType
- type ScriptLog
- type ScriptLogsList
- type ScriptProvisioningState
- type ScriptStatus
- func (o *ScriptStatus) GetEndTimeAsTime() (*time.Time, error)
- func (o *ScriptStatus) GetExpirationTimeAsTime() (*time.Time, error)
- func (o *ScriptStatus) GetStartTimeAsTime() (*time.Time, error)
- func (o *ScriptStatus) SetEndTimeAsTime(input time.Time)
- func (o *ScriptStatus) SetExpirationTimeAsTime(input time.Time)
- func (o *ScriptStatus) SetStartTimeAsTime(input time.Time)
- type ScriptType
- type StorageAccountConfiguration
- type UpdateOperationResponse
- type UserAssignedIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCleanupOptions ¶
func PossibleValuesForCleanupOptions() []string
func PossibleValuesForManagedServiceIdentityType ¶
func PossibleValuesForManagedServiceIdentityType() []string
func PossibleValuesForScriptProvisioningState ¶
func PossibleValuesForScriptProvisioningState() []string
func PossibleValuesForScriptType ¶
func PossibleValuesForScriptType() []string
func ValidateDeploymentScriptID ¶
ValidateDeploymentScriptID checks that 'input' can be parsed as a Deployment Script ID
Types ¶
type AzureCliScript ¶
type AzureCliScript struct { Properties AzureCliScriptProperties `json:"properties"` // Fields inherited from DeploymentScript Id *string `json:"id,omitempty"` Identity *ManagedServiceIdentity `json:"identity,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
func (AzureCliScript) MarshalJSON ¶
func (s AzureCliScript) MarshalJSON() ([]byte, error)
type AzureCliScriptProperties ¶
type AzureCliScriptProperties struct { Arguments *string `json:"arguments,omitempty"` AzCliVersion string `json:"azCliVersion"` CleanupPreference *CleanupOptions `json:"cleanupPreference,omitempty"` ContainerSettings *ContainerConfiguration `json:"containerSettings,omitempty"` EnvironmentVariables *[]EnvironmentVariable `json:"environmentVariables,omitempty"` ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` Outputs *map[string]interface{} `json:"outputs,omitempty"` PrimaryScriptUri *string `json:"primaryScriptUri,omitempty"` ProvisioningState *ScriptProvisioningState `json:"provisioningState,omitempty"` RetentionInterval string `json:"retentionInterval"` ScriptContent *string `json:"scriptContent,omitempty"` Status *ScriptStatus `json:"status,omitempty"` StorageAccountSettings *StorageAccountConfiguration `json:"storageAccountSettings,omitempty"` SupportingScriptUris *[]string `json:"supportingScriptUris,omitempty"` Timeout *string `json:"timeout,omitempty"` }
type AzurePowerShellScript ¶
type AzurePowerShellScript struct { Properties AzurePowerShellScriptProperties `json:"properties"` // Fields inherited from DeploymentScript Id *string `json:"id,omitempty"` Identity *ManagedServiceIdentity `json:"identity,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
func (AzurePowerShellScript) MarshalJSON ¶
func (s AzurePowerShellScript) MarshalJSON() ([]byte, error)
type AzurePowerShellScriptProperties ¶
type AzurePowerShellScriptProperties struct { Arguments *string `json:"arguments,omitempty"` AzPowerShellVersion string `json:"azPowerShellVersion"` CleanupPreference *CleanupOptions `json:"cleanupPreference,omitempty"` ContainerSettings *ContainerConfiguration `json:"containerSettings,omitempty"` EnvironmentVariables *[]EnvironmentVariable `json:"environmentVariables,omitempty"` ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` Outputs *map[string]interface{} `json:"outputs,omitempty"` PrimaryScriptUri *string `json:"primaryScriptUri,omitempty"` ProvisioningState *ScriptProvisioningState `json:"provisioningState,omitempty"` RetentionInterval string `json:"retentionInterval"` ScriptContent *string `json:"scriptContent,omitempty"` Status *ScriptStatus `json:"status,omitempty"` StorageAccountSettings *StorageAccountConfiguration `json:"storageAccountSettings,omitempty"` SupportingScriptUris *[]string `json:"supportingScriptUris,omitempty"` Timeout *string `json:"timeout,omitempty"` }
type CleanupOptions ¶
type CleanupOptions string
const ( CleanupOptionsAlways CleanupOptions = "Always" CleanupOptionsOnExpiration CleanupOptions = "OnExpiration" CleanupOptionsOnSuccess CleanupOptions = "OnSuccess" )
func (*CleanupOptions) UnmarshalJSON ¶ added in v0.20230509.1154719
func (s *CleanupOptions) UnmarshalJSON(bytes []byte) error
type ContainerConfiguration ¶
type ContainerConfiguration struct {
ContainerGroupName *string `json:"containerGroupName,omitempty"`
}
type CreateOperationResponse ¶
type DeleteOperationResponse ¶
type DeploymentScript ¶
type DeploymentScript interface { }
type DeploymentScriptId ¶
type DeploymentScriptId struct { SubscriptionId string ResourceGroupName string DeploymentScriptName string }
DeploymentScriptId is a struct representing the Resource ID for a Deployment Script
func NewDeploymentScriptID ¶
func NewDeploymentScriptID(subscriptionId string, resourceGroupName string, deploymentScriptName string) DeploymentScriptId
NewDeploymentScriptID returns a new DeploymentScriptId struct
func ParseDeploymentScriptID ¶
func ParseDeploymentScriptID(input string) (*DeploymentScriptId, error)
ParseDeploymentScriptID parses 'input' into a DeploymentScriptId
func ParseDeploymentScriptIDInsensitively ¶
func ParseDeploymentScriptIDInsensitively(input string) (*DeploymentScriptId, error)
ParseDeploymentScriptIDInsensitively parses 'input' case-insensitively into a DeploymentScriptId note: this method should only be used for API response data and not user input
func (DeploymentScriptId) ID ¶
func (id DeploymentScriptId) ID() string
ID returns the formatted Deployment Script ID
func (DeploymentScriptId) Segments ¶
func (id DeploymentScriptId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Deployment Script ID
func (DeploymentScriptId) String ¶
func (id DeploymentScriptId) String() string
String returns a human-readable description of this Deployment Script ID
type DeploymentScriptOperationPredicate ¶
type DeploymentScriptOperationPredicate struct { }
func (DeploymentScriptOperationPredicate) Matches ¶
func (p DeploymentScriptOperationPredicate) Matches(input DeploymentScript) bool
type DeploymentScriptsClient ¶
type DeploymentScriptsClient struct {
Client *resourcemanager.Client
}
func NewDeploymentScriptsClientWithBaseURI ¶
func NewDeploymentScriptsClientWithBaseURI(api environments.Api) (*DeploymentScriptsClient, error)
func (DeploymentScriptsClient) Create ¶
func (c DeploymentScriptsClient) Create(ctx context.Context, id DeploymentScriptId, input DeploymentScript) (result CreateOperationResponse, err error)
Create ...
func (DeploymentScriptsClient) CreateThenPoll ¶
func (c DeploymentScriptsClient) CreateThenPoll(ctx context.Context, id DeploymentScriptId, input DeploymentScript) error
CreateThenPoll performs Create then polls until it's completed
func (DeploymentScriptsClient) Delete ¶
func (c DeploymentScriptsClient) Delete(ctx context.Context, id DeploymentScriptId) (result DeleteOperationResponse, err error)
Delete ...
func (DeploymentScriptsClient) Get ¶
func (c DeploymentScriptsClient) Get(ctx context.Context, id DeploymentScriptId) (result GetOperationResponse, err error)
Get ...
func (DeploymentScriptsClient) GetLogs ¶
func (c DeploymentScriptsClient) GetLogs(ctx context.Context, id DeploymentScriptId) (result GetLogsOperationResponse, err error)
GetLogs ...
func (DeploymentScriptsClient) GetLogsDefault ¶
func (c DeploymentScriptsClient) GetLogsDefault(ctx context.Context, id DeploymentScriptId, options GetLogsDefaultOperationOptions) (result GetLogsDefaultOperationResponse, err error)
GetLogsDefault ...
func (DeploymentScriptsClient) ListByResourceGroup ¶
func (c DeploymentScriptsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (DeploymentScriptsClient) ListByResourceGroupComplete ¶
func (c DeploymentScriptsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (DeploymentScriptsClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c DeploymentScriptsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate DeploymentScriptOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DeploymentScriptsClient) ListBySubscription ¶
func (c DeploymentScriptsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (DeploymentScriptsClient) ListBySubscriptionComplete ¶
func (c DeploymentScriptsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (DeploymentScriptsClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c DeploymentScriptsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DeploymentScriptOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DeploymentScriptsClient) Update ¶
func (c DeploymentScriptsClient) Update(ctx context.Context, id DeploymentScriptId, input DeploymentScriptUpdateParameter) (result UpdateOperationResponse, err error)
Update ...
type EnvironmentVariable ¶
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { Info *interface{} `json:"info,omitempty"` Type *string `json:"type,omitempty"` }
type ErrorResponse ¶
type ErrorResponse struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` Code *string `json:"code,omitempty"` Details *[]ErrorResponse `json:"details,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` }
type GetLogsDefaultOperationOptions ¶
type GetLogsDefaultOperationOptions struct {
Tail *int64
}
func DefaultGetLogsDefaultOperationOptions ¶
func DefaultGetLogsDefaultOperationOptions() GetLogsDefaultOperationOptions
func (GetLogsDefaultOperationOptions) ToHeaders ¶ added in v0.20230509.1154719
func (o GetLogsDefaultOperationOptions) ToHeaders() *client.Headers
func (GetLogsDefaultOperationOptions) ToOData ¶ added in v0.20230509.1154719
func (o GetLogsDefaultOperationOptions) ToOData() *odata.Query
func (GetLogsDefaultOperationOptions) ToQuery ¶ added in v0.20230509.1154719
func (o GetLogsDefaultOperationOptions) ToQuery() *client.QueryParams
type GetLogsOperationResponse ¶
type GetLogsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ScriptLogsList }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DeploymentScript }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []DeploymentScript
}
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DeploymentScript }
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct {
Items []DeploymentScript
}
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DeploymentScript }
type LogProperties ¶
type LogProperties struct {
Log *string `json:"log,omitempty"`
}
type ManagedServiceIdentity ¶
type ManagedServiceIdentity struct { TenantId *string `json:"tenantId,omitempty"` Type *ManagedServiceIdentityType `json:"type,omitempty"` UserAssignedIdentities *map[string]UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` }
type ManagedServiceIdentityType ¶
type ManagedServiceIdentityType string
const (
ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned"
)
func (*ManagedServiceIdentityType) UnmarshalJSON ¶ added in v0.20230509.1154719
func (s *ManagedServiceIdentityType) UnmarshalJSON(bytes []byte) error
type ScriptLog ¶
type ScriptLog struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *LogProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ScriptLogsList ¶
type ScriptLogsList struct {
Value *[]ScriptLog `json:"value,omitempty"`
}
type ScriptProvisioningState ¶
type ScriptProvisioningState string
const ( ScriptProvisioningStateCanceled ScriptProvisioningState = "Canceled" ScriptProvisioningStateCreating ScriptProvisioningState = "Creating" ScriptProvisioningStateFailed ScriptProvisioningState = "Failed" ScriptProvisioningStateProvisioningResources ScriptProvisioningState = "ProvisioningResources" ScriptProvisioningStateRunning ScriptProvisioningState = "Running" ScriptProvisioningStateSucceeded ScriptProvisioningState = "Succeeded" )
func (*ScriptProvisioningState) UnmarshalJSON ¶ added in v0.20230509.1154719
func (s *ScriptProvisioningState) UnmarshalJSON(bytes []byte) error
type ScriptStatus ¶
type ScriptStatus struct { ContainerInstanceId *string `json:"containerInstanceId,omitempty"` EndTime *string `json:"endTime,omitempty"` Error *ErrorResponse `json:"error,omitempty"` ExpirationTime *string `json:"expirationTime,omitempty"` StartTime *string `json:"startTime,omitempty"` StorageAccountId *string `json:"storageAccountId,omitempty"` }
func (*ScriptStatus) GetEndTimeAsTime ¶
func (o *ScriptStatus) GetEndTimeAsTime() (*time.Time, error)
func (*ScriptStatus) GetExpirationTimeAsTime ¶
func (o *ScriptStatus) GetExpirationTimeAsTime() (*time.Time, error)
func (*ScriptStatus) GetStartTimeAsTime ¶
func (o *ScriptStatus) GetStartTimeAsTime() (*time.Time, error)
func (*ScriptStatus) SetEndTimeAsTime ¶
func (o *ScriptStatus) SetEndTimeAsTime(input time.Time)
func (*ScriptStatus) SetExpirationTimeAsTime ¶
func (o *ScriptStatus) SetExpirationTimeAsTime(input time.Time)
func (*ScriptStatus) SetStartTimeAsTime ¶
func (o *ScriptStatus) SetStartTimeAsTime(input time.Time)
type ScriptType ¶
type ScriptType string
const ( ScriptTypeAzureCLI ScriptType = "AzureCLI" ScriptTypeAzurePowerShell ScriptType = "AzurePowerShell" )
func (*ScriptType) UnmarshalJSON ¶ added in v0.20230509.1154719
func (s *ScriptType) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DeploymentScript }
type UserAssignedIdentity ¶
Source Files ¶
- client.go
- constants.go
- id_deploymentscript.go
- method_create.go
- method_delete.go
- method_get.go
- method_getlogs.go
- method_getlogsdefault.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_update.go
- model_azurecliscript.go
- model_azurecliscriptproperties.go
- model_azurepowershellscript.go
- model_azurepowershellscriptproperties.go
- model_containerconfiguration.go
- model_deploymentscript.go
- model_deploymentscriptupdateparameter.go
- model_environmentvariable.go
- model_erroradditionalinfo.go
- model_errorresponse.go
- model_logproperties.go
- model_managedserviceidentity.go
- model_scriptlog.go
- model_scriptlogslist.go
- model_scriptstatus.go
- model_storageaccountconfiguration.go
- model_userassignedidentity.go
- predicates.go
- version.go