Documentation
¶
Index ¶
- type APIEntityReference
- type ApplicationGateway
- type ApplicationGatewayBackendAddressPool
- type AzureFileShareAccessTier
- type AzureFileShareAccessType
- type AzureFileVolume
- type CGProfileClient
- func (client *CGProfileClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[CGProfileClientDeleteResponse], error)
- func (client *CGProfileClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (CGProfileClientCreateOrUpdateResponse, error)
- func (client *CGProfileClient) Get(ctx context.Context, resourceGroupName string, ...) (CGProfileClientGetResponse, error)
- func (client *CGProfileClient) GetByRevisionNumber(ctx context.Context, resourceGroupName string, ...) (CGProfileClientGetByRevisionNumberResponse, error)
- func (client *CGProfileClient) NewListAllRevisionsPager(resourceGroupName string, containerGroupProfileName string, ...) *runtime.Pager[CGProfileClientListAllRevisionsResponse]
- func (client *CGProfileClient) Update(ctx context.Context, resourceGroupName string, ...) (CGProfileClientUpdateResponse, error)
- type CGProfileClientBeginDeleteOptions
- type CGProfileClientCreateOrUpdateOptions
- type CGProfileClientCreateOrUpdateResponse
- type CGProfileClientDeleteResponse
- type CGProfileClientGetByRevisionNumberOptions
- type CGProfileClientGetByRevisionNumberResponse
- type CGProfileClientGetOptions
- type CGProfileClientGetResponse
- type CGProfileClientListAllRevisionsOptions
- type CGProfileClientListAllRevisionsResponse
- type CGProfileClientUpdateOptions
- type CGProfileClientUpdateResponse
- type CGProfilesClient
- func (client *CGProfilesClient) NewListByResourceGroupPager(resourceGroupName string, options *CGProfilesClientListByResourceGroupOptions) *runtime.Pager[CGProfilesClientListByResourceGroupResponse]
- func (client *CGProfilesClient) NewListBySubscriptionPager(options *CGProfilesClientListBySubscriptionOptions) *runtime.Pager[CGProfilesClientListBySubscriptionResponse]
- type CGProfilesClientListByResourceGroupOptions
- type CGProfilesClientListByResourceGroupResponse
- type CGProfilesClientListBySubscriptionOptions
- type CGProfilesClientListBySubscriptionResponse
- type CachedImages
- type CachedImagesListResult
- type Capabilities
- type CapabilitiesCapabilities
- type CapabilitiesListResult
- type ConfidentialComputeProperties
- type Container
- type ContainerAttachResponse
- type ContainerExec
- type ContainerExecRequest
- type ContainerExecRequestTerminalSize
- type ContainerExecResponse
- type ContainerGroup
- type ContainerGroupDiagnostics
- type ContainerGroupIPAddressType
- type ContainerGroupIdentity
- type ContainerGroupListResult
- type ContainerGroupNetworkProtocol
- type ContainerGroupPriority
- type ContainerGroupProfile
- type ContainerGroupProfileListResult
- type ContainerGroupProfilePatch
- type ContainerGroupProfileProperties
- type ContainerGroupProfileStub
- type ContainerGroupProperties
- type ContainerGroupPropertiesInstanceView
- type ContainerGroupPropertiesProperties
- type ContainerGroupProvisioningState
- type ContainerGroupRestartPolicy
- type ContainerGroupSKU
- type ContainerGroupSubnetID
- type ContainerGroupsClient
- func (client *ContainerGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (*runtime.Poller[ContainerGroupsClientCreateOrUpdateResponse], error)
- func (client *ContainerGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (*runtime.Poller[ContainerGroupsClientDeleteResponse], error)
- func (client *ContainerGroupsClient) BeginRestart(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (*runtime.Poller[ContainerGroupsClientRestartResponse], error)
- func (client *ContainerGroupsClient) BeginStart(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (*runtime.Poller[ContainerGroupsClientStartResponse], error)
- func (client *ContainerGroupsClient) Get(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsClientGetResponse, error)
- func (client *ContainerGroupsClient) GetOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsResponse, error)
- func (client *ContainerGroupsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[ContainerGroupsClientListByResourceGroupResponse]
- func (client *ContainerGroupsClient) NewListPager(options *ContainerGroupsClientListOptions) *runtime.Pager[ContainerGroupsClientListResponse]
- func (client *ContainerGroupsClient) Stop(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsClientStopResponse, error)
- func (client *ContainerGroupsClient) Update(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsClientUpdateResponse, error)
- type ContainerGroupsClientBeginCreateOrUpdateOptions
- type ContainerGroupsClientBeginDeleteOptions
- type ContainerGroupsClientBeginRestartOptions
- type ContainerGroupsClientBeginStartOptions
- type ContainerGroupsClientCreateOrUpdateResponse
- type ContainerGroupsClientDeleteResponse
- type ContainerGroupsClientGetOptions
- type ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsOptions
- type ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsResponse
- type ContainerGroupsClientGetResponse
- type ContainerGroupsClientListByResourceGroupOptions
- type ContainerGroupsClientListByResourceGroupResponse
- type ContainerGroupsClientListOptions
- type ContainerGroupsClientListResponse
- type ContainerGroupsClientRestartResponse
- type ContainerGroupsClientStartResponse
- type ContainerGroupsClientStopOptions
- type ContainerGroupsClientStopResponse
- type ContainerGroupsClientUpdateOptions
- type ContainerGroupsClientUpdateResponse
- type ContainerHTTPGet
- type ContainerInstanceOperationsOrigin
- type ContainerNetworkProtocol
- type ContainerPort
- type ContainerProbe
- type ContainerProperties
- type ContainerPropertiesInstanceView
- type ContainerState
- type ContainersClient
- func (client *ContainersClient) Attach(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainersClientAttachResponse, error)
- func (client *ContainersClient) ExecuteCommand(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainersClientExecuteCommandResponse, error)
- func (client *ContainersClient) ListLogs(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainersClientListLogsResponse, error)
- type ContainersClientAttachOptions
- type ContainersClientAttachResponse
- type ContainersClientExecuteCommandOptions
- type ContainersClientExecuteCommandResponse
- type ContainersClientListLogsOptions
- type ContainersClientListLogsResponse
- type CreatedByType
- type DNSConfiguration
- type DNSNameLabelReusePolicy
- type DeploymentExtensionSpec
- type DeploymentExtensionSpecProperties
- type ElasticProfile
- type ElasticProfileContainerGroupNamingPolicy
- type ElasticProfileContainerGroupNamingPolicyGUIDNamingPolicy
- type EncryptionProperties
- type EnvironmentVariable
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type Event
- type FileShare
- type FileShareProperties
- type GitRepoVolume
- type GpuResource
- type GpuSKU
- type HTTPHeader
- type IPAddress
- type IdentityACLs
- type IdentityAccessControl
- type IdentityAccessLevel
- type ImageRegistryCredential
- type InitContainerDefinition
- type InitContainerPropertiesDefinition
- type InitContainerPropertiesDefinitionInstanceView
- type ListResultContainerGroup
- type ListResultContainerGroupProperties
- type ListResultContainerGroupPropertiesProperties
- type LoadBalancer
- type LoadBalancerBackendAddressPool
- type LocationClient
- func (client *LocationClient) NewListCachedImagesPager(location string, options *LocationClientListCachedImagesOptions) *runtime.Pager[LocationClientListCachedImagesResponse]
- func (client *LocationClient) NewListCapabilitiesPager(location string, options *LocationClientListCapabilitiesOptions) *runtime.Pager[LocationClientListCapabilitiesResponse]
- func (client *LocationClient) NewListUsagePager(location string, options *LocationClientListUsageOptions) *runtime.Pager[LocationClientListUsageResponse]
- type LocationClientListCachedImagesOptions
- type LocationClientListCachedImagesResponse
- type LocationClientListCapabilitiesOptions
- type LocationClientListCapabilitiesResponse
- type LocationClientListUsageOptions
- type LocationClientListUsageResponse
- type LogAnalytics
- type LogAnalyticsLogType
- type Logs
- type NGroup
- type NGroupCGPropertyContainer
- type NGroupCGPropertyContainerProperties
- type NGroupCGPropertyVolume
- type NGroupContainerGroupProperties
- type NGroupIdentity
- type NGroupProperties
- type NGroupProvisioningState
- type NGroupSKUs
- type NGroupUpdateMode
- type NGroupsClient
- func (client *NGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ngroupsName string, ...) (*runtime.Poller[NGroupsClientCreateOrUpdateResponse], error)
- func (client *NGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, ngroupsName string, ...) (*runtime.Poller[NGroupsClientDeleteResponse], error)
- func (client *NGroupsClient) BeginRestart(ctx context.Context, resourceGroupName string, ngroupsName string, ...) (*runtime.Poller[NGroupsClientRestartResponse], error)
- func (client *NGroupsClient) BeginStart(ctx context.Context, resourceGroupName string, ngroupsName string, ...) (*runtime.Poller[NGroupsClientStartResponse], error)
- func (client *NGroupsClient) BeginUpdate(ctx context.Context, resourceGroupName string, ngroupsName string, ...) (*runtime.Poller[NGroupsClientUpdateResponse], error)
- func (client *NGroupsClient) Get(ctx context.Context, resourceGroupName string, ngroupsName string, ...) (NGroupsClientGetResponse, error)
- func (client *NGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *NGroupsClientListByResourceGroupOptions) *runtime.Pager[NGroupsClientListByResourceGroupResponse]
- func (client *NGroupsClient) NewListPager(options *NGroupsClientListOptions) *runtime.Pager[NGroupsClientListResponse]
- func (client *NGroupsClient) Stop(ctx context.Context, resourceGroupName string, ngroupsName string, ...) (NGroupsClientStopResponse, error)
- type NGroupsClientBeginCreateOrUpdateOptions
- type NGroupsClientBeginDeleteOptions
- type NGroupsClientBeginRestartOptions
- type NGroupsClientBeginStartOptions
- type NGroupsClientBeginUpdateOptions
- type NGroupsClientCreateOrUpdateResponse
- type NGroupsClientDeleteResponse
- type NGroupsClientGetOptions
- type NGroupsClientGetResponse
- type NGroupsClientListByResourceGroupOptions
- type NGroupsClientListByResourceGroupResponse
- type NGroupsClientListOptions
- type NGroupsClientListResponse
- type NGroupsClientRestartResponse
- type NGroupsClientStartResponse
- type NGroupsClientStopOptions
- type NGroupsClientStopResponse
- type NGroupsClientUpdateResponse
- type NGroupsListResult
- type NGroupsSKUsList
- type NetworkProfile
- type OperatingSystemTypes
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type PlacementProfile
- type Port
- type Resource
- type ResourceIdentityType
- type ResourceLimits
- type ResourceRequests
- type ResourceRequirements
- type Scheme
- type SecretReference
- type SecurityContextCapabilitiesDefinition
- type SecurityContextDefinition
- type StorageProfile
- type SubnetServiceAssociationLinkClient
- type SubnetServiceAssociationLinkClientBeginDeleteOptions
- type SubnetServiceAssociationLinkClientDeleteResponse
- type SystemData
- type UpdateProfile
- type UpdateProfileRollingUpdateProfile
- type Usage
- type UsageListResult
- type UsageName
- type UserAssignedIdentities
- type Volume
- type VolumeMount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIEntityReference ¶
type APIEntityReference struct {
// The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/…
ID *string `json:"id,omitempty"`
}
APIEntityReference - The API entity reference.
func (APIEntityReference) MarshalJSON ¶
func (a APIEntityReference) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIEntityReference.
func (*APIEntityReference) UnmarshalJSON ¶
func (a *APIEntityReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type APIEntityReference.
type ApplicationGateway ¶
type ApplicationGateway struct {
// List of Application Gateway Backend Address Pools.
BackendAddressPools []*ApplicationGatewayBackendAddressPool `json:"backendAddressPools,omitempty"`
// The Application Gateway ARM resource Id.
Resource *APIEntityReference `json:"resource,omitempty"`
}
ApplicationGateway - Application Gateway the CG profile will use to interact with CGs in a backend pool
func (ApplicationGateway) MarshalJSON ¶
func (a ApplicationGateway) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGateway.
func (*ApplicationGateway) UnmarshalJSON ¶
func (a *ApplicationGateway) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationGateway.
type ApplicationGatewayBackendAddressPool ¶
type ApplicationGatewayBackendAddressPool struct {
// The application gateway backend address pool ARM resource Id.
Resource *APIEntityReference `json:"resource,omitempty"`
}
ApplicationGatewayBackendAddressPool - NGroups application gateway backend address pool
func (ApplicationGatewayBackendAddressPool) MarshalJSON ¶
func (a ApplicationGatewayBackendAddressPool) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayBackendAddressPool.
func (*ApplicationGatewayBackendAddressPool) UnmarshalJSON ¶
func (a *ApplicationGatewayBackendAddressPool) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationGatewayBackendAddressPool.
type AzureFileShareAccessTier ¶
type AzureFileShareAccessTier string
AzureFileShareAccessTier - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Learn more at: https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier
const ( )
func PossibleAzureFileShareAccessTierValues ¶
func PossibleAzureFileShareAccessTierValues() []AzureFileShareAccessTier
PossibleAzureFileShareAccessTierValues returns the possible values for the AzureFileShareAccessTier const type.
type AzureFileShareAccessType ¶
type AzureFileShareAccessType string
AzureFileShareAccessType - Specifies how Container Groups can access the Azure file share i.e. all CG will share same Azure file share or going to have exclusive file share.
const ( )
func PossibleAzureFileShareAccessTypeValues ¶
func PossibleAzureFileShareAccessTypeValues() []AzureFileShareAccessType
PossibleAzureFileShareAccessTypeValues returns the possible values for the AzureFileShareAccessType const type.
type AzureFileVolume ¶
type AzureFileVolume struct {
ShareName *string `json:"shareName,omitempty"`
// REQUIRED; The name of the storage account that contains the Azure File share.
StorageAccountName *string `json:"storageAccountName,omitempty"`
// The flag indicating whether the Azure File shared mounted as a volume is read-only.
ReadOnly *bool `json:"readOnly,omitempty"`
// The storage account access key used to access the Azure File share.
StorageAccountKey *string `json:"storageAccountKey,omitempty"`
// The reference to the storage account access key used to access the Azure File share.
StorageAccountKeyReference *string `json:"storageAccountKeyReference,omitempty"`
}
AzureFileVolume - The properties of the Azure File volume. Azure File shares are mounted as volumes.
func (AzureFileVolume) MarshalJSON ¶
func (a AzureFileVolume) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFileVolume.
func (*AzureFileVolume) UnmarshalJSON ¶
func (a *AzureFileVolume) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureFileVolume.
type CGProfileClient ¶
type CGProfileClient struct {
// contains filtered or unexported fields
}
func NewCGProfileClient ¶
func NewCGProfileClient(subscriptionID string, pl runtime.Pipeline) *CGProfileClient
NewCGProfileClient creates a new instance of CGProfileClient with the specified values. subscriptionID - The ID of the target subscription. The value must be an UUID. pl - the pipeline used for sending requests and handling responses.
func (*CGProfileClient) BeginDelete ¶
func (client *CGProfileClient) BeginDelete(ctx context.Context, resourceGroupName string, containerGroupProfileName string, options *CGProfileClientBeginDeleteOptions) (*runtime.Poller[CGProfileClientDeleteResponse], error)
BeginDelete - Deletes a container group profile. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupProfileName - ContainerGroupProfile name. options - CGProfileClientBeginDeleteOptions contains the optional parameters for the CGProfileClient.BeginDelete method.
func (*CGProfileClient) CreateOrUpdate ¶
func (client *CGProfileClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, containerGroupProfileName string, containerGroupProfile ContainerGroupProfile, options *CGProfileClientCreateOrUpdateOptions) (CGProfileClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create a CGProfile if it doesn't exist or update an existing CGProfile. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupProfileName - ContainerGroupProfile name. containerGroupProfile - The ContainerGroupProfile object. options - CGProfileClientCreateOrUpdateOptions contains the optional parameters for the CGProfileClient.CreateOrUpdate method.
func (*CGProfileClient) Get ¶
func (client *CGProfileClient) Get(ctx context.Context, resourceGroupName string, containerGroupProfileName string, options *CGProfileClientGetOptions) (CGProfileClientGetResponse, error)
Get - Get the properties of the specified container group profile. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupProfileName - ContainerGroupProfile name. options - CGProfileClientGetOptions contains the optional parameters for the CGProfileClient.Get method.
func (*CGProfileClient) GetByRevisionNumber ¶
func (client *CGProfileClient) GetByRevisionNumber(ctx context.Context, resourceGroupName string, containerGroupProfileName string, revisionNumber string, options *CGProfileClientGetByRevisionNumberOptions) (CGProfileClientGetByRevisionNumberResponse, error)
GetByRevisionNumber - Gets the properties of the specified revision of the container group profile in the given subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupProfileName - ContainerGroupProfile name. revisionNumber - The revision number of the container group profile. options - CGProfileClientGetByRevisionNumberOptions contains the optional parameters for the CGProfileClient.GetByRevisionNumber method.
func (*CGProfileClient) NewListAllRevisionsPager ¶
func (client *CGProfileClient) NewListAllRevisionsPager(resourceGroupName string, containerGroupProfileName string, options *CGProfileClientListAllRevisionsOptions) *runtime.Pager[CGProfileClientListAllRevisionsResponse]
NewListAllRevisionsPager - Get a list of all the revisions of the specified container group profile in the given subscription and resource group. This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupProfileName - ContainerGroupProfile name. options - CGProfileClientListAllRevisionsOptions contains the optional parameters for the CGProfileClient.ListAllRevisions method.
func (*CGProfileClient) Update ¶
func (client *CGProfileClient) Update(ctx context.Context, resourceGroupName string, containerGroupProfileName string, properties ContainerGroupProfilePatch, options *CGProfileClientUpdateOptions) (CGProfileClientUpdateResponse, error)
Update - Update a specified container group profile. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupProfileName - ContainerGroupProfile name. properties - The container group profile properties that need to be updated. options - CGProfileClientUpdateOptions contains the optional parameters for the CGProfileClient.Update method.
type CGProfileClientBeginDeleteOptions ¶
type CGProfileClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
CGProfileClientBeginDeleteOptions contains the optional parameters for the CGProfileClient.BeginDelete method.
type CGProfileClientCreateOrUpdateOptions ¶
type CGProfileClientCreateOrUpdateOptions struct {
}
CGProfileClientCreateOrUpdateOptions contains the optional parameters for the CGProfileClient.CreateOrUpdate method.
type CGProfileClientCreateOrUpdateResponse ¶
type CGProfileClientCreateOrUpdateResponse struct {
ContainerGroupProfile
// XMSCorrelationRequestID contains the information returned from the x-ms-correlation-request-id header response.
XMSCorrelationRequestID *string
}
CGProfileClientCreateOrUpdateResponse contains the response from method CGProfileClient.CreateOrUpdate.
type CGProfileClientDeleteResponse ¶
type CGProfileClientDeleteResponse struct {
}
CGProfileClientDeleteResponse contains the response from method CGProfileClient.Delete.
type CGProfileClientGetByRevisionNumberOptions ¶
type CGProfileClientGetByRevisionNumberOptions struct {
}
CGProfileClientGetByRevisionNumberOptions contains the optional parameters for the CGProfileClient.GetByRevisionNumber method.
type CGProfileClientGetByRevisionNumberResponse ¶
type CGProfileClientGetByRevisionNumberResponse struct {
ContainerGroupProfile
}
CGProfileClientGetByRevisionNumberResponse contains the response from method CGProfileClient.GetByRevisionNumber.
type CGProfileClientGetOptions ¶
type CGProfileClientGetOptions struct {
}
CGProfileClientGetOptions contains the optional parameters for the CGProfileClient.Get method.
type CGProfileClientGetResponse ¶
type CGProfileClientGetResponse struct {
ContainerGroupProfile
}
CGProfileClientGetResponse contains the response from method CGProfileClient.Get.
type CGProfileClientListAllRevisionsOptions ¶
type CGProfileClientListAllRevisionsOptions struct {
}
CGProfileClientListAllRevisionsOptions contains the optional parameters for the CGProfileClient.ListAllRevisions method.
type CGProfileClientListAllRevisionsResponse ¶
type CGProfileClientListAllRevisionsResponse struct {
ContainerGroupProfileListResult
}
CGProfileClientListAllRevisionsResponse contains the response from method CGProfileClient.ListAllRevisions.
type CGProfileClientUpdateOptions ¶
type CGProfileClientUpdateOptions struct {
}
CGProfileClientUpdateOptions contains the optional parameters for the CGProfileClient.Update method.
type CGProfileClientUpdateResponse ¶
type CGProfileClientUpdateResponse struct {
ContainerGroupProfile
// XMSCorrelationRequestID contains the information returned from the x-ms-correlation-request-id header response.
XMSCorrelationRequestID *string
}
CGProfileClientUpdateResponse contains the response from method CGProfileClient.Update.
type CGProfilesClient ¶
type CGProfilesClient struct {
// contains filtered or unexported fields
}
func NewCGProfilesClient ¶
func NewCGProfilesClient(subscriptionID string, pl runtime.Pipeline) *CGProfilesClient
NewCGProfilesClient creates a new instance of CGProfilesClient with the specified values. subscriptionID - The ID of the target subscription. The value must be an UUID. pl - the pipeline used for sending requests and handling responses.
func (*CGProfilesClient) NewListByResourceGroupPager ¶
func (client *CGProfilesClient) NewListByResourceGroupPager(resourceGroupName string, options *CGProfilesClientListByResourceGroupOptions) *runtime.Pager[CGProfilesClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets a list of all container group profiles under a resource group. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. options - CGProfilesClientListByResourceGroupOptions contains the optional parameters for the CGProfilesClient.ListByResourceGroup method.
func (*CGProfilesClient) NewListBySubscriptionPager ¶
func (client *CGProfilesClient) NewListBySubscriptionPager(options *CGProfilesClientListBySubscriptionOptions) *runtime.Pager[CGProfilesClientListBySubscriptionResponse]
NewListBySubscriptionPager - Gets a list of all container group profiles under a subscription. Generated from API version 2024-11-01-preview options - CGProfilesClientListBySubscriptionOptions contains the optional parameters for the CGProfilesClient.ListBySubscription method.
type CGProfilesClientListByResourceGroupOptions ¶
type CGProfilesClientListByResourceGroupOptions struct {
}
CGProfilesClientListByResourceGroupOptions contains the optional parameters for the CGProfilesClient.ListByResourceGroup method.
type CGProfilesClientListByResourceGroupResponse ¶
type CGProfilesClientListByResourceGroupResponse struct {
ContainerGroupProfileListResult
}
CGProfilesClientListByResourceGroupResponse contains the response from method CGProfilesClient.ListByResourceGroup.
type CGProfilesClientListBySubscriptionOptions ¶
type CGProfilesClientListBySubscriptionOptions struct {
}
CGProfilesClientListBySubscriptionOptions contains the optional parameters for the CGProfilesClient.ListBySubscription method.
type CGProfilesClientListBySubscriptionResponse ¶
type CGProfilesClientListBySubscriptionResponse struct {
ContainerGroupProfileListResult
}
CGProfilesClientListBySubscriptionResponse contains the response from method CGProfilesClient.ListBySubscription.
type CachedImages ¶
type CachedImages struct {
// REQUIRED; The cached image name.
Image *string `json:"image,omitempty"`
// REQUIRED; The OS type of the cached image.
OSType *string `json:"osType,omitempty"`
}
CachedImages - The cached image and OS type.
func (CachedImages) MarshalJSON ¶
func (c CachedImages) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CachedImages.
func (*CachedImages) UnmarshalJSON ¶
func (c *CachedImages) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CachedImages.
type CachedImagesListResult ¶
type CachedImagesListResult struct {
// The URI to fetch the next page of cached images.
NextLink *string `json:"nextLink,omitempty"`
// The list of cached images.
Value []*CachedImages `json:"value,omitempty"`
}
CachedImagesListResult - The response containing cached images.
func (CachedImagesListResult) MarshalJSON ¶
func (c CachedImagesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CachedImagesListResult.
func (*CachedImagesListResult) UnmarshalJSON ¶
func (c *CachedImagesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CachedImagesListResult.
type Capabilities ¶
type Capabilities struct {
// READ-ONLY; The supported capabilities.
Capabilities *CapabilitiesCapabilities `json:"capabilities,omitempty" azure:"ro"`
// READ-ONLY; The GPU sku that this capability describes.
Gpu *string `json:"gpu,omitempty" azure:"ro"`
// READ-ONLY; The ip address type that this capability describes.
IPAddressType *string `json:"ipAddressType,omitempty" azure:"ro"`
// READ-ONLY; The resource location.
Location *string `json:"location,omitempty" azure:"ro"`
// READ-ONLY; The OS type that this capability describes.
OSType *string `json:"osType,omitempty" azure:"ro"`
// READ-ONLY; The resource type that this capability describes.
ResourceType *string `json:"resourceType,omitempty" azure:"ro"`
}
Capabilities - The regional capabilities.
func (Capabilities) MarshalJSON ¶
func (c Capabilities) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Capabilities.
func (*Capabilities) UnmarshalJSON ¶
func (c *Capabilities) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Capabilities.
type CapabilitiesCapabilities ¶
type CapabilitiesCapabilities struct {
// READ-ONLY; The maximum allowed CPU request in cores.
MaxCPU *float32 `json:"maxCpu,omitempty" azure:"ro"`
// READ-ONLY; The maximum allowed GPU count.
MaxGpuCount *float32 `json:"maxGpuCount,omitempty" azure:"ro"`
// READ-ONLY; The maximum allowed memory request in GB.
MaxMemoryInGB *float32 `json:"maxMemoryInGB,omitempty" azure:"ro"`
}
CapabilitiesCapabilities - The supported capabilities.
func (CapabilitiesCapabilities) MarshalJSON ¶
func (c CapabilitiesCapabilities) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapabilitiesCapabilities.
func (*CapabilitiesCapabilities) UnmarshalJSON ¶
func (c *CapabilitiesCapabilities) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CapabilitiesCapabilities.
type CapabilitiesListResult ¶
type CapabilitiesListResult struct {
// The URI to fetch the next page of capabilities.
NextLink *string `json:"nextLink,omitempty"`
// The list of capabilities.
Value []*Capabilities `json:"value,omitempty"`
}
CapabilitiesListResult - The response containing list of capabilities.
func (CapabilitiesListResult) MarshalJSON ¶
func (c CapabilitiesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapabilitiesListResult.
func (*CapabilitiesListResult) UnmarshalJSON ¶
func (c *CapabilitiesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CapabilitiesListResult.
type ConfidentialComputeProperties ¶
type ConfidentialComputeProperties struct {
// The base64 encoded confidential compute enforcement policy
CcePolicy *string `json:"ccePolicy,omitempty"`
}
ConfidentialComputeProperties - The properties for confidential container group
func (ConfidentialComputeProperties) MarshalJSON ¶
func (c ConfidentialComputeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfidentialComputeProperties.
func (*ConfidentialComputeProperties) UnmarshalJSON ¶
func (c *ConfidentialComputeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfidentialComputeProperties.
type Container ¶
type Container struct {
// REQUIRED; The user-provided name of the container instance.
Name *string `json:"name,omitempty"`
// REQUIRED; The properties of the container instance.
Properties *ContainerProperties `json:"properties,omitempty"`
}
Container - A container instance.
func (Container) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Container.
func (*Container) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Container.
type ContainerAttachResponse ¶
type ContainerAttachResponse struct {
// The password to the output stream from the attach. Send as an Authorization header value when connecting to the websocketUri.
Password *string `json:"password,omitempty"`
// The uri for the output stream from the attach.
WebSocketURI *string `json:"webSocketUri,omitempty"`
}
ContainerAttachResponse - The information for the output stream from container attach.
func (ContainerAttachResponse) MarshalJSON ¶
func (c ContainerAttachResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerAttachResponse.
func (*ContainerAttachResponse) UnmarshalJSON ¶
func (c *ContainerAttachResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAttachResponse.
type ContainerExec ¶
type ContainerExec struct {
// The commands to execute within the container.
Command []*string `json:"command,omitempty"`
}
ContainerExec - The container execution command, for liveness or readiness probe
func (ContainerExec) MarshalJSON ¶
func (c ContainerExec) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerExec.
func (*ContainerExec) UnmarshalJSON ¶
func (c *ContainerExec) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerExec.
type ContainerExecRequest ¶
type ContainerExecRequest struct {
// The command to be executed.
Command *string `json:"command,omitempty"`
// The size of the terminal.
TerminalSize *ContainerExecRequestTerminalSize `json:"terminalSize,omitempty"`
}
ContainerExecRequest - The container exec request.
func (ContainerExecRequest) MarshalJSON ¶
func (c ContainerExecRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerExecRequest.
func (*ContainerExecRequest) UnmarshalJSON ¶
func (c *ContainerExecRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerExecRequest.
type ContainerExecRequestTerminalSize ¶
type ContainerExecRequestTerminalSize struct {
// The column size of the terminal
Cols *int32 `json:"cols,omitempty"`
// The row size of the terminal
Rows *int32 `json:"rows,omitempty"`
}
ContainerExecRequestTerminalSize - The size of the terminal.
func (ContainerExecRequestTerminalSize) MarshalJSON ¶
func (c ContainerExecRequestTerminalSize) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerExecRequestTerminalSize.
func (*ContainerExecRequestTerminalSize) UnmarshalJSON ¶
func (c *ContainerExecRequestTerminalSize) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerExecRequestTerminalSize.
type ContainerExecResponse ¶
type ContainerExecResponse struct {
// The password to start the exec command.
Password *string `json:"password,omitempty"`
// The uri for the exec websocket.
WebSocketURI *string `json:"webSocketUri,omitempty"`
}
ContainerExecResponse - The information for the container exec command.
func (ContainerExecResponse) MarshalJSON ¶
func (c ContainerExecResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerExecResponse.
func (*ContainerExecResponse) UnmarshalJSON ¶
func (c *ContainerExecResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerExecResponse.
type ContainerGroup ¶
type ContainerGroup struct {
// REQUIRED; The container group properties
Properties *ContainerGroupPropertiesProperties `json:"properties,omitempty"`
// The identity of the container group, if configured.
Identity *ContainerGroupIdentity `json:"identity,omitempty"`
// The resource location.
Location *string `json:"location,omitempty"`
// The resource tags.
Tags map[string]*string `json:"tags,omitempty"`
// The zones for the container group.
Zones []*string `json:"zones,omitempty"`
// READ-ONLY; The resource id.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The resource name.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The resource type.
Type *string `json:"type,omitempty" azure:"ro"`
}
ContainerGroup - A container group.
func (ContainerGroup) MarshalJSON ¶
func (c ContainerGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroup.
func (*ContainerGroup) UnmarshalJSON ¶
func (c *ContainerGroup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroup.
type ContainerGroupDiagnostics ¶
type ContainerGroupDiagnostics struct {
// Container group log analytics information.
LogAnalytics *LogAnalytics `json:"logAnalytics,omitempty"`
}
ContainerGroupDiagnostics - Container group diagnostic information.
func (ContainerGroupDiagnostics) MarshalJSON ¶
func (c ContainerGroupDiagnostics) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupDiagnostics.
func (*ContainerGroupDiagnostics) UnmarshalJSON ¶
func (c *ContainerGroupDiagnostics) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupDiagnostics.
type ContainerGroupIPAddressType ¶
type ContainerGroupIPAddressType string
ContainerGroupIPAddressType - Specifies if the IP is exposed to the public internet or private VNET.
const ( ContainerGroupIPAddressTypePrivate ContainerGroupIPAddressType = "Private" ContainerGroupIPAddressTypePublic ContainerGroupIPAddressType = "Public" )
func PossibleContainerGroupIPAddressTypeValues ¶
func PossibleContainerGroupIPAddressTypeValues() []ContainerGroupIPAddressType
PossibleContainerGroupIPAddressTypeValues returns the possible values for the ContainerGroupIPAddressType const type.
type ContainerGroupIdentity ¶
type ContainerGroupIdentity struct {
// The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly
// created identity and a set of user assigned identities. The type 'None' will
// remove any identities from the container group.
Type *ResourceIdentityType `json:"type,omitempty"`
// The list of user identities associated with the container group.
UserAssignedIdentities map[string]*UserAssignedIdentities `json:"userAssignedIdentities,omitempty"`
// READ-ONLY; The principal id of the container group identity. This property will only be provided for a system assigned
// identity.
PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
// READ-ONLY; The tenant id associated with the container group. This property will only be provided for a system assigned
// identity.
TenantID *string `json:"tenantId,omitempty" azure:"ro"`
}
ContainerGroupIdentity - Identity for the container group.
func (ContainerGroupIdentity) MarshalJSON ¶
func (c ContainerGroupIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupIdentity.
func (*ContainerGroupIdentity) UnmarshalJSON ¶
func (c *ContainerGroupIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupIdentity.
type ContainerGroupListResult ¶
type ContainerGroupListResult struct {
// The URI to fetch the next page of container groups.
NextLink *string `json:"nextLink,omitempty"`
// The list of container groups.
Value []*ListResultContainerGroup `json:"value,omitempty"`
}
ContainerGroupListResult - The container group list response that contains the container group properties.
func (ContainerGroupListResult) MarshalJSON ¶
func (c ContainerGroupListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupListResult.
func (*ContainerGroupListResult) UnmarshalJSON ¶
func (c *ContainerGroupListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupListResult.
type ContainerGroupNetworkProtocol ¶
type ContainerGroupNetworkProtocol string
ContainerGroupNetworkProtocol - The protocol associated with the port.
const ( ContainerGroupNetworkProtocolTCP ContainerGroupNetworkProtocol = "TCP" ContainerGroupNetworkProtocolUDP ContainerGroupNetworkProtocol = "UDP" )
func PossibleContainerGroupNetworkProtocolValues ¶
func PossibleContainerGroupNetworkProtocolValues() []ContainerGroupNetworkProtocol
PossibleContainerGroupNetworkProtocolValues returns the possible values for the ContainerGroupNetworkProtocol const type.
type ContainerGroupPriority ¶
type ContainerGroupPriority string
ContainerGroupPriority - The priority of the container group.
const ( ContainerGroupPriorityRegular ContainerGroupPriority = "Regular" ContainerGroupPrioritySpot ContainerGroupPriority = "Spot" )
func PossibleContainerGroupPriorityValues ¶
func PossibleContainerGroupPriorityValues() []ContainerGroupPriority
PossibleContainerGroupPriorityValues returns the possible values for the ContainerGroupPriority const type.
type ContainerGroupProfile ¶
type ContainerGroupProfile struct {
// The resource location.
Location *string `json:"location,omitempty"`
// The container group profile properties
Properties *ContainerGroupProfileProperties `json:"properties,omitempty"`
// The resource tags.
Tags map[string]*string `json:"tags,omitempty"`
// The zones for the container group.
Zones []*string `json:"zones,omitempty"`
// READ-ONLY; The resource id.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The resource name.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
// READ-ONLY; The resource type.
Type *string `json:"type,omitempty" azure:"ro"`
}
ContainerGroupProfile - container group profile object
func (ContainerGroupProfile) MarshalJSON ¶
func (c ContainerGroupProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupProfile.
func (*ContainerGroupProfile) UnmarshalJSON ¶
func (c *ContainerGroupProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupProfile.
type ContainerGroupProfileListResult ¶
type ContainerGroupProfileListResult struct {
// The URI to fetch the next page of Container Group Profiles.
NextLink *string `json:"nextLink,omitempty"`
// The list of ContainerGroupProfiles under a subscription or resource group.
Value []*ContainerGroupProfile `json:"value,omitempty"`
}
ContainerGroupProfileListResult - The container group profile list response
func (ContainerGroupProfileListResult) MarshalJSON ¶
func (c ContainerGroupProfileListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupProfileListResult.
func (*ContainerGroupProfileListResult) UnmarshalJSON ¶
func (c *ContainerGroupProfileListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupProfileListResult.
type ContainerGroupProfilePatch ¶
type ContainerGroupProfilePatch struct {
// Resource tags.
Tags map[string]*string `json:"tags,omitempty"`
}
ContainerGroupProfilePatch - Properties of container group profile that need to be patched
func (ContainerGroupProfilePatch) MarshalJSON ¶
func (c ContainerGroupProfilePatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupProfilePatch.
func (*ContainerGroupProfilePatch) UnmarshalJSON ¶
func (c *ContainerGroupProfilePatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupProfilePatch.
type ContainerGroupProfileProperties ¶
type ContainerGroupProfileProperties struct {
// The properties for confidential container group
ConfidentialComputeProperties *ConfidentialComputeProperties `json:"confidentialComputeProperties,omitempty"`
// The containers within the container group.
Containers []*Container `json:"containers,omitempty"`
// The diagnostic information for a container group.
Diagnostics *ContainerGroupDiagnostics `json:"diagnostics,omitempty"`
// The encryption properties for a container group.
EncryptionProperties *EncryptionProperties `json:"encryptionProperties,omitempty"`
// extensions used by virtual kubelet
Extensions []*DeploymentExtensionSpec `json:"extensions,omitempty"`
// The IP address type of the container group.
IPAddress *IPAddress `json:"ipAddress,omitempty"`
// The image registry credentials by which the container group is created from.
ImageRegistryCredentials []*ImageRegistryCredential `json:"imageRegistryCredentials,omitempty"`
// The init containers for a container group.
InitContainers []*InitContainerDefinition `json:"initContainers,omitempty"`
// The operating system type required by the containers in the container group.
OSType *OperatingSystemTypes `json:"osType,omitempty"`
// The priority of the container group.
Priority *ContainerGroupPriority `json:"priority,omitempty"`
// Registered revisions are calculated at request time based off the records in the table logs.
RegisteredRevisions []*int64 `json:"registeredRevisions,omitempty"`
// Restart policy for all containers within the container group.
// * Always Always restart
// * OnFailure Restart on failure
// * Never Never restart
RestartPolicy *ContainerGroupRestartPolicy `json:"restartPolicy,omitempty"`
// Container group profile current revision number
Revision *int64 `json:"revision,omitempty"`
// The SKU for a container group.
SKU *ContainerGroupSKU `json:"sku,omitempty"`
// The container security properties.
SecurityContext *SecurityContextDefinition `json:"securityContext,omitempty"`
// Shutdown grace period for containers in a container group.
ShutdownGracePeriod *time.Time `json:"shutdownGracePeriod,omitempty"`
// Post completion time to live for containers of a CG
TimeToLive *time.Time `json:"timeToLive,omitempty"`
// Gets or sets Krypton use property.
UseKrypton *bool `json:"useKrypton,omitempty"`
// The list of volumes that can be mounted by containers in this container group.
Volumes []*Volume `json:"volumes,omitempty"`
}
ContainerGroupProfileProperties - The container group profile properties
func (ContainerGroupProfileProperties) MarshalJSON ¶
func (c ContainerGroupProfileProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupProfileProperties.
func (*ContainerGroupProfileProperties) UnmarshalJSON ¶
func (c *ContainerGroupProfileProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupProfileProperties.
type ContainerGroupProfileStub ¶
type ContainerGroupProfileStub struct {
// Container Group properties which can be set while creating or updating the NGroups.
ContainerGroupProperties *NGroupContainerGroupProperties `json:"containerGroupProperties,omitempty"`
// A network profile for network settings of a ContainerGroupProfile.
NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"`
// A reference to the container group profile ARM resource hosted in ACI RP.
Resource *APIEntityReference `json:"resource,omitempty"`
// The revision of the CG profile is an optional property. If customer does not to provide a revision then NGroups will pickup
// the latest revision of CGProfile.
Revision *int32 `json:"revision,omitempty"`
// Storage profile for storage related settings of a container group profile.
StorageProfile *StorageProfile `json:"storageProfile,omitempty"`
}
ContainerGroupProfileStub - The object that contains a reference to a Container Group Profile and it's other related properties.
func (ContainerGroupProfileStub) MarshalJSON ¶
func (c ContainerGroupProfileStub) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupProfileStub.
func (*ContainerGroupProfileStub) UnmarshalJSON ¶
func (c *ContainerGroupProfileStub) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupProfileStub.
type ContainerGroupProperties ¶
type ContainerGroupProperties struct {
// REQUIRED; The container group properties
Properties *ContainerGroupPropertiesProperties `json:"properties,omitempty"`
// The identity of the container group, if configured.
Identity *ContainerGroupIdentity `json:"identity,omitempty"`
}
ContainerGroupProperties - The container group properties
func (ContainerGroupProperties) MarshalJSON ¶
func (c ContainerGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupProperties.
func (*ContainerGroupProperties) UnmarshalJSON ¶
func (c *ContainerGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupProperties.
type ContainerGroupPropertiesInstanceView ¶
type ContainerGroupPropertiesInstanceView struct {
// READ-ONLY; The events of this container group.
Events []*Event `json:"events,omitempty" azure:"ro"`
// READ-ONLY; The state of the container group. Only valid in response.
State *string `json:"state,omitempty" azure:"ro"`
}
ContainerGroupPropertiesInstanceView - The instance view of the container group. Only valid in response.
func (ContainerGroupPropertiesInstanceView) MarshalJSON ¶
func (c ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupPropertiesInstanceView.
func (*ContainerGroupPropertiesInstanceView) UnmarshalJSON ¶
func (c *ContainerGroupPropertiesInstanceView) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupPropertiesInstanceView.
type ContainerGroupPropertiesProperties ¶
type ContainerGroupPropertiesProperties struct {
// REQUIRED; The containers within the container group.
Containers []*Container `json:"containers,omitempty"`
// REQUIRED; The operating system type required by the containers in the container group.
OSType *OperatingSystemTypes `json:"osType,omitempty"`
// The properties for confidential container group
ConfidentialComputeProperties *ConfidentialComputeProperties `json:"confidentialComputeProperties,omitempty"`
// The DNS config information for a container group.
DNSConfig *DNSConfiguration `json:"dnsConfig,omitempty"`
// The diagnostic information for a container group.
Diagnostics *ContainerGroupDiagnostics `json:"diagnostics,omitempty"`
// The encryption properties for a container group.
EncryptionProperties *EncryptionProperties `json:"encryptionProperties,omitempty"`
// extensions used by virtual kubelet
Extensions []*DeploymentExtensionSpec `json:"extensions,omitempty"`
// The IP address type of the container group.
IPAddress *IPAddress `json:"ipAddress,omitempty"`
// The access control levels of the identities.
IdentityACLs *IdentityACLs `json:"identityAcls,omitempty"`
// The image registry credentials by which the container group is created from.
ImageRegistryCredentials []*ImageRegistryCredential `json:"imageRegistryCredentials,omitempty"`
// The init containers for a container group.
InitContainers []*InitContainerDefinition `json:"initContainers,omitempty"`
// The priority of the container group.
Priority *ContainerGroupPriority `json:"priority,omitempty"`
// Restart policy for all containers within the container group.
// * Always Always restart
// * OnFailure Restart on failure
// * Never Never restart
RestartPolicy *ContainerGroupRestartPolicy `json:"restartPolicy,omitempty"`
// The SKU for a container group.
SKU *ContainerGroupSKU `json:"sku,omitempty"`
// The secret references that will be referenced within the container group.
SecretReferences []*SecretReference `json:"secretReferences,omitempty"`
// The subnet resource IDs for a container group.
SubnetIDs []*ContainerGroupSubnetID `json:"subnetIds,omitempty"`
// The list of volumes that can be mounted by containers in this container group.
Volumes []*Volume `json:"volumes,omitempty"`
// READ-ONLY; The instance view of the container group. Only valid in response.
InstanceView *ContainerGroupPropertiesInstanceView `json:"instanceView,omitempty" azure:"ro"`
// READ-ONLY; The provisioning state of the container group. This only appears in the response.
ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
}
ContainerGroupPropertiesProperties - The container group properties
func (ContainerGroupPropertiesProperties) MarshalJSON ¶
func (c ContainerGroupPropertiesProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupPropertiesProperties.
func (*ContainerGroupPropertiesProperties) UnmarshalJSON ¶
func (c *ContainerGroupPropertiesProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupPropertiesProperties.
type ContainerGroupProvisioningState ¶
type ContainerGroupProvisioningState string
ContainerGroupProvisioningState - The provisioning state of the container group. This only appears in the response.
const ( ContainerGroupProvisioningStateAccepted ContainerGroupProvisioningState = "Accepted" ContainerGroupProvisioningStateCanceled ContainerGroupProvisioningState = "Canceled" ContainerGroupProvisioningStateCreating ContainerGroupProvisioningState = "Creating" ContainerGroupProvisioningStateDeleting ContainerGroupProvisioningState = "Deleting" ContainerGroupProvisioningStateFailed ContainerGroupProvisioningState = "Failed" ContainerGroupProvisioningStateNotAccessible ContainerGroupProvisioningState = "NotAccessible" ContainerGroupProvisioningStateNotSpecified ContainerGroupProvisioningState = "NotSpecified" ContainerGroupProvisioningStatePending ContainerGroupProvisioningState = "Pending" ContainerGroupProvisioningStatePreProvisioned ContainerGroupProvisioningState = "PreProvisioned" ContainerGroupProvisioningStateRepairing ContainerGroupProvisioningState = "Repairing" ContainerGroupProvisioningStateSucceeded ContainerGroupProvisioningState = "Succeeded" ContainerGroupProvisioningStateUnhealthy ContainerGroupProvisioningState = "Unhealthy" ContainerGroupProvisioningStateUpdating ContainerGroupProvisioningState = "Updating" )
func PossibleContainerGroupProvisioningStateValues ¶
func PossibleContainerGroupProvisioningStateValues() []ContainerGroupProvisioningState
PossibleContainerGroupProvisioningStateValues returns the possible values for the ContainerGroupProvisioningState const type.
type ContainerGroupRestartPolicy ¶
type ContainerGroupRestartPolicy string
ContainerGroupRestartPolicy - Restart policy for all containers within the container group. * Always Always restart * OnFailure Restart on failure * Never Never restart
const ( ContainerGroupRestartPolicyAlways ContainerGroupRestartPolicy = "Always" ContainerGroupRestartPolicyNever ContainerGroupRestartPolicy = "Never" ContainerGroupRestartPolicyOnFailure ContainerGroupRestartPolicy = "OnFailure" )
func PossibleContainerGroupRestartPolicyValues ¶
func PossibleContainerGroupRestartPolicyValues() []ContainerGroupRestartPolicy
PossibleContainerGroupRestartPolicyValues returns the possible values for the ContainerGroupRestartPolicy const type.
type ContainerGroupSKU ¶
type ContainerGroupSKU string
ContainerGroupSKU - The container group SKU.
const ( ContainerGroupSKUConfidential ContainerGroupSKU = "Confidential" ContainerGroupSKUDedicated ContainerGroupSKU = "Dedicated" ContainerGroupSKUNotSpecified ContainerGroupSKU = "NotSpecified" ContainerGroupSKUStandard ContainerGroupSKU = "Standard" )
func PossibleContainerGroupSKUValues ¶
func PossibleContainerGroupSKUValues() []ContainerGroupSKU
PossibleContainerGroupSKUValues returns the possible values for the ContainerGroupSKU const type.
type ContainerGroupSubnetID ¶
type ContainerGroupSubnetID struct {
// REQUIRED; Resource ID of virtual network and subnet.
ID *string `json:"id,omitempty"`
// Friendly name for the subnet.
Name *string `json:"name,omitempty"`
}
ContainerGroupSubnetID - Container group subnet information.
func (ContainerGroupSubnetID) MarshalJSON ¶
func (c ContainerGroupSubnetID) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupSubnetID.
func (*ContainerGroupSubnetID) UnmarshalJSON ¶
func (c *ContainerGroupSubnetID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerGroupSubnetID.
type ContainerGroupsClient ¶
type ContainerGroupsClient struct {
// contains filtered or unexported fields
}
func NewContainerGroupsClient ¶
func NewContainerGroupsClient(subscriptionID string, pl runtime.Pipeline) *ContainerGroupsClient
NewContainerGroupsClient creates a new instance of ContainerGroupsClient with the specified values. subscriptionID - The ID of the target subscription. The value must be an UUID. pl - the pipeline used for sending requests and handling responses.
func (*ContainerGroupsClient) BeginCreateOrUpdate ¶
func (client *ContainerGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, containerGroupName string, containerGroup ContainerGroup, options *ContainerGroupsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ContainerGroupsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update container groups with specified configurations. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. containerGroup - The properties of the container group to be created or updated. options - ContainerGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerGroupsClient.BeginCreateOrUpdate method.
func (*ContainerGroupsClient) BeginDelete ¶
func (client *ContainerGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsClientBeginDeleteOptions) (*runtime.Poller[ContainerGroupsClientDeleteResponse], error)
BeginDelete - Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. options - ContainerGroupsClientBeginDeleteOptions contains the optional parameters for the ContainerGroupsClient.BeginDelete method.
func (*ContainerGroupsClient) BeginRestart ¶
func (client *ContainerGroupsClient) BeginRestart(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsClientBeginRestartOptions) (*runtime.Poller[ContainerGroupsClientRestartResponse], error)
BeginRestart - Restarts all containers in a container group in place. If container image has updates, new image will be downloaded. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. options - ContainerGroupsClientBeginRestartOptions contains the optional parameters for the ContainerGroupsClient.BeginRestart method.
func (*ContainerGroupsClient) BeginStart ¶
func (client *ContainerGroupsClient) BeginStart(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsClientBeginStartOptions) (*runtime.Poller[ContainerGroupsClientStartResponse], error)
BeginStart - Starts all containers in a container group. Compute resources will be allocated and billing will start. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. options - ContainerGroupsClientBeginStartOptions contains the optional parameters for the ContainerGroupsClient.BeginStart method.
func (*ContainerGroupsClient) Get ¶
func (client *ContainerGroupsClient) Get(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsClientGetOptions) (ContainerGroupsClientGetResponse, error)
Get - Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. options - ContainerGroupsClientGetOptions contains the optional parameters for the ContainerGroupsClient.Get method.
func (*ContainerGroupsClient) GetOutboundNetworkDependenciesEndpoints ¶
func (client *ContainerGroupsClient) GetOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsOptions) (ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsResponse, error)
GetOutboundNetworkDependenciesEndpoints - Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. options - ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the ContainerGroupsClient.GetOutboundNetworkDependenciesEndpoints method.
func (*ContainerGroupsClient) NewListByResourceGroupPager ¶
func (client *ContainerGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *ContainerGroupsClientListByResourceGroupOptions) *runtime.Pager[ContainerGroupsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. options - ContainerGroupsClientListByResourceGroupOptions contains the optional parameters for the ContainerGroupsClient.ListByResourceGroup method.
func (*ContainerGroupsClient) NewListPager ¶
func (client *ContainerGroupsClient) NewListPager(options *ContainerGroupsClientListOptions) *runtime.Pager[ContainerGroupsClientListResponse]
NewListPager - Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. Generated from API version 2024-11-01-preview options - ContainerGroupsClientListOptions contains the optional parameters for the ContainerGroupsClient.List method.
func (*ContainerGroupsClient) Stop ¶
func (client *ContainerGroupsClient) Stop(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsClientStopOptions) (ContainerGroupsClientStopResponse, error)
Stop - Stops all containers in a container group. Compute resources will be deallocated and billing will stop. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. options - ContainerGroupsClientStopOptions contains the optional parameters for the ContainerGroupsClient.Stop method.
func (*ContainerGroupsClient) Update ¶
func (client *ContainerGroupsClient) Update(ctx context.Context, resourceGroupName string, containerGroupName string, resource Resource, options *ContainerGroupsClientUpdateOptions) (ContainerGroupsClientUpdateResponse, error)
Update - Updates container group tags with specified values. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. resource - The container group resource with just the tags to be updated. options - ContainerGroupsClientUpdateOptions contains the optional parameters for the ContainerGroupsClient.Update method.
type ContainerGroupsClientBeginCreateOrUpdateOptions ¶
type ContainerGroupsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
ContainerGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerGroupsClient.BeginCreateOrUpdate method.
type ContainerGroupsClientBeginDeleteOptions ¶
type ContainerGroupsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
ContainerGroupsClientBeginDeleteOptions contains the optional parameters for the ContainerGroupsClient.BeginDelete method.
type ContainerGroupsClientBeginRestartOptions ¶
type ContainerGroupsClientBeginRestartOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
ContainerGroupsClientBeginRestartOptions contains the optional parameters for the ContainerGroupsClient.BeginRestart method.
type ContainerGroupsClientBeginStartOptions ¶
type ContainerGroupsClientBeginStartOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
ContainerGroupsClientBeginStartOptions contains the optional parameters for the ContainerGroupsClient.BeginStart method.
type ContainerGroupsClientCreateOrUpdateResponse ¶
type ContainerGroupsClientCreateOrUpdateResponse struct {
ContainerGroup
}
ContainerGroupsClientCreateOrUpdateResponse contains the response from method ContainerGroupsClient.CreateOrUpdate.
type ContainerGroupsClientDeleteResponse ¶
type ContainerGroupsClientDeleteResponse struct {
ContainerGroup
}
ContainerGroupsClientDeleteResponse contains the response from method ContainerGroupsClient.Delete.
type ContainerGroupsClientGetOptions ¶
type ContainerGroupsClientGetOptions struct {
}
ContainerGroupsClientGetOptions contains the optional parameters for the ContainerGroupsClient.Get method.
type ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsOptions ¶
type ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsOptions struct {
}
ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the ContainerGroupsClient.GetOutboundNetworkDependenciesEndpoints method.
type ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsResponse ¶
type ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsResponse struct {
// Response for network dependencies, always empty list.
StringArray []*string
}
ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsResponse contains the response from method ContainerGroupsClient.GetOutboundNetworkDependenciesEndpoints.
type ContainerGroupsClientGetResponse ¶
type ContainerGroupsClientGetResponse struct {
ContainerGroup
}
ContainerGroupsClientGetResponse contains the response from method ContainerGroupsClient.Get.
type ContainerGroupsClientListByResourceGroupOptions ¶
type ContainerGroupsClientListByResourceGroupOptions struct {
}
ContainerGroupsClientListByResourceGroupOptions contains the optional parameters for the ContainerGroupsClient.ListByResourceGroup method.
type ContainerGroupsClientListByResourceGroupResponse ¶
type ContainerGroupsClientListByResourceGroupResponse struct {
ContainerGroupListResult
}
ContainerGroupsClientListByResourceGroupResponse contains the response from method ContainerGroupsClient.ListByResourceGroup.
type ContainerGroupsClientListOptions ¶
type ContainerGroupsClientListOptions struct {
}
ContainerGroupsClientListOptions contains the optional parameters for the ContainerGroupsClient.List method.
type ContainerGroupsClientListResponse ¶
type ContainerGroupsClientListResponse struct {
ContainerGroupListResult
}
ContainerGroupsClientListResponse contains the response from method ContainerGroupsClient.List.
type ContainerGroupsClientRestartResponse ¶
type ContainerGroupsClientRestartResponse struct {
}
ContainerGroupsClientRestartResponse contains the response from method ContainerGroupsClient.Restart.
type ContainerGroupsClientStartResponse ¶
type ContainerGroupsClientStartResponse struct {
}
ContainerGroupsClientStartResponse contains the response from method ContainerGroupsClient.Start.
type ContainerGroupsClientStopOptions ¶
type ContainerGroupsClientStopOptions struct {
}
ContainerGroupsClientStopOptions contains the optional parameters for the ContainerGroupsClient.Stop method.
type ContainerGroupsClientStopResponse ¶
type ContainerGroupsClientStopResponse struct {
}
ContainerGroupsClientStopResponse contains the response from method ContainerGroupsClient.Stop.
type ContainerGroupsClientUpdateOptions ¶
type ContainerGroupsClientUpdateOptions struct {
}
ContainerGroupsClientUpdateOptions contains the optional parameters for the ContainerGroupsClient.Update method.
type ContainerGroupsClientUpdateResponse ¶
type ContainerGroupsClientUpdateResponse struct {
ContainerGroup
}
ContainerGroupsClientUpdateResponse contains the response from method ContainerGroupsClient.Update.
type ContainerHTTPGet ¶
type ContainerHTTPGet struct {
// REQUIRED; The port number to probe.
Port *int32 `json:"port,omitempty"`
// The HTTP headers.
HTTPHeaders []*HTTPHeader `json:"httpHeaders,omitempty"`
// The path to probe.
Path *string `json:"path,omitempty"`
// The scheme.
Scheme *Scheme `json:"scheme,omitempty"`
}
ContainerHTTPGet - The container Http Get settings, for liveness or readiness probe
func (ContainerHTTPGet) MarshalJSON ¶
func (c ContainerHTTPGet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerHTTPGet.
func (*ContainerHTTPGet) UnmarshalJSON ¶
func (c *ContainerHTTPGet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerHTTPGet.
type ContainerInstanceOperationsOrigin ¶
type ContainerInstanceOperationsOrigin string
ContainerInstanceOperationsOrigin - The intended executor of the operation.
const ( ContainerInstanceOperationsOriginSystem ContainerInstanceOperationsOrigin = "System" ContainerInstanceOperationsOriginUser ContainerInstanceOperationsOrigin = "User" )
func PossibleContainerInstanceOperationsOriginValues ¶
func PossibleContainerInstanceOperationsOriginValues() []ContainerInstanceOperationsOrigin
PossibleContainerInstanceOperationsOriginValues returns the possible values for the ContainerInstanceOperationsOrigin const type.
type ContainerNetworkProtocol ¶
type ContainerNetworkProtocol string
ContainerNetworkProtocol - The protocol associated with the port.
const ( ContainerNetworkProtocolTCP ContainerNetworkProtocol = "TCP" ContainerNetworkProtocolUDP ContainerNetworkProtocol = "UDP" )
func PossibleContainerNetworkProtocolValues ¶
func PossibleContainerNetworkProtocolValues() []ContainerNetworkProtocol
PossibleContainerNetworkProtocolValues returns the possible values for the ContainerNetworkProtocol const type.
type ContainerPort ¶
type ContainerPort struct {
// REQUIRED; The port number exposed within the container group.
Port *int32 `json:"port,omitempty"`
// The protocol associated with the port.
Protocol *ContainerNetworkProtocol `json:"protocol,omitempty"`
}
ContainerPort - The port exposed on the container instance.
func (ContainerPort) MarshalJSON ¶
func (c ContainerPort) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerPort.
func (*ContainerPort) UnmarshalJSON ¶
func (c *ContainerPort) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerPort.
type ContainerProbe ¶
type ContainerProbe struct {
// The execution command to probe
Exec *ContainerExec `json:"exec,omitempty"`
// The failure threshold.
FailureThreshold *int32 `json:"failureThreshold,omitempty"`
// The Http Get settings to probe
HTTPGet *ContainerHTTPGet `json:"httpGet,omitempty"`
// The initial delay seconds.
InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"`
// The period seconds.
PeriodSeconds *int32 `json:"periodSeconds,omitempty"`
// The success threshold.
SuccessThreshold *int32 `json:"successThreshold,omitempty"`
// The timeout seconds.
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
}
ContainerProbe - The container probe, for liveness or readiness
func (ContainerProbe) MarshalJSON ¶
func (c ContainerProbe) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerProbe.
func (*ContainerProbe) UnmarshalJSON ¶
func (c *ContainerProbe) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerProbe.
type ContainerProperties ¶
type ContainerProperties struct {
// REQUIRED; The name of the image used to create the container instance.
Image *string `json:"image,omitempty"`
// REQUIRED; The resource requirements of the container instance.
Resources *ResourceRequirements `json:"resources,omitempty"`
// The commands to execute within the container instance in exec form.
Command []*string `json:"command,omitempty"`
// The environment variables to set in the container instance.
EnvironmentVariables []*EnvironmentVariable `json:"environmentVariables,omitempty"`
// The liveness probe.
LivenessProbe *ContainerProbe `json:"livenessProbe,omitempty"`
// The exposed ports on the container instance.
Ports []*ContainerPort `json:"ports,omitempty"`
// The readiness probe.
ReadinessProbe *ContainerProbe `json:"readinessProbe,omitempty"`
// The container security properties.
SecurityContext *SecurityContextDefinition `json:"securityContext,omitempty"`
// The volume mounts available to the container instance.
VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"`
// READ-ONLY; The instance view of the container instance. Only valid in response.
InstanceView *ContainerPropertiesInstanceView `json:"instanceView,omitempty" azure:"ro"`
}
ContainerProperties - The container instance properties.
func (ContainerProperties) MarshalJSON ¶
func (c ContainerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerProperties.
func (*ContainerProperties) UnmarshalJSON ¶
func (c *ContainerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerProperties.
type ContainerPropertiesInstanceView ¶
type ContainerPropertiesInstanceView struct {
// READ-ONLY; Current container instance state.
CurrentState *ContainerState `json:"currentState,omitempty" azure:"ro"`
// READ-ONLY; The events of the container instance.
Events []*Event `json:"events,omitempty" azure:"ro"`
// READ-ONLY; Previous container instance state.
PreviousState *ContainerState `json:"previousState,omitempty" azure:"ro"`
// READ-ONLY; The number of times that the container instance has been restarted.
RestartCount *int32 `json:"restartCount,omitempty" azure:"ro"`
}
ContainerPropertiesInstanceView - The instance view of the container instance. Only valid in response.
func (ContainerPropertiesInstanceView) MarshalJSON ¶
func (c ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerPropertiesInstanceView.
func (*ContainerPropertiesInstanceView) UnmarshalJSON ¶
func (c *ContainerPropertiesInstanceView) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerPropertiesInstanceView.
type ContainerState ¶
type ContainerState struct {
// READ-ONLY; The human-readable status of the container instance state.
DetailStatus *string `json:"detailStatus,omitempty" azure:"ro"`
// READ-ONLY; The container instance exit codes correspond to those from the docker run command.
ExitCode *int32 `json:"exitCode,omitempty" azure:"ro"`
// READ-ONLY; The date-time when the container instance state finished.
FinishTime *time.Time `json:"finishTime,omitempty" azure:"ro"`
// READ-ONLY; The date-time when the container instance state started.
StartTime *time.Time `json:"startTime,omitempty" azure:"ro"`
// READ-ONLY; The state of the container instance.
State *string `json:"state,omitempty" azure:"ro"`
}
ContainerState - The container instance state.
func (ContainerState) MarshalJSON ¶
func (c ContainerState) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerState.
func (*ContainerState) UnmarshalJSON ¶
func (c *ContainerState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerState.
type ContainersClient ¶
type ContainersClient struct {
// contains filtered or unexported fields
}
func NewContainersClient ¶
func NewContainersClient(subscriptionID string, pl runtime.Pipeline) *ContainersClient
NewContainersClient creates a new instance of ContainersClient with the specified values. subscriptionID - The ID of the target subscription. The value must be an UUID. pl - the pipeline used for sending requests and handling responses.
func (*ContainersClient) Attach ¶
func (client *ContainersClient) Attach(ctx context.Context, resourceGroupName string, containerGroupName string, containerName string, options *ContainersClientAttachOptions) (ContainersClientAttachResponse, error)
Attach - Attach to the output stream of a specific container instance in a specified resource group and container group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. containerName - The name of the container instance. options - ContainersClientAttachOptions contains the optional parameters for the ContainersClient.Attach method.
func (*ContainersClient) ExecuteCommand ¶
func (client *ContainersClient) ExecuteCommand(ctx context.Context, resourceGroupName string, containerGroupName string, containerName string, containerExecRequest ContainerExecRequest, options *ContainersClientExecuteCommandOptions) (ContainersClientExecuteCommandResponse, error)
ExecuteCommand - Executes a command for a specific container instance in a specified resource group and container group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. containerName - The name of the container instance. containerExecRequest - The request for the exec command. options - ContainersClientExecuteCommandOptions contains the optional parameters for the ContainersClient.ExecuteCommand method.
func (*ContainersClient) ListLogs ¶
func (client *ContainersClient) ListLogs(ctx context.Context, resourceGroupName string, containerGroupName string, containerName string, options *ContainersClientListLogsOptions) (ContainersClientListLogsResponse, error)
ListLogs - Get the logs for a specified container instance in a specified resource group and container group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. containerGroupName - The name of the container group. containerName - The name of the container instance. options - ContainersClientListLogsOptions contains the optional parameters for the ContainersClient.ListLogs method.
type ContainersClientAttachOptions ¶
type ContainersClientAttachOptions struct {
}
ContainersClientAttachOptions contains the optional parameters for the ContainersClient.Attach method.
type ContainersClientAttachResponse ¶
type ContainersClientAttachResponse struct {
ContainerAttachResponse
}
ContainersClientAttachResponse contains the response from method ContainersClient.Attach.
type ContainersClientExecuteCommandOptions ¶
type ContainersClientExecuteCommandOptions struct {
}
ContainersClientExecuteCommandOptions contains the optional parameters for the ContainersClient.ExecuteCommand method.
type ContainersClientExecuteCommandResponse ¶
type ContainersClientExecuteCommandResponse struct {
ContainerExecResponse
}
ContainersClientExecuteCommandResponse contains the response from method ContainersClient.ExecuteCommand.
type ContainersClientListLogsOptions ¶
type ContainersClientListLogsOptions struct {
// The number of lines to show from the tail of the container instance log. If not provided, all available logs are shown
// up to 4mb.
Tail *int32
// If true, adds a timestamp at the beginning of every line of log output. If not provided, defaults to false.
Timestamps *bool
}
ContainersClientListLogsOptions contains the optional parameters for the ContainersClient.ListLogs method.
type ContainersClientListLogsResponse ¶
type ContainersClientListLogsResponse struct {
Logs
}
ContainersClientListLogsResponse contains the response from method ContainersClient.ListLogs.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type DNSConfiguration ¶
type DNSConfiguration struct {
// REQUIRED; The DNS servers for the container group.
NameServers []*string `json:"nameServers,omitempty"`
// The DNS options for the container group.
Options *string `json:"options,omitempty"`
// The DNS search domains for hostname lookup in the container group.
SearchDomains *string `json:"searchDomains,omitempty"`
}
DNSConfiguration - DNS configuration for the container group.
func (DNSConfiguration) MarshalJSON ¶
func (d DNSConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DNSConfiguration.
func (*DNSConfiguration) UnmarshalJSON ¶
func (d *DNSConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DNSConfiguration.
type DNSNameLabelReusePolicy ¶
type DNSNameLabelReusePolicy string
DNSNameLabelReusePolicy - The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.
const ( DNSNameLabelReusePolicyNoreuse DNSNameLabelReusePolicy = "Noreuse" DNSNameLabelReusePolicyResourceGroupReuse DNSNameLabelReusePolicy = "ResourceGroupReuse" DNSNameLabelReusePolicySubscriptionReuse DNSNameLabelReusePolicy = "SubscriptionReuse" DNSNameLabelReusePolicyTenantReuse DNSNameLabelReusePolicy = "TenantReuse" DNSNameLabelReusePolicyUnsecure DNSNameLabelReusePolicy = "Unsecure" )
func PossibleDNSNameLabelReusePolicyValues ¶
func PossibleDNSNameLabelReusePolicyValues() []DNSNameLabelReusePolicy
PossibleDNSNameLabelReusePolicyValues returns the possible values for the DNSNameLabelReusePolicy const type.
type DeploymentExtensionSpec ¶
type DeploymentExtensionSpec struct {
// REQUIRED; Name of the extension.
Name *string `json:"name,omitempty"`
// Extension specific properties
Properties *DeploymentExtensionSpecProperties `json:"properties,omitempty"`
}
DeploymentExtensionSpec - Extension sidecars to be added to the deployment.
func (DeploymentExtensionSpec) MarshalJSON ¶
func (d DeploymentExtensionSpec) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentExtensionSpec.
func (*DeploymentExtensionSpec) UnmarshalJSON ¶
func (d *DeploymentExtensionSpec) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentExtensionSpec.
type DeploymentExtensionSpecProperties ¶
type DeploymentExtensionSpecProperties struct {
// REQUIRED; Type of extension to be added.
ExtensionType *string `json:"extensionType,omitempty"`
// REQUIRED; Version of the extension being used.
Version *string `json:"version,omitempty"`
// Protected settings for the extension.
ProtectedSettings interface{} `json:"protectedSettings,omitempty"`
// Settings for the extension.
Settings interface{} `json:"settings,omitempty"`
}
DeploymentExtensionSpecProperties - Extension specific properties
func (DeploymentExtensionSpecProperties) MarshalJSON ¶
func (d DeploymentExtensionSpecProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentExtensionSpecProperties.
func (*DeploymentExtensionSpecProperties) UnmarshalJSON ¶
func (d *DeploymentExtensionSpecProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentExtensionSpecProperties.
type ElasticProfile ¶
type ElasticProfile struct {
// Container Groups are named on a generic guid based naming scheme/policy. Customer can modify naming policy to add prefix
// to CG names during scale out operation.
ContainerGroupNamingPolicy *ElasticProfileContainerGroupNamingPolicy `json:"containerGroupNamingPolicy,omitempty"`
DesiredCount *int32 `json:"desiredCount,omitempty"`
// Flag that indicates whether desiredCount should be maintained when customer deletes SPECIFIC container groups (CGs) from
// the NGroups. In this case, new CGs will be created by NGroup to compensate for
// the specific deleted ones.
MaintainDesiredCount *bool `json:"maintainDesiredCount,omitempty"`
}
ElasticProfile - Describes the elastic profile of the NGroup
func (ElasticProfile) MarshalJSON ¶
func (e ElasticProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ElasticProfile.
func (*ElasticProfile) UnmarshalJSON ¶
func (e *ElasticProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ElasticProfile.
type ElasticProfileContainerGroupNamingPolicy ¶
type ElasticProfileContainerGroupNamingPolicy struct {
GUIDNamingPolicy *ElasticProfileContainerGroupNamingPolicyGUIDNamingPolicy `json:"guidNamingPolicy,omitempty"`
}
ElasticProfileContainerGroupNamingPolicy - Container Groups are named on a generic guid based naming scheme/policy. Customer can modify naming policy to add prefix to CG names during scale out operation.
func (ElasticProfileContainerGroupNamingPolicy) MarshalJSON ¶
func (e ElasticProfileContainerGroupNamingPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ElasticProfileContainerGroupNamingPolicy.
func (*ElasticProfileContainerGroupNamingPolicy) UnmarshalJSON ¶
func (e *ElasticProfileContainerGroupNamingPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ElasticProfileContainerGroupNamingPolicy.
type ElasticProfileContainerGroupNamingPolicyGUIDNamingPolicy ¶
type ElasticProfileContainerGroupNamingPolicyGUIDNamingPolicy struct {
// The prefix can be used when there are tooling limitations (e.g. on the Azure portal where CGs from multiple NGroups exist
// in the same RG). The prefix with the suffixed resource name must still follow
// Azure resource naming guidelines.
Prefix *string `json:"prefix,omitempty"`
}
func (ElasticProfileContainerGroupNamingPolicyGUIDNamingPolicy) MarshalJSON ¶
func (e ElasticProfileContainerGroupNamingPolicyGUIDNamingPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ElasticProfileContainerGroupNamingPolicyGUIDNamingPolicy.
func (*ElasticProfileContainerGroupNamingPolicyGUIDNamingPolicy) UnmarshalJSON ¶
func (e *ElasticProfileContainerGroupNamingPolicyGUIDNamingPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ElasticProfileContainerGroupNamingPolicyGUIDNamingPolicy.
type EncryptionProperties ¶
type EncryptionProperties struct {
// REQUIRED; The encryption key name.
KeyName *string `json:"keyName,omitempty"`
// REQUIRED; The encryption key version.
KeyVersion *string `json:"keyVersion,omitempty"`
// REQUIRED; The keyvault base url.
VaultBaseURL *string `json:"vaultBaseUrl,omitempty"`
// The keyvault managed identity.
Identity *string `json:"identity,omitempty"`
}
EncryptionProperties - The container group encryption properties.
func (EncryptionProperties) MarshalJSON ¶
func (e EncryptionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionProperties.
func (*EncryptionProperties) UnmarshalJSON ¶
func (e *EncryptionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionProperties.
type EnvironmentVariable ¶
type EnvironmentVariable struct {
// REQUIRED; The name of the environment variable.
Name *string `json:"name,omitempty"`
// The value of the secure environment variable.
SecureValue *string `json:"secureValue,omitempty"`
// The reference of the secure environment variable.
SecureValueReference *string `json:"secureValueReference,omitempty"`
// The value of the environment variable.
Value *string `json:"value,omitempty"`
}
EnvironmentVariable - The environment variable to set within the container instance.
func (EnvironmentVariable) MarshalJSON ¶
func (e EnvironmentVariable) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnvironmentVariable.
func (*EnvironmentVariable) UnmarshalJSON ¶
func (e *EnvironmentVariable) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentVariable.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct {
// READ-ONLY; The additional info.
Info interface{} `json:"info,omitempty" azure:"ro"`
// READ-ONLY; The additional info type.
Type *string `json:"type,omitempty" azure:"ro"`
}
ErrorAdditionalInfo - The resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶
func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.
func (*ErrorAdditionalInfo) UnmarshalJSON ¶
func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.
type ErrorDetail ¶
type ErrorDetail struct {
// READ-ONLY; The error additional info.
AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"`
// READ-ONLY; The error code.
Code *string `json:"code,omitempty" azure:"ro"`
// READ-ONLY; The error details.
Details []*ErrorDetail `json:"details,omitempty" azure:"ro"`
// READ-ONLY; The error message.
Message *string `json:"message,omitempty" azure:"ro"`
// READ-ONLY; The error target.
Target *string `json:"target,omitempty" azure:"ro"`
}
ErrorDetail - The error detail.
func (ErrorDetail) MarshalJSON ¶
func (e ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetail.
func (*ErrorDetail) UnmarshalJSON ¶
func (e *ErrorDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct {
// The error object.
Error *ErrorDetail `json:"error,omitempty"`
}
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
func (ErrorResponse) MarshalJSON ¶
func (e ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorResponse.
func (*ErrorResponse) UnmarshalJSON ¶
func (e *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.
type Event ¶
type Event struct {
// READ-ONLY; The count of the event.
Count *int32 `json:"count,omitempty" azure:"ro"`
// READ-ONLY; The date-time of the earliest logged event.
FirstTimestamp *time.Time `json:"firstTimestamp,omitempty" azure:"ro"`
// READ-ONLY; The date-time of the latest logged event.
LastTimestamp *time.Time `json:"lastTimestamp,omitempty" azure:"ro"`
// READ-ONLY; The event message.
Message *string `json:"message,omitempty" azure:"ro"`
// READ-ONLY; The event name.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The event type.
Type *string `json:"type,omitempty" azure:"ro"`
}
Event - A container group or container instance event.
func (Event) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Event.
func (*Event) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Event.
type FileShare ¶
type FileShare struct {
}
FileShare - File shares that can be mounted on container groups.
func (FileShare) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type FileShare.
func (*FileShare) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type FileShare.
type FileShareProperties ¶
type FileShareProperties struct {
// account can choose Premium. Learn more at:
// https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier
ShareAccessTier *AzureFileShareAccessTier `json:"shareAccessTier,omitempty"`
// have exclusive file share.
ShareAccessType *AzureFileShareAccessType `json:"shareAccessType,omitempty"`
}
func (FileShareProperties) MarshalJSON ¶
func (f FileShareProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileShareProperties.
func (*FileShareProperties) UnmarshalJSON ¶
func (f *FileShareProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FileShareProperties.
type GitRepoVolume ¶
type GitRepoVolume struct {
// REQUIRED; Repository URL
Repository *string `json:"repository,omitempty"`
// Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository.
// Otherwise, if specified, the volume will contain the git repository in
// the subdirectory with the given name.
Directory *string `json:"directory,omitempty"`
// Commit hash for the specified revision.
Revision *string `json:"revision,omitempty"`
}
GitRepoVolume - Represents a volume that is populated with the contents of a git repository
func (GitRepoVolume) MarshalJSON ¶
func (g GitRepoVolume) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GitRepoVolume.
func (*GitRepoVolume) UnmarshalJSON ¶
func (g *GitRepoVolume) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GitRepoVolume.
type GpuResource ¶
type GpuResource struct {
// REQUIRED; The count of the GPU resource.
Count *int32 `json:"count,omitempty"`
// REQUIRED; The SKU of the GPU resource.
SKU *GpuSKU `json:"sku,omitempty"`
}
GpuResource - The GPU resource.
func (GpuResource) MarshalJSON ¶
func (g GpuResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GpuResource.
func (*GpuResource) UnmarshalJSON ¶
func (g *GpuResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GpuResource.
type GpuSKU ¶
type GpuSKU string
GpuSKU - The SKU of the GPU resource.
func PossibleGpuSKUValues ¶
func PossibleGpuSKUValues() []GpuSKU
PossibleGpuSKUValues returns the possible values for the GpuSKU const type.
type HTTPHeader ¶
type HTTPHeader struct {
// The header name.
Name *string `json:"name,omitempty"`
// The header value.
Value *string `json:"value,omitempty"`
}
HTTPHeader - The HTTP header.
func (HTTPHeader) MarshalJSON ¶
func (h HTTPHeader) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HTTPHeader.
func (*HTTPHeader) UnmarshalJSON ¶
func (h *HTTPHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HTTPHeader.
type IPAddress ¶
type IPAddress struct {
// REQUIRED; The list of ports exposed on the container group.
Ports []*Port `json:"ports,omitempty"`
// REQUIRED; Specifies if the IP is exposed to the public internet or private VNET.
Type *ContainerGroupIPAddressType `json:"type,omitempty"`
// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's
// domain name label is not secured against subdomain takeover. The
// 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the
// same tenant. The 'SubscriptionReuse' value means the object's domain name label
// can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be
// reused within the same resource group. The 'NoReuse' value means the object's
// domain name label cannot be reused within the same resource group, subscription, or tenant.
AutoGeneratedDomainNameLabelScope *DNSNameLabelReusePolicy `json:"autoGeneratedDomainNameLabelScope,omitempty"`
// The Dns name label for the IP.
DNSNameLabel *string `json:"dnsNameLabel,omitempty"`
// The IP exposed to the public internet.
IP *string `json:"ip,omitempty"`
// READ-ONLY; The FQDN for the IP.
Fqdn *string `json:"fqdn,omitempty" azure:"ro"`
}
IPAddress - IP address for the container group.
func (IPAddress) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type IPAddress.
func (*IPAddress) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type IPAddress.
type IdentityACLs ¶
type IdentityACLs struct {
// The access control levels for each identity.
ACLs []*IdentityAccessControl `json:"acls,omitempty"`
// The default access level.
DefaultAccess *IdentityAccessLevel `json:"defaultAccess,omitempty"`
}
IdentityACLs - The access control levels of the identities.
func (IdentityACLs) MarshalJSON ¶
func (i IdentityACLs) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IdentityACLs.
func (*IdentityACLs) UnmarshalJSON ¶
func (i *IdentityACLs) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IdentityACLs.
type IdentityAccessControl ¶
type IdentityAccessControl struct {
// The access level of the identity.
Access *IdentityAccessLevel `json:"access,omitempty"`
// An identity.
Identity *string `json:"identity,omitempty"`
}
IdentityAccessControl - The access control for an identity
func (IdentityAccessControl) MarshalJSON ¶
func (i IdentityAccessControl) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IdentityAccessControl.
func (*IdentityAccessControl) UnmarshalJSON ¶
func (i *IdentityAccessControl) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IdentityAccessControl.
type IdentityAccessLevel ¶
type IdentityAccessLevel string
IdentityAccessLevel - The access level of an identity.
const ( IdentityAccessLevelAll IdentityAccessLevel = "All" IdentityAccessLevelSystem IdentityAccessLevel = "System" IdentityAccessLevelUser IdentityAccessLevel = "User" )
func PossibleIdentityAccessLevelValues ¶
func PossibleIdentityAccessLevelValues() []IdentityAccessLevel
PossibleIdentityAccessLevelValues returns the possible values for the IdentityAccessLevel const type.
type ImageRegistryCredential ¶
type ImageRegistryCredential struct {
// REQUIRED; The Docker image registry server without a protocol such as "http" and "https".
Server *string `json:"server,omitempty"`
// The identity for the private registry.
Identity *string `json:"identity,omitempty"`
// The identity URL for the private registry.
IdentityURL *string `json:"identityUrl,omitempty"`
// The password for the private registry.
Password *string `json:"password,omitempty"`
// The reference for the private registry password.
PasswordReference *string `json:"passwordReference,omitempty"`
// The username for the private registry.
Username *string `json:"username,omitempty"`
}
ImageRegistryCredential - Image registry credential.
func (ImageRegistryCredential) MarshalJSON ¶
func (i ImageRegistryCredential) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageRegistryCredential.
func (*ImageRegistryCredential) UnmarshalJSON ¶
func (i *ImageRegistryCredential) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageRegistryCredential.
type InitContainerDefinition ¶
type InitContainerDefinition struct {
// REQUIRED; The name for the init container.
Name *string `json:"name,omitempty"`
// REQUIRED; The properties for the init container.
Properties *InitContainerPropertiesDefinition `json:"properties,omitempty"`
}
InitContainerDefinition - The init container definition.
func (InitContainerDefinition) MarshalJSON ¶
func (i InitContainerDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InitContainerDefinition.
func (*InitContainerDefinition) UnmarshalJSON ¶
func (i *InitContainerDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InitContainerDefinition.
type InitContainerPropertiesDefinition ¶
type InitContainerPropertiesDefinition struct {
// The command to execute within the init container in exec form.
Command []*string `json:"command,omitempty"`
// The environment variables to set in the init container.
EnvironmentVariables []*EnvironmentVariable `json:"environmentVariables,omitempty"`
// The image of the init container.
Image *string `json:"image,omitempty"`
// The container security properties.
SecurityContext *SecurityContextDefinition `json:"securityContext,omitempty"`
// The volume mounts available to the init container.
VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"`
// READ-ONLY; The instance view of the init container. Only valid in response.
InstanceView *InitContainerPropertiesDefinitionInstanceView `json:"instanceView,omitempty" azure:"ro"`
}
InitContainerPropertiesDefinition - The init container definition properties.
func (InitContainerPropertiesDefinition) MarshalJSON ¶
func (i InitContainerPropertiesDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InitContainerPropertiesDefinition.
func (*InitContainerPropertiesDefinition) UnmarshalJSON ¶
func (i *InitContainerPropertiesDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InitContainerPropertiesDefinition.
type InitContainerPropertiesDefinitionInstanceView ¶
type InitContainerPropertiesDefinitionInstanceView struct {
// READ-ONLY; The current state of the init container.
CurrentState *ContainerState `json:"currentState,omitempty" azure:"ro"`
// READ-ONLY; The events of the init container.
Events []*Event `json:"events,omitempty" azure:"ro"`
// READ-ONLY; The previous state of the init container.
PreviousState *ContainerState `json:"previousState,omitempty" azure:"ro"`
// READ-ONLY; The number of times that the init container has been restarted.
RestartCount *int32 `json:"restartCount,omitempty" azure:"ro"`
}
InitContainerPropertiesDefinitionInstanceView - The instance view of the init container. Only valid in response.
func (InitContainerPropertiesDefinitionInstanceView) MarshalJSON ¶
func (i InitContainerPropertiesDefinitionInstanceView) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InitContainerPropertiesDefinitionInstanceView.
func (*InitContainerPropertiesDefinitionInstanceView) UnmarshalJSON ¶
func (i *InitContainerPropertiesDefinitionInstanceView) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InitContainerPropertiesDefinitionInstanceView.
type ListResultContainerGroup ¶
type ListResultContainerGroup struct {
// REQUIRED; The container group properties
Properties *ListResultContainerGroupPropertiesProperties `json:"properties,omitempty"`
// The identity of the container group, if configured.
Identity *ContainerGroupIdentity `json:"identity,omitempty"`
// The resource location.
Location *string `json:"location,omitempty"`
// The resource tags.
Tags map[string]*string `json:"tags,omitempty"`
// The zones for the container group.
Zones []*string `json:"zones,omitempty"`
// READ-ONLY; The resource id.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The resource name.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The resource type.
Type *string `json:"type,omitempty" azure:"ro"`
}
ListResultContainerGroup - A container group part of the list result.
func (ListResultContainerGroup) MarshalJSON ¶
func (l ListResultContainerGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListResultContainerGroup.
func (*ListResultContainerGroup) UnmarshalJSON ¶
func (l *ListResultContainerGroup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ListResultContainerGroup.
type ListResultContainerGroupProperties ¶
type ListResultContainerGroupProperties struct {
// REQUIRED; The container group properties
Properties *ListResultContainerGroupPropertiesProperties `json:"properties,omitempty"`
// The identity of the container group, if configured.
Identity *ContainerGroupIdentity `json:"identity,omitempty"`
}
ListResultContainerGroupProperties - Properties of container group part of list result
func (ListResultContainerGroupProperties) MarshalJSON ¶
func (l ListResultContainerGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListResultContainerGroupProperties.
func (*ListResultContainerGroupProperties) UnmarshalJSON ¶
func (l *ListResultContainerGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ListResultContainerGroupProperties.
type ListResultContainerGroupPropertiesProperties ¶
type ListResultContainerGroupPropertiesProperties struct {
// REQUIRED; The containers within the container group.
Containers []*Container `json:"containers,omitempty"`
// REQUIRED; The operating system type required by the containers in the container group.
OSType *OperatingSystemTypes `json:"osType,omitempty"`
// The properties for confidential container group
ConfidentialComputeProperties *ConfidentialComputeProperties `json:"confidentialComputeProperties,omitempty"`
// The DNS config information for a container group.
DNSConfig *DNSConfiguration `json:"dnsConfig,omitempty"`
// The diagnostic information for a container group.
Diagnostics *ContainerGroupDiagnostics `json:"diagnostics,omitempty"`
// The encryption properties for a container group.
EncryptionProperties *EncryptionProperties `json:"encryptionProperties,omitempty"`
// extensions used by virtual kubelet
Extensions []*DeploymentExtensionSpec `json:"extensions,omitempty"`
// The IP address type of the container group.
IPAddress *IPAddress `json:"ipAddress,omitempty"`
// The access control levels of the identities.
IdentityACLs *IdentityACLs `json:"identityAcls,omitempty"`
// The image registry credentials by which the container group is created from.
ImageRegistryCredentials []*ImageRegistryCredential `json:"imageRegistryCredentials,omitempty"`
// The init containers for a container group.
InitContainers []*InitContainerDefinition `json:"initContainers,omitempty"`
// The priority of the container group.
Priority *ContainerGroupPriority `json:"priority,omitempty"`
// Restart policy for all containers within the container group.
// * Always Always restart
// * OnFailure Restart on failure
// * Never Never restart
RestartPolicy *ContainerGroupRestartPolicy `json:"restartPolicy,omitempty"`
// The SKU for a container group.
SKU *ContainerGroupSKU `json:"sku,omitempty"`
// The secret references that will be referenced within the container group.
SecretReferences []*SecretReference `json:"secretReferences,omitempty"`
// The subnet resource IDs for a container group.
SubnetIDs []*ContainerGroupSubnetID `json:"subnetIds,omitempty"`
// The list of volumes that can be mounted by containers in this container group.
Volumes []*Volume `json:"volumes,omitempty"`
// READ-ONLY; The provisioning state of the container group. This only appears in the response.
ProvisioningState *ContainerGroupProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
}
ListResultContainerGroupPropertiesProperties - The container group properties
func (ListResultContainerGroupPropertiesProperties) MarshalJSON ¶
func (l ListResultContainerGroupPropertiesProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListResultContainerGroupPropertiesProperties.
func (*ListResultContainerGroupPropertiesProperties) UnmarshalJSON ¶
func (l *ListResultContainerGroupPropertiesProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ListResultContainerGroupPropertiesProperties.
type LoadBalancer ¶
type LoadBalancer struct {
// List of Load Balancer Backend Address Pools.
BackendAddressPools []*LoadBalancerBackendAddressPool `json:"backendAddressPools,omitempty"`
}
LoadBalancer the CG profile will use to interact with CGs in a backend pool
func (LoadBalancer) MarshalJSON ¶
func (l LoadBalancer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancer.
func (*LoadBalancer) UnmarshalJSON ¶
func (l *LoadBalancer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancer.
type LoadBalancerBackendAddressPool ¶
type LoadBalancerBackendAddressPool struct {
// The Load Balancer backend address pool ARM resource Id.
Resource *APIEntityReference `json:"resource,omitempty"`
}
LoadBalancerBackendAddressPool - NGroups load balancer backend address pool
func (LoadBalancerBackendAddressPool) MarshalJSON ¶
func (l LoadBalancerBackendAddressPool) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancerBackendAddressPool.
func (*LoadBalancerBackendAddressPool) UnmarshalJSON ¶
func (l *LoadBalancerBackendAddressPool) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerBackendAddressPool.
type LocationClient ¶
type LocationClient struct {
// contains filtered or unexported fields
}
func NewLocationClient ¶
func NewLocationClient(subscriptionID string, pl runtime.Pipeline) *LocationClient
NewLocationClient creates a new instance of LocationClient with the specified values. subscriptionID - The ID of the target subscription. The value must be an UUID. pl - the pipeline used for sending requests and handling responses.
func (*LocationClient) NewListCachedImagesPager ¶
func (client *LocationClient) NewListCachedImagesPager(location string, options *LocationClientListCachedImagesOptions) *runtime.Pager[LocationClientListCachedImagesResponse]
NewListCachedImagesPager - Get the list of cached images on specific OS type for a subscription in a region. Generated from API version 2024-11-01-preview location - The name of the Azure region. options - LocationClientListCachedImagesOptions contains the optional parameters for the LocationClient.ListCachedImages method.
func (*LocationClient) NewListCapabilitiesPager ¶
func (client *LocationClient) NewListCapabilitiesPager(location string, options *LocationClientListCapabilitiesOptions) *runtime.Pager[LocationClientListCapabilitiesResponse]
NewListCapabilitiesPager - Get the list of CPU/memory/GPU capabilities of a region. Generated from API version 2024-11-01-preview location - The name of the Azure region. options - LocationClientListCapabilitiesOptions contains the optional parameters for the LocationClient.ListCapabilities method.
func (*LocationClient) NewListUsagePager ¶
func (client *LocationClient) NewListUsagePager(location string, options *LocationClientListUsageOptions) *runtime.Pager[LocationClientListUsageResponse]
NewListUsagePager - Get the usage for a subscription Generated from API version 2024-11-01-preview location - The name of the Azure region. options - LocationClientListUsageOptions contains the optional parameters for the LocationClient.ListUsage method.
type LocationClientListCachedImagesOptions ¶
type LocationClientListCachedImagesOptions struct {
}
LocationClientListCachedImagesOptions contains the optional parameters for the LocationClient.ListCachedImages method.
type LocationClientListCachedImagesResponse ¶
type LocationClientListCachedImagesResponse struct {
CachedImagesListResult
}
LocationClientListCachedImagesResponse contains the response from method LocationClient.ListCachedImages.
type LocationClientListCapabilitiesOptions ¶
type LocationClientListCapabilitiesOptions struct {
}
LocationClientListCapabilitiesOptions contains the optional parameters for the LocationClient.ListCapabilities method.
type LocationClientListCapabilitiesResponse ¶
type LocationClientListCapabilitiesResponse struct {
CapabilitiesListResult
}
LocationClientListCapabilitiesResponse contains the response from method LocationClient.ListCapabilities.
type LocationClientListUsageOptions ¶
type LocationClientListUsageOptions struct {
}
LocationClientListUsageOptions contains the optional parameters for the LocationClient.ListUsage method.
type LocationClientListUsageResponse ¶
type LocationClientListUsageResponse struct {
UsageListResult
}
LocationClientListUsageResponse contains the response from method LocationClient.ListUsage.
type LogAnalytics ¶
type LogAnalytics struct {
// REQUIRED; The workspace id for log analytics
WorkspaceID *string `json:"workspaceId,omitempty"`
// REQUIRED; The workspace key for log analytics
WorkspaceKey *string `json:"workspaceKey,omitempty"`
// The log type to be used.
LogType *LogAnalyticsLogType `json:"logType,omitempty"`
// Metadata for log analytics.
Metadata map[string]*string `json:"metadata,omitempty"`
// The workspace resource id for log analytics
WorkspaceResourceID *string `json:"workspaceResourceId,omitempty"`
}
LogAnalytics - Container group log analytics information.
func (LogAnalytics) MarshalJSON ¶
func (l LogAnalytics) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LogAnalytics.
func (*LogAnalytics) UnmarshalJSON ¶
func (l *LogAnalytics) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalytics.
type LogAnalyticsLogType ¶
type LogAnalyticsLogType string
LogAnalyticsLogType - The log type to be used.
const ( LogAnalyticsLogTypeContainerInsights LogAnalyticsLogType = "ContainerInsights" LogAnalyticsLogTypeContainerInstanceLogs LogAnalyticsLogType = "ContainerInstanceLogs" )
func PossibleLogAnalyticsLogTypeValues ¶
func PossibleLogAnalyticsLogTypeValues() []LogAnalyticsLogType
PossibleLogAnalyticsLogTypeValues returns the possible values for the LogAnalyticsLogType const type.
type Logs ¶
type Logs struct {
// The content of the log.
Content *string `json:"content,omitempty"`
}
Logs - The logs.
func (Logs) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Logs.
func (*Logs) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Logs.
type NGroup ¶
type NGroup struct {
// The identity of the NGroup, if configured.
Identity *NGroupIdentity `json:"identity,omitempty"`
// The geo-location where the resource lives
Location *string `json:"location,omitempty"`
// Describes the properties of the NGroups resource.
Properties *NGroupProperties `json:"properties,omitempty"`
// The resource tags.
Tags map[string]*string `json:"tags,omitempty"`
// The NGroups zones. NOTE: Availability zones can only be set when you create the scale set
Zones []*string `json:"zones,omitempty"`
// READ-ONLY; The resource id.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The resource name.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
// READ-ONLY; The resource type.
Type *string `json:"type,omitempty" azure:"ro"`
}
NGroup - Describes the NGroups resource.
func (NGroup) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type NGroup.
func (*NGroup) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type NGroup.
type NGroupCGPropertyContainer ¶
type NGroupCGPropertyContainer struct {
// container name
Name *string `json:"name,omitempty"`
// container properties
Properties *NGroupCGPropertyContainerProperties `json:"properties,omitempty"`
}
NGroupCGPropertyContainer - Container properties that can be provided with NGroups object.
func (NGroupCGPropertyContainer) MarshalJSON ¶
func (n NGroupCGPropertyContainer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NGroupCGPropertyContainer.
func (*NGroupCGPropertyContainer) UnmarshalJSON ¶
func (n *NGroupCGPropertyContainer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NGroupCGPropertyContainer.
type NGroupCGPropertyContainerProperties ¶
type NGroupCGPropertyContainerProperties struct {
VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"`
}
NGroupCGPropertyContainerProperties - container properties
func (NGroupCGPropertyContainerProperties) MarshalJSON ¶
func (n NGroupCGPropertyContainerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NGroupCGPropertyContainerProperties.
func (*NGroupCGPropertyContainerProperties) UnmarshalJSON ¶
func (n *NGroupCGPropertyContainerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NGroupCGPropertyContainerProperties.
type NGroupCGPropertyVolume ¶
type NGroupCGPropertyVolume struct {
// REQUIRED; The name of the volume.
Name *string `json:"name,omitempty"`
// The Azure File volume.
AzureFile *AzureFileVolume `json:"azureFile,omitempty"`
}
NGroupCGPropertyVolume - Contains information about the volumes that can be mounted by Containers in the Container Groups.
func (NGroupCGPropertyVolume) MarshalJSON ¶
func (n NGroupCGPropertyVolume) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NGroupCGPropertyVolume.
func (*NGroupCGPropertyVolume) UnmarshalJSON ¶
func (n *NGroupCGPropertyVolume) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NGroupCGPropertyVolume.
type NGroupContainerGroupProperties ¶
type NGroupContainerGroupProperties struct {
// Contains information about Container which can be set while creating or updating the NGroups.
Containers []*NGroupCGPropertyContainer `json:"containers,omitempty"`
// Contains information about Virtual Network Subnet ARM Resource
SubnetIDs []*ContainerGroupSubnetID `json:"subnetIds,omitempty"`
// Contains information about the volumes that can be mounted by Containers in the Container Groups.
Volumes []*NGroupCGPropertyVolume `json:"volumes,omitempty"`
}
NGroupContainerGroupProperties - Container Group properties which can be set while creating or updating the NGroups.
func (NGroupContainerGroupProperties) MarshalJSON ¶
func (n NGroupContainerGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NGroupContainerGroupProperties.
func (*NGroupContainerGroupProperties) UnmarshalJSON ¶
func (n *NGroupContainerGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NGroupContainerGroupProperties.
type NGroupIdentity ¶
type NGroupIdentity struct {
// The type of identity used for the NGroup. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity
// and a set of user assigned identities. The type 'None' will remove any
// identities from the NGroup.
Type *ResourceIdentityType `json:"type,omitempty"`
// The list of user identities associated with the NGroup.
UserAssignedIdentities map[string]*UserAssignedIdentities `json:"userAssignedIdentities,omitempty"`
// READ-ONLY; The principal id of the NGroup identity. This property will only be provided for a system assigned identity.
PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
// READ-ONLY; The tenant id associated with the NGroup. This property will only be provided for a system assigned identity.
TenantID *string `json:"tenantId,omitempty" azure:"ro"`
}
NGroupIdentity - Identity for the NGroup.
func (NGroupIdentity) MarshalJSON ¶
func (n NGroupIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NGroupIdentity.
func (*NGroupIdentity) UnmarshalJSON ¶
func (n *NGroupIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NGroupIdentity.
type NGroupProperties ¶
type NGroupProperties struct {
// The Container Group Profiles that could be used in the NGroups resource.
ContainerGroupProfiles []*ContainerGroupProfileStub `json:"containerGroupProfiles,omitempty"`
// The elastic profile.
ElasticProfile *ElasticProfile `json:"elasticProfile,omitempty"`
// Provides options w.r.t allocation and management w.r.t certain placement policies. These utilize capabilities provided
// by the underlying Azure infrastructure. They are typically used for high
// availability scenarios. E.g., distributing CGs across fault domains.
PlacementProfile *PlacementProfile `json:"placementProfile,omitempty"`
// Used by the customer to specify the way to update the Container Groups in NGroup.
UpdateProfile *UpdateProfile `json:"updateProfile,omitempty"`
// READ-ONLY; The provisioning state, which only appears in the response.
ProvisioningState *NGroupProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
}
NGroupProperties - Describes the properties of the NGroups resource.
func (NGroupProperties) MarshalJSON ¶
func (n NGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NGroupProperties.
func (*NGroupProperties) UnmarshalJSON ¶
func (n *NGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NGroupProperties.
type NGroupProvisioningState ¶
type NGroupProvisioningState string
NGroupProvisioningState - The provisioning state, which only appears in the response.
const ( NGroupProvisioningStateCanceled NGroupProvisioningState = "Canceled" NGroupProvisioningStateCreating NGroupProvisioningState = "Creating" NGroupProvisioningStateDeleting NGroupProvisioningState = "Deleting" NGroupProvisioningStateFailed NGroupProvisioningState = "Failed" NGroupProvisioningStateMigrating NGroupProvisioningState = "Migrating" NGroupProvisioningStateSucceeded NGroupProvisioningState = "Succeeded" NGroupProvisioningStateUpdating NGroupProvisioningState = "Updating" )
func PossibleNGroupProvisioningStateValues ¶
func PossibleNGroupProvisioningStateValues() []NGroupProvisioningState
PossibleNGroupProvisioningStateValues returns the possible values for the NGroupProvisioningState const type.
type NGroupSKUs ¶
type NGroupSKUs struct {
// The type of resource the sku is applied to.
ResourceType *string `json:"resourceType,omitempty"`
// The sku of the resource type
SKU *string `json:"sku,omitempty"`
// The number of container groups of the NGroups.
SKUCapacity *string `json:"skuCapacity,omitempty"`
}
NGroupSKUs - The container probe, for liveness or readiness.
func (NGroupSKUs) MarshalJSON ¶
func (n NGroupSKUs) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NGroupSKUs.
func (*NGroupSKUs) UnmarshalJSON ¶
func (n *NGroupSKUs) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NGroupSKUs.
type NGroupUpdateMode ¶
type NGroupUpdateMode string
const ( NGroupUpdateModeManual NGroupUpdateMode = "Manual" NGroupUpdateModeRolling NGroupUpdateMode = "Rolling" )
func PossibleNGroupUpdateModeValues ¶
func PossibleNGroupUpdateModeValues() []NGroupUpdateMode
PossibleNGroupUpdateModeValues returns the possible values for the NGroupUpdateMode const type.
type NGroupsClient ¶
type NGroupsClient struct {
// contains filtered or unexported fields
}
func NewNGroupsClient ¶
func NewNGroupsClient(subscriptionID string, pl runtime.Pipeline) *NGroupsClient
NewNGroupsClient creates a new instance of NGroupsClient with the specified values. subscriptionID - The ID of the target subscription. The value must be an UUID. pl - the pipeline used for sending requests and handling responses.
func (*NGroupsClient) BeginCreateOrUpdate ¶
func (client *NGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ngroupsName string, nGroup NGroup, options *NGroupsClientBeginCreateOrUpdateOptions) (*runtime.Poller[NGroupsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a NGroups resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. ngroupsName - The NGroups name. nGroup - The NGroup object. options - NGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the NGroupsClient.BeginCreateOrUpdate method.
func (*NGroupsClient) BeginDelete ¶
func (client *NGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, ngroupsName string, options *NGroupsClientBeginDeleteOptions) (*runtime.Poller[NGroupsClientDeleteResponse], error)
BeginDelete - Deletes the NGroups resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. ngroupsName - The NGroups name. options - NGroupsClientBeginDeleteOptions contains the optional parameters for the NGroupsClient.BeginDelete method.
func (*NGroupsClient) BeginRestart ¶
func (client *NGroupsClient) BeginRestart(ctx context.Context, resourceGroupName string, ngroupsName string, options *NGroupsClientBeginRestartOptions) (*runtime.Poller[NGroupsClientRestartResponse], error)
BeginRestart - Restarts all container groups in the specified NGroups resource in place. If container image has updates, new image will be downloaded. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. ngroupsName - The NGroups name. options - NGroupsClientBeginRestartOptions contains the optional parameters for the NGroupsClient.BeginRestart method.
func (*NGroupsClient) BeginStart ¶
func (client *NGroupsClient) BeginStart(ctx context.Context, resourceGroupName string, ngroupsName string, options *NGroupsClientBeginStartOptions) (*runtime.Poller[NGroupsClientStartResponse], error)
BeginStart - Starts all container groups in the specified NGroups resource. Compute resources will be allocated and billing will start. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. ngroupsName - The NGroups name. options - NGroupsClientBeginStartOptions contains the optional parameters for the NGroupsClient.BeginStart method.
func (*NGroupsClient) BeginUpdate ¶
func (client *NGroupsClient) BeginUpdate(ctx context.Context, resourceGroupName string, ngroupsName string, nGroup NGroup, options *NGroupsClientBeginUpdateOptions) (*runtime.Poller[NGroupsClientUpdateResponse], error)
BeginUpdate - Update a specified NGroups resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. ngroupsName - The NGroups name. nGroup - The NGroup object. options - NGroupsClientBeginUpdateOptions contains the optional parameters for the NGroupsClient.BeginUpdate method.
func (*NGroupsClient) Get ¶
func (client *NGroupsClient) Get(ctx context.Context, resourceGroupName string, ngroupsName string, options *NGroupsClientGetOptions) (NGroupsClientGetResponse, error)
Get - Get the properties of the specified NGroups resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. ngroupsName - The NGroups name. options - NGroupsClientGetOptions contains the optional parameters for the NGroupsClient.Get method.
func (*NGroupsClient) NewListByResourceGroupPager ¶
func (client *NGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *NGroupsClientListByResourceGroupOptions) *runtime.Pager[NGroupsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets a list of all NGroups resources under a resource group. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. options - NGroupsClientListByResourceGroupOptions contains the optional parameters for the NGroupsClient.ListByResourceGroup method.
func (*NGroupsClient) NewListPager ¶
func (client *NGroupsClient) NewListPager(options *NGroupsClientListOptions) *runtime.Pager[NGroupsClientListResponse]
NewListPager - Gets a list of all NGroups resources under a subscription. Generated from API version 2024-11-01-preview options - NGroupsClientListOptions contains the optional parameters for the NGroupsClient.List method.
func (*NGroupsClient) Stop ¶
func (client *NGroupsClient) Stop(ctx context.Context, resourceGroupName string, ngroupsName string, options *NGroupsClientStopOptions) (NGroupsClientStopResponse, error)
Stop - Stops all container groups in the specified NGroups resource. Compute resources will be deallocated and billing will stop. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. ngroupsName - The NGroups name. options - NGroupsClientStopOptions contains the optional parameters for the NGroupsClient.Stop method.
type NGroupsClientBeginCreateOrUpdateOptions ¶
type NGroupsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the NGroupsClient.BeginCreateOrUpdate method.
type NGroupsClientBeginDeleteOptions ¶
type NGroupsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NGroupsClientBeginDeleteOptions contains the optional parameters for the NGroupsClient.BeginDelete method.
type NGroupsClientBeginRestartOptions ¶
type NGroupsClientBeginRestartOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NGroupsClientBeginRestartOptions contains the optional parameters for the NGroupsClient.BeginRestart method.
type NGroupsClientBeginStartOptions ¶
type NGroupsClientBeginStartOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NGroupsClientBeginStartOptions contains the optional parameters for the NGroupsClient.BeginStart method.
type NGroupsClientBeginUpdateOptions ¶
type NGroupsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
NGroupsClientBeginUpdateOptions contains the optional parameters for the NGroupsClient.BeginUpdate method.
type NGroupsClientCreateOrUpdateResponse ¶
type NGroupsClientCreateOrUpdateResponse struct {
NGroup
}
NGroupsClientCreateOrUpdateResponse contains the response from method NGroupsClient.CreateOrUpdate.
type NGroupsClientDeleteResponse ¶
type NGroupsClientDeleteResponse struct {
}
NGroupsClientDeleteResponse contains the response from method NGroupsClient.Delete.
type NGroupsClientGetOptions ¶
type NGroupsClientGetOptions struct {
}
NGroupsClientGetOptions contains the optional parameters for the NGroupsClient.Get method.
type NGroupsClientGetResponse ¶
type NGroupsClientGetResponse struct {
NGroup
}
NGroupsClientGetResponse contains the response from method NGroupsClient.Get.
type NGroupsClientListByResourceGroupOptions ¶
type NGroupsClientListByResourceGroupOptions struct {
}
NGroupsClientListByResourceGroupOptions contains the optional parameters for the NGroupsClient.ListByResourceGroup method.
type NGroupsClientListByResourceGroupResponse ¶
type NGroupsClientListByResourceGroupResponse struct {
NGroupsListResult
}
NGroupsClientListByResourceGroupResponse contains the response from method NGroupsClient.ListByResourceGroup.
type NGroupsClientListOptions ¶
type NGroupsClientListOptions struct {
}
NGroupsClientListOptions contains the optional parameters for the NGroupsClient.List method.
type NGroupsClientListResponse ¶
type NGroupsClientListResponse struct {
NGroupsListResult
}
NGroupsClientListResponse contains the response from method NGroupsClient.List.
type NGroupsClientRestartResponse ¶
type NGroupsClientRestartResponse struct {
}
NGroupsClientRestartResponse contains the response from method NGroupsClient.Restart.
type NGroupsClientStartResponse ¶
type NGroupsClientStartResponse struct {
}
NGroupsClientStartResponse contains the response from method NGroupsClient.Start.
type NGroupsClientStopOptions ¶
type NGroupsClientStopOptions struct {
}
NGroupsClientStopOptions contains the optional parameters for the NGroupsClient.Stop method.
type NGroupsClientStopResponse ¶
type NGroupsClientStopResponse struct {
}
NGroupsClientStopResponse contains the response from method NGroupsClient.Stop.
type NGroupsClientUpdateResponse ¶
type NGroupsClientUpdateResponse struct {
NGroup
}
NGroupsClientUpdateResponse contains the response from method NGroupsClient.Update.
type NGroupsListResult ¶
type NGroupsListResult struct {
// The URI to fetch the next page of NGroups.
NextLink *string `json:"nextLink,omitempty"`
// The list of NGroups.
Value []*NGroup `json:"value,omitempty"`
}
NGroupsListResult - The NGroups list response that contains the NGroups properties.
func (NGroupsListResult) MarshalJSON ¶
func (n NGroupsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NGroupsListResult.
func (*NGroupsListResult) UnmarshalJSON ¶
func (n *NGroupsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NGroupsListResult.
type NGroupsSKUsList ¶
type NGroupsSKUsList struct {
// The URI to fetch the next page of NGroups SKUs.
NextLink *string `json:"nextLink,omitempty"`
// The list of NGroups SKUs.
Value []*NGroupSKUs `json:"value,omitempty"`
}
NGroupsSKUsList - List of SKU definitions. NGroups offer a single sku
func (NGroupsSKUsList) MarshalJSON ¶
func (n NGroupsSKUsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NGroupsSKUsList.
func (*NGroupsSKUsList) UnmarshalJSON ¶
func (n *NGroupsSKUsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NGroupsSKUsList.
type NetworkProfile ¶
type NetworkProfile struct {
// Application Gateway the CG profile will use to interact with CGs in a backend pool
ApplicationGateway *ApplicationGateway `json:"applicationGateway,omitempty"`
// LoadBalancer the CG profile will use to interact with CGs in a backend pool
LoadBalancer *LoadBalancer `json:"loadBalancer,omitempty"`
}
NetworkProfile - A network profile for network settings of a ContainerGroupProfile. Used to manage load balancer and application gateway backend pools, specifically updating the IP addresses of CGs within the backend pool.
func (NetworkProfile) MarshalJSON ¶
func (n NetworkProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkProfile.
func (*NetworkProfile) UnmarshalJSON ¶
func (n *NetworkProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkProfile.
type OperatingSystemTypes ¶
type OperatingSystemTypes string
OperatingSystemTypes - The operating system type required by the containers in the container group.
const ( OperatingSystemTypesLinux OperatingSystemTypes = "Linux" OperatingSystemTypesWindows OperatingSystemTypes = "Windows" )
func PossibleOperatingSystemTypesValues ¶
func PossibleOperatingSystemTypesValues() []OperatingSystemTypes
PossibleOperatingSystemTypesValues returns the possible values for the OperatingSystemTypes const type.
type Operation ¶
type Operation struct {
// REQUIRED; The display information of the operation.
Display *OperationDisplay `json:"display,omitempty"`
// REQUIRED; The name of the operation.
Name *string `json:"name,omitempty"`
// The intended executor of the operation.
Origin *ContainerInstanceOperationsOrigin `json:"origin,omitempty"`
// The additional properties.
Properties interface{} `json:"properties,omitempty"`
}
Operation - An operation for Azure Container Instance service.
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct {
// The description of the operation.
Description *string `json:"description,omitempty"`
// The friendly name of the operation.
Operation *string `json:"operation,omitempty"`
// The name of the provider of the operation.
Provider *string `json:"provider,omitempty"`
// The name of the resource type of the operation.
Resource *string `json:"resource,omitempty"`
}
OperationDisplay - The display information of the operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct {
// The URI to fetch the next page of operations.
NextLink *string `json:"nextLink,omitempty"`
// The list of operations.
Value []*Operation `json:"value,omitempty"`
}
OperationListResult - The operation list response that contains all operations for Azure Container Instance service.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
func NewOperationsClient ¶
func NewOperationsClient(pl runtime.Pipeline) *OperationsClient
NewOperationsClient creates a new instance of OperationsClient with the specified values. pl - the pipeline used for sending requests and handling responses.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - List the operations for Azure Container Instance service. Generated from API version 2024-11-01-preview options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListOptions ¶
type OperationsClientListOptions struct {
}
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type PlacementProfile ¶
type PlacementProfile struct {
// The number of fault domains to be used to spread CGs in the NGroups resource. This can only be specified during NGroup
// creation and is immutable after that.
FaultDomainCount *int32 `json:"faultDomainCount,omitempty"`
}
PlacementProfile - Provides options w.r.t allocation and management w.r.t certain placement policies. These utilize capabilities provided by the underlying Azure infrastructure. They are typically used for high availability scenarios. E.g., distributing CGs across fault domains.
func (PlacementProfile) MarshalJSON ¶
func (p PlacementProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PlacementProfile.
func (*PlacementProfile) UnmarshalJSON ¶
func (p *PlacementProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PlacementProfile.
type Port ¶
type Port struct {
// REQUIRED; The port number.
Port *int32 `json:"port,omitempty"`
// The protocol associated with the port.
Protocol *ContainerGroupNetworkProtocol `json:"protocol,omitempty"`
}
Port - The port exposed on the container group.
func (Port) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Port.
func (*Port) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Port.
type Resource ¶
type Resource struct {
// The resource location.
Location *string `json:"location,omitempty"`
// The resource tags.
Tags map[string]*string `json:"tags,omitempty"`
// The zones for the container group.
Zones []*string `json:"zones,omitempty"`
// READ-ONLY; The resource id.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The resource name.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The resource type.
Type *string `json:"type,omitempty" azure:"ro"`
}
Resource - The Resource model definition.
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
type ResourceIdentityType ¶
type ResourceIdentityType string
ResourceIdentityType - The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the container group.
const ( ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned" ResourceIdentityTypeNone ResourceIdentityType = "None" )
func PossibleResourceIdentityTypeValues ¶
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
type ResourceLimits ¶
type ResourceLimits struct {
// The CPU limit of this container instance.
CPU *float64 `json:"cpu,omitempty"`
// The GPU limit of this container instance.
Gpu *GpuResource `json:"gpu,omitempty"`
// The memory limit in GB of this container instance.
MemoryInGB *float64 `json:"memoryInGB,omitempty"`
}
ResourceLimits - The resource limits.
func (ResourceLimits) MarshalJSON ¶
func (r ResourceLimits) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceLimits.
func (*ResourceLimits) UnmarshalJSON ¶
func (r *ResourceLimits) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceLimits.
type ResourceRequests ¶
type ResourceRequests struct {
// REQUIRED; The CPU request of this container instance.
CPU *float64 `json:"cpu,omitempty"`
// REQUIRED; The memory request in GB of this container instance.
MemoryInGB *float64 `json:"memoryInGB,omitempty"`
// The GPU request of this container instance.
Gpu *GpuResource `json:"gpu,omitempty"`
}
ResourceRequests - The resource requests.
func (ResourceRequests) MarshalJSON ¶
func (r ResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceRequests.
func (*ResourceRequests) UnmarshalJSON ¶
func (r *ResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceRequests.
type ResourceRequirements ¶
type ResourceRequirements struct {
// REQUIRED; The resource requests of this container instance.
Requests *ResourceRequests `json:"requests,omitempty"`
// The resource limits of this container instance.
Limits *ResourceLimits `json:"limits,omitempty"`
}
ResourceRequirements - The resource requirements.
func (ResourceRequirements) MarshalJSON ¶
func (r ResourceRequirements) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceRequirements.
func (*ResourceRequirements) UnmarshalJSON ¶
func (r *ResourceRequirements) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceRequirements.
type Scheme ¶
type Scheme string
Scheme - The scheme.
func PossibleSchemeValues ¶
func PossibleSchemeValues() []Scheme
PossibleSchemeValues returns the possible values for the Scheme const type.
type SecretReference ¶
type SecretReference struct {
// REQUIRED; The ARM resource id of the managed identity that has access to the secret in the key vault
Identity *string `json:"identity,omitempty"`
// REQUIRED; The identifier of the secret reference
Name *string `json:"name,omitempty"`
// REQUIRED; The URI to the secret in key vault
SecretReferenceURI *string `json:"secretReferenceUri,omitempty"`
}
SecretReference - A secret reference
func (SecretReference) MarshalJSON ¶
func (s SecretReference) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecretReference.
func (*SecretReference) UnmarshalJSON ¶
func (s *SecretReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SecretReference.
type SecurityContextCapabilitiesDefinition ¶
type SecurityContextCapabilitiesDefinition struct {
// The capabilities to add to the container.
Add []*string `json:"add,omitempty"`
// The capabilities to drop from the container.
Drop []*string `json:"drop,omitempty"`
}
SecurityContextCapabilitiesDefinition - The capabilities to add or drop from a container.
func (SecurityContextCapabilitiesDefinition) MarshalJSON ¶
func (s SecurityContextCapabilitiesDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityContextCapabilitiesDefinition.
func (*SecurityContextCapabilitiesDefinition) UnmarshalJSON ¶
func (s *SecurityContextCapabilitiesDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SecurityContextCapabilitiesDefinition.
type SecurityContextDefinition ¶
type SecurityContextDefinition struct {
// A boolean value indicating whether the init process can elevate its privileges
AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty"`
// The capabilities to add or drop from a container.
Capabilities *SecurityContextCapabilitiesDefinition `json:"capabilities,omitempty"`
// The flag to determine if the container permissions is elevated to Privileged.
Privileged *bool `json:"privileged,omitempty"`
// Sets the User GID for the container.
RunAsGroup *int32 `json:"runAsGroup,omitempty"`
// Sets the User UID for the container.
RunAsUser *int32 `json:"runAsUser,omitempty"`
// a base64 encoded string containing the contents of the JSON in the seccomp profile
SeccompProfile *string `json:"seccompProfile,omitempty"`
}
SecurityContextDefinition - The security context for the container.
func (SecurityContextDefinition) MarshalJSON ¶
func (s SecurityContextDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityContextDefinition.
func (*SecurityContextDefinition) UnmarshalJSON ¶
func (s *SecurityContextDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SecurityContextDefinition.
type StorageProfile ¶
type StorageProfile struct {
}
StorageProfile - Storage profile for storage related settings of a container group profile.
func (StorageProfile) MarshalJSON ¶
func (s StorageProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageProfile.
func (*StorageProfile) UnmarshalJSON ¶
func (s *StorageProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageProfile.
type SubnetServiceAssociationLinkClient ¶
type SubnetServiceAssociationLinkClient struct {
// contains filtered or unexported fields
}
func NewSubnetServiceAssociationLinkClient ¶
func NewSubnetServiceAssociationLinkClient(subscriptionID string, pl runtime.Pipeline) *SubnetServiceAssociationLinkClient
NewSubnetServiceAssociationLinkClient creates a new instance of SubnetServiceAssociationLinkClient with the specified values. subscriptionID - The ID of the target subscription. The value must be an UUID. pl - the pipeline used for sending requests and handling responses.
func (*SubnetServiceAssociationLinkClient) BeginDelete ¶
func (client *SubnetServiceAssociationLinkClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, options *SubnetServiceAssociationLinkClientBeginDeleteOptions) (*runtime.Poller[SubnetServiceAssociationLinkClientDeleteResponse], error)
BeginDelete - Delete container group virtual network association links. The operation does not delete other resources provided by the user. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2024-11-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. virtualNetworkName - The name of the virtual network. subnetName - The name of the subnet. options - SubnetServiceAssociationLinkClientBeginDeleteOptions contains the optional parameters for the SubnetServiceAssociationLinkClient.BeginDelete method.
type SubnetServiceAssociationLinkClientBeginDeleteOptions ¶
type SubnetServiceAssociationLinkClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SubnetServiceAssociationLinkClientBeginDeleteOptions contains the optional parameters for the SubnetServiceAssociationLinkClient.BeginDelete method.
type SubnetServiceAssociationLinkClientDeleteResponse ¶
type SubnetServiceAssociationLinkClientDeleteResponse struct {
}
SubnetServiceAssociationLinkClientDeleteResponse contains the response from method SubnetServiceAssociationLinkClient.Delete.
type SystemData ¶
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time `json:"createdAt,omitempty"`
// The identity that created the resource.
CreatedBy *string `json:"createdBy,omitempty"`
// The type of identity that created the resource.
CreatedByType *CreatedByType `json:"createdByType,omitempty"`
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"`
// The identity that last modified the resource.
LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"`
}
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type UpdateProfile ¶
type UpdateProfile struct {
// This profile allows the customers to customize the rolling update.
RollingUpdateProfile *UpdateProfileRollingUpdateProfile `json:"rollingUpdateProfile,omitempty"`
UpdateMode *NGroupUpdateMode `json:"updateMode,omitempty"`
}
UpdateProfile - Used by the customer to specify the way to update the Container Groups in NGroup.
func (UpdateProfile) MarshalJSON ¶
func (u UpdateProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateProfile.
func (*UpdateProfile) UnmarshalJSON ¶
func (u *UpdateProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UpdateProfile.
type UpdateProfileRollingUpdateProfile ¶
type UpdateProfileRollingUpdateProfile struct {
// Default is false. If set to true, the CGs will be updated in-place instead of creating new CG and deleting old ones.
InPlaceUpdate *bool `json:"inPlaceUpdate,omitempty"`
// Maximum percentage of total Container Groups which can be updated simultaneously by rolling update in one batch.
MaxBatchPercent *int32 `json:"maxBatchPercent,omitempty"`
// Maximum percentage of the updated Container Groups which can be in unhealthy state after each batch is updated.
MaxUnhealthyPercent *int32 `json:"maxUnhealthyPercent,omitempty"`
// The wait time between batches after completing the one batch of the rolling update and starting the next batch. The time
// duration should be specified in ISO 8601 format for duration.
PauseTimeBetweenBatches *string `json:"pauseTimeBetweenBatches,omitempty"`
}
UpdateProfileRollingUpdateProfile - This profile allows the customers to customize the rolling update.
func (UpdateProfileRollingUpdateProfile) MarshalJSON ¶
func (u UpdateProfileRollingUpdateProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateProfileRollingUpdateProfile.
func (*UpdateProfileRollingUpdateProfile) UnmarshalJSON ¶
func (u *UpdateProfileRollingUpdateProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UpdateProfileRollingUpdateProfile.
type Usage ¶
type Usage struct {
// READ-ONLY; The current usage of the resource
CurrentValue *int32 `json:"currentValue,omitempty" azure:"ro"`
// READ-ONLY; Id of the usage result
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The maximum permitted usage of the resource.
Limit *int32 `json:"limit,omitempty" azure:"ro"`
// READ-ONLY; The name object of the resource
Name *UsageName `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Unit of the usage result
Unit *string `json:"unit,omitempty" azure:"ro"`
}
Usage - A single usage result
func (Usage) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Usage.
func (*Usage) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Usage.
type UsageListResult ¶
type UsageListResult struct {
// READ-ONLY; The usage data.
Value []*Usage `json:"value,omitempty" azure:"ro"`
}
UsageListResult - The response containing the usage data
func (UsageListResult) MarshalJSON ¶
func (u UsageListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UsageListResult.
func (*UsageListResult) UnmarshalJSON ¶
func (u *UsageListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UsageListResult.
type UsageName ¶
type UsageName struct {
// READ-ONLY; The localized name of the resource
LocalizedValue *string `json:"localizedValue,omitempty" azure:"ro"`
// READ-ONLY; The name of the resource
Value *string `json:"value,omitempty" azure:"ro"`
}
UsageName - The name object of the resource
func (UsageName) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type UsageName.
func (*UsageName) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type UsageName.
type UserAssignedIdentities ¶
type UserAssignedIdentities struct {
// READ-ONLY; The client id of user assigned identity.
ClientID *string `json:"clientId,omitempty" azure:"ro"`
// READ-ONLY; The principal id of user assigned identity.
PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
}
UserAssignedIdentities - The list of user identities associated with the container group. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
func (UserAssignedIdentities) MarshalJSON ¶
func (u UserAssignedIdentities) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentities.
func (*UserAssignedIdentities) UnmarshalJSON ¶
func (u *UserAssignedIdentities) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentities.
type Volume ¶
type Volume struct {
// REQUIRED; The name of the volume.
Name *string `json:"name,omitempty"`
// The Azure File volume.
AzureFile *AzureFileVolume `json:"azureFile,omitempty"`
// The empty directory volume.
EmptyDir interface{} `json:"emptyDir,omitempty"`
// The git repo volume.
GitRepo *GitRepoVolume `json:"gitRepo,omitempty"`
// The secret volume.
Secret map[string]*string `json:"secret,omitempty"`
// The secret reference volume.
SecretReference map[string]*string `json:"secretReference,omitempty"`
}
Volume - The properties of the volume.
func (Volume) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Volume.
func (*Volume) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Volume.
type VolumeMount ¶
type VolumeMount struct {
// REQUIRED; The path within the container where the volume should be mounted. Must not contain colon (:).
MountPath *string `json:"mountPath,omitempty"`
// REQUIRED; The name of the volume mount.
Name *string `json:"name,omitempty"`
// The flag indicating whether the volume mount is read-only.
ReadOnly *bool `json:"readOnly,omitempty"`
}
VolumeMount - The properties of the volume mount.
func (VolumeMount) MarshalJSON ¶
func (v VolumeMount) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeMount.
func (*VolumeMount) UnmarshalJSON ¶
func (v *VolumeMount) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeMount.