Documentation ¶
Index ¶
- func PossibleValuesForCleanupOptions() []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 BaseDeploymentScriptImpl
- type CleanupOptions
- type ContainerConfiguration
- type ContainerGroupSubnetId
- 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 ListByResourceGroupCustomPager
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionCustomPager
- type ListBySubscriptionOperationResponse
- type LogProperties
- type RawDeploymentScriptImpl
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCleanupOptions ¶
func PossibleValuesForCleanupOptions() []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"` Id *string `json:"id,omitempty"` Identity *identity.UserAssignedMap `json:"identity,omitempty"` Kind ScriptType `json:"kind"` 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) DeploymentScript ¶ added in v0.20240920.1135249
func (s AzureCliScript) DeploymentScript() BaseDeploymentScriptImpl
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"` Id *string `json:"id,omitempty"` Identity *identity.UserAssignedMap `json:"identity,omitempty"` Kind ScriptType `json:"kind"` 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) DeploymentScript ¶ added in v0.20240920.1135249
func (s AzurePowerShellScript) DeploymentScript() BaseDeploymentScriptImpl
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 BaseDeploymentScriptImpl ¶ added in v0.20240920.1135249
type BaseDeploymentScriptImpl struct { Id *string `json:"id,omitempty"` Identity *identity.UserAssignedMap `json:"identity,omitempty"` Kind ScriptType `json:"kind"` 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 (BaseDeploymentScriptImpl) DeploymentScript ¶ added in v0.20240920.1135249
func (s BaseDeploymentScriptImpl) DeploymentScript() BaseDeploymentScriptImpl
type CleanupOptions ¶
type CleanupOptions string
const ( CleanupOptionsAlways CleanupOptions = "Always" CleanupOptionsOnExpiration CleanupOptions = "OnExpiration" CleanupOptionsOnSuccess CleanupOptions = "OnSuccess" )
func (*CleanupOptions) UnmarshalJSON ¶
func (s *CleanupOptions) UnmarshalJSON(bytes []byte) error
type ContainerConfiguration ¶
type ContainerConfiguration struct { ContainerGroupName *string `json:"containerGroupName,omitempty"` SubnetIds *[]ContainerGroupSubnetId `json:"subnetIds,omitempty"` }
type ContainerGroupSubnetId ¶
type CreateOperationResponse ¶
type DeleteOperationResponse ¶
type DeploymentScript ¶
type DeploymentScript interface {
DeploymentScript() BaseDeploymentScriptImpl
}
func UnmarshalDeploymentScriptImplementation ¶ added in v0.20240920.1135249
func UnmarshalDeploymentScriptImplementation(input []byte) (DeploymentScript, error)
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) FromParseResult ¶
func (id *DeploymentScriptId) FromParseResult(input resourceids.ParseResult) error
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(sdkApi sdkEnv.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 ¶
func (o GetLogsDefaultOperationOptions) ToHeaders() *client.Headers
func (GetLogsDefaultOperationOptions) ToOData ¶
func (o GetLogsDefaultOperationOptions) ToOData() *odata.Query
func (GetLogsDefaultOperationOptions) ToQuery ¶
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 { LatestHttpResponse *http.Response Items []DeploymentScript }
type ListByResourceGroupCustomPager ¶ added in v0.20240628.1153531
func (*ListByResourceGroupCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DeploymentScript }
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct { LatestHttpResponse *http.Response Items []DeploymentScript }
type ListBySubscriptionCustomPager ¶ added in v0.20240628.1153531
func (*ListBySubscriptionCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DeploymentScript }
type LogProperties ¶
type LogProperties struct {
Log *string `json:"log,omitempty"`
}
type RawDeploymentScriptImpl ¶
type RawDeploymentScriptImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
RawDeploymentScriptImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
func (RawDeploymentScriptImpl) DeploymentScript ¶ added in v0.20240920.1135249
func (s RawDeploymentScriptImpl) DeploymentScript() BaseDeploymentScriptImpl
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 ¶
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 ¶
func (s *ScriptType) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model DeploymentScript }
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_containergroupsubnetid.go
- model_deploymentscript.go
- model_deploymentscriptupdateparameter.go
- model_environmentvariable.go
- model_erroradditionalinfo.go
- model_errorresponse.go
- model_logproperties.go
- model_scriptlog.go
- model_scriptlogslist.go
- model_scriptstatus.go
- model_storageaccountconfiguration.go
- predicates.go
- version.go