Documentation ¶
Index ¶
- type AccessMode
- type ActiveRevisionsMode
- type AllowedAudiencesValidation
- type AllowedPrincipals
- type AppProtocol
- type Apple
- type AppleRegistration
- type AuthConfig
- type AuthConfigCollection
- type AuthConfigProperties
- type AuthPlatform
- type AvailableOperations
- type AzureActiveDirectory
- type AzureActiveDirectoryLogin
- type AzureActiveDirectoryRegistration
- type AzureActiveDirectoryValidation
- type AzureCredentials
- type AzureFileProperties
- type AzureStaticWebApps
- type AzureStaticWebAppsRegistration
- type BindingType
- type Certificate
- type CertificateCollection
- type CertificatePatch
- type CertificateProperties
- type CertificateProvisioningState
- type CertificatesClient
- func (client *CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedEnvironmentName string, ...) (CertificatesClientCreateOrUpdateResponse, error)
- func (client *CertificatesClient) Delete(ctx context.Context, resourceGroupName string, managedEnvironmentName string, ...) (CertificatesClientDeleteResponse, error)
- func (client *CertificatesClient) Get(ctx context.Context, resourceGroupName string, managedEnvironmentName string, ...) (CertificatesClientGetResponse, error)
- func (client *CertificatesClient) List(resourceGroupName string, managedEnvironmentName string, ...) *runtime.Pager[CertificatesClientListResponse]
- func (client *CertificatesClient) Update(ctx context.Context, resourceGroupName string, managedEnvironmentName string, ...) (CertificatesClientUpdateResponse, error)
- type CertificatesClientCreateOrUpdateOptions
- type CertificatesClientCreateOrUpdateResponse
- type CertificatesClientDeleteOptions
- type CertificatesClientDeleteResponse
- type CertificatesClientGetOptions
- type CertificatesClientGetResponse
- type CertificatesClientListOptions
- type CertificatesClientListResponse
- type CertificatesClientUpdateOptions
- type CertificatesClientUpdateResponse
- type ClientRegistration
- type Configuration
- type Container
- type ContainerApp
- type ContainerAppCollection
- type ContainerAppPatch
- type ContainerAppProbe
- type ContainerAppProbeHTTPGet
- type ContainerAppProbeHTTPGetHTTPHeadersItem
- type ContainerAppProbeTCPSocket
- type ContainerAppProperties
- type ContainerAppProvisioningState
- type ContainerAppSecret
- type ContainerAppsAuthConfigsClient
- func (client *ContainerAppsAuthConfigsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsAuthConfigsClientCreateOrUpdateResponse, error)
- func (client *ContainerAppsAuthConfigsClient) Delete(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsAuthConfigsClientDeleteResponse, error)
- func (client *ContainerAppsAuthConfigsClient) Get(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsAuthConfigsClientGetResponse, error)
- func (client *ContainerAppsAuthConfigsClient) ListByContainerApp(resourceGroupName string, containerAppName string, ...) *runtime.Pager[ContainerAppsAuthConfigsClientListByContainerAppResponse]
- type ContainerAppsAuthConfigsClientCreateOrUpdateOptions
- type ContainerAppsAuthConfigsClientCreateOrUpdateResponse
- type ContainerAppsAuthConfigsClientDeleteOptions
- type ContainerAppsAuthConfigsClientDeleteResponse
- type ContainerAppsAuthConfigsClientGetOptions
- type ContainerAppsAuthConfigsClientGetResponse
- type ContainerAppsAuthConfigsClientListByContainerAppOptions
- type ContainerAppsAuthConfigsClientListByContainerAppResponse
- type ContainerAppsClient
- func (client *ContainerAppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, ...) (*armruntime.Poller[ContainerAppsClientCreateOrUpdateResponse], error)
- func (client *ContainerAppsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, ...) (*armruntime.Poller[ContainerAppsClientDeleteResponse], error)
- func (client *ContainerAppsClient) Get(ctx context.Context, resourceGroupName string, name string, ...) (ContainerAppsClientGetResponse, error)
- func (client *ContainerAppsClient) ListByResourceGroup(resourceGroupName string, ...) *runtime.Pager[ContainerAppsClientListByResourceGroupResponse]
- func (client *ContainerAppsClient) ListBySubscription(options *ContainerAppsClientListBySubscriptionOptions) *runtime.Pager[ContainerAppsClientListBySubscriptionResponse]
- func (client *ContainerAppsClient) ListCustomHostNameAnalysis(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsClientListCustomHostNameAnalysisResponse, error)
- func (client *ContainerAppsClient) ListSecrets(ctx context.Context, resourceGroupName string, name string, ...) (ContainerAppsClientListSecretsResponse, error)
- func (client *ContainerAppsClient) Update(ctx context.Context, resourceGroupName string, name string, ...) (ContainerAppsClientUpdateResponse, error)
- type ContainerAppsClientBeginCreateOrUpdateOptions
- type ContainerAppsClientBeginDeleteOptions
- type ContainerAppsClientCreateOrUpdateResponse
- type ContainerAppsClientDeleteResponse
- type ContainerAppsClientGetOptions
- type ContainerAppsClientGetResponse
- type ContainerAppsClientListByResourceGroupOptions
- type ContainerAppsClientListByResourceGroupResponse
- type ContainerAppsClientListBySubscriptionOptions
- type ContainerAppsClientListBySubscriptionResponse
- type ContainerAppsClientListCustomHostNameAnalysisOptions
- type ContainerAppsClientListCustomHostNameAnalysisResponse
- type ContainerAppsClientListSecretsOptions
- type ContainerAppsClientListSecretsResponse
- type ContainerAppsClientUpdateOptions
- type ContainerAppsClientUpdateResponse
- type ContainerAppsRevisionReplicasClient
- func (client *ContainerAppsRevisionReplicasClient) GetReplica(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsRevisionReplicasClientGetReplicaResponse, error)
- func (client *ContainerAppsRevisionReplicasClient) ListReplicas(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsRevisionReplicasClientListReplicasResponse, error)
- type ContainerAppsRevisionReplicasClientGetReplicaOptions
- type ContainerAppsRevisionReplicasClientGetReplicaResponse
- type ContainerAppsRevisionReplicasClientListReplicasOptions
- type ContainerAppsRevisionReplicasClientListReplicasResponse
- type ContainerAppsRevisionsClient
- func (client *ContainerAppsRevisionsClient) ActivateRevision(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsRevisionsClientActivateRevisionResponse, error)
- func (client *ContainerAppsRevisionsClient) DeactivateRevision(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsRevisionsClientDeactivateRevisionResponse, error)
- func (client *ContainerAppsRevisionsClient) GetRevision(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsRevisionsClientGetRevisionResponse, error)
- func (client *ContainerAppsRevisionsClient) ListRevisions(resourceGroupName string, containerAppName string, ...) *runtime.Pager[ContainerAppsRevisionsClientListRevisionsResponse]
- func (client *ContainerAppsRevisionsClient) RestartRevision(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsRevisionsClientRestartRevisionResponse, error)
- type ContainerAppsRevisionsClientActivateRevisionOptions
- type ContainerAppsRevisionsClientActivateRevisionResponse
- type ContainerAppsRevisionsClientDeactivateRevisionOptions
- type ContainerAppsRevisionsClientDeactivateRevisionResponse
- type ContainerAppsRevisionsClientGetRevisionOptions
- type ContainerAppsRevisionsClientGetRevisionResponse
- type ContainerAppsRevisionsClientListRevisionsOptions
- type ContainerAppsRevisionsClientListRevisionsResponse
- type ContainerAppsRevisionsClientRestartRevisionOptions
- type ContainerAppsRevisionsClientRestartRevisionResponse
- type ContainerAppsSourceControlsClient
- func (client *ContainerAppsSourceControlsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, containerAppName string, ...) (*armruntime.Poller[ContainerAppsSourceControlsClientCreateOrUpdateResponse], ...)
- func (client *ContainerAppsSourceControlsClient) BeginDelete(ctx context.Context, resourceGroupName string, containerAppName string, ...) (*armruntime.Poller[ContainerAppsSourceControlsClientDeleteResponse], error)
- func (client *ContainerAppsSourceControlsClient) Get(ctx context.Context, resourceGroupName string, containerAppName string, ...) (ContainerAppsSourceControlsClientGetResponse, error)
- func (client *ContainerAppsSourceControlsClient) ListByContainerApp(resourceGroupName string, containerAppName string, ...) *runtime.Pager[ContainerAppsSourceControlsClientListByContainerAppResponse]
- type ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions
- type ContainerAppsSourceControlsClientBeginDeleteOptions
- type ContainerAppsSourceControlsClientCreateOrUpdateResponse
- type ContainerAppsSourceControlsClientDeleteResponse
- type ContainerAppsSourceControlsClientGetOptions
- type ContainerAppsSourceControlsClientGetResponse
- type ContainerAppsSourceControlsClientListByContainerAppOptions
- type ContainerAppsSourceControlsClientListByContainerAppResponse
- type ContainerResources
- type CookieExpiration
- type CookieExpirationConvention
- type CreatedByType
- type CustomDomain
- type CustomHostnameAnalysisResult
- type CustomHostnameAnalysisResultProperties
- type CustomOpenIDConnectProvider
- type CustomScaleRule
- type DNSVerificationTestResult
- type Dapr
- type DaprComponent
- type DaprComponentProperties
- type DaprComponentsClient
- func (client *DaprComponentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, ...) (DaprComponentsClientCreateOrUpdateResponse, error)
- func (client *DaprComponentsClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, ...) (DaprComponentsClientDeleteResponse, error)
- func (client *DaprComponentsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, ...) (DaprComponentsClientGetResponse, error)
- func (client *DaprComponentsClient) List(resourceGroupName string, environmentName string, ...) *runtime.Pager[DaprComponentsClientListResponse]
- type DaprComponentsClientCreateOrUpdateOptions
- type DaprComponentsClientCreateOrUpdateResponse
- type DaprComponentsClientDeleteOptions
- type DaprComponentsClientDeleteResponse
- type DaprComponentsClientGetOptions
- type DaprComponentsClientGetResponse
- type DaprComponentsClientListOptions
- type DaprComponentsClientListResponse
- type DaprComponentsCollection
- type DaprMetadata
- type DefaultAuthorizationPolicy
- type DefaultErrorResponse
- type DefaultErrorResponseError
- type DefaultErrorResponseErrorDetailsItem
- type EnvironmentProvisioningState
- type EnvironmentVar
- type Facebook
- type ForwardProxy
- type ForwardProxyConvention
- type GitHub
- type GithubActionConfiguration
- type GlobalValidation
- type Google
- type HTTPScaleRule
- type HTTPSettings
- type HTTPSettingsRoutes
- type IdentityProviders
- type Ingress
- type IngressTransportMethod
- type JwtClaimChecks
- type LogAnalyticsConfiguration
- type Login
- type LoginRoutes
- type LoginScopes
- type LogsConfiguration
- type ManagedEnvironment
- type ManagedEnvironmentPatch
- type ManagedEnvironmentProperties
- type ManagedEnvironmentStorage
- type ManagedEnvironmentStorageProperties
- type ManagedEnvironmentStoragesCollection
- type ManagedEnvironmentsClient
- func (client *ManagedEnvironmentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, ...) (*armruntime.Poller[ManagedEnvironmentsClientCreateOrUpdateResponse], error)
- func (client *ManagedEnvironmentsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, ...) (*armruntime.Poller[ManagedEnvironmentsClientDeleteResponse], error)
- func (client *ManagedEnvironmentsClient) Get(ctx context.Context, resourceGroupName string, name string, ...) (ManagedEnvironmentsClientGetResponse, error)
- func (client *ManagedEnvironmentsClient) ListByResourceGroup(resourceGroupName string, ...) *runtime.Pager[ManagedEnvironmentsClientListByResourceGroupResponse]
- func (client *ManagedEnvironmentsClient) ListBySubscription(options *ManagedEnvironmentsClientListBySubscriptionOptions) *runtime.Pager[ManagedEnvironmentsClientListBySubscriptionResponse]
- func (client *ManagedEnvironmentsClient) Update(ctx context.Context, resourceGroupName string, name string, ...) (ManagedEnvironmentsClientUpdateResponse, error)
- type ManagedEnvironmentsClientBeginCreateOrUpdateOptions
- type ManagedEnvironmentsClientBeginDeleteOptions
- type ManagedEnvironmentsClientCreateOrUpdateResponse
- type ManagedEnvironmentsClientDeleteResponse
- type ManagedEnvironmentsClientGetOptions
- type ManagedEnvironmentsClientGetResponse
- type ManagedEnvironmentsClientListByResourceGroupOptions
- type ManagedEnvironmentsClientListByResourceGroupResponse
- type ManagedEnvironmentsClientListBySubscriptionOptions
- type ManagedEnvironmentsClientListBySubscriptionResponse
- type ManagedEnvironmentsClientUpdateOptions
- type ManagedEnvironmentsClientUpdateResponse
- type ManagedEnvironmentsCollection
- type ManagedEnvironmentsStoragesClient
- func (client *ManagedEnvironmentsStoragesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, envName string, name string, ...) (ManagedEnvironmentsStoragesClientCreateOrUpdateResponse, error)
- func (client *ManagedEnvironmentsStoragesClient) Delete(ctx context.Context, resourceGroupName string, envName string, name string, ...) (ManagedEnvironmentsStoragesClientDeleteResponse, error)
- func (client *ManagedEnvironmentsStoragesClient) Get(ctx context.Context, resourceGroupName string, envName string, name string, ...) (ManagedEnvironmentsStoragesClientGetResponse, error)
- func (client *ManagedEnvironmentsStoragesClient) List(ctx context.Context, resourceGroupName string, envName string, ...) (ManagedEnvironmentsStoragesClientListResponse, error)
- type ManagedEnvironmentsStoragesClientCreateOrUpdateOptions
- type ManagedEnvironmentsStoragesClientCreateOrUpdateResponse
- type ManagedEnvironmentsStoragesClientDeleteOptions
- type ManagedEnvironmentsStoragesClientDeleteResponse
- type ManagedEnvironmentsStoragesClientGetOptions
- type ManagedEnvironmentsStoragesClientGetResponse
- type ManagedEnvironmentsStoragesClientListOptions
- type ManagedEnvironmentsStoragesClientListResponse
- type ManagedServiceIdentity
- type ManagedServiceIdentityType
- type Nonce
- type OpenIDConnectClientCredential
- type OpenIDConnectConfig
- type OpenIDConnectLogin
- type OpenIDConnectRegistration
- type OperationDetail
- type OperationDisplay
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type ProxyResource
- type QueueScaleRule
- type Registration
- type RegistryCredentials
- type RegistryInfo
- type Replica
- type ReplicaCollection
- type ReplicaContainer
- type ReplicaProperties
- type Resource
- type Revision
- type RevisionCollection
- type RevisionHealthState
- type RevisionProperties
- type RevisionProvisioningState
- type Scale
- type ScaleRule
- type ScaleRuleAuth
- type Secret
- type SecretsCollection
- type SourceControl
- type SourceControlCollection
- type SourceControlOperationState
- type SourceControlProperties
- type StorageType
- type SystemData
- type Template
- type TrackedResource
- type TrafficWeight
- type Twitter
- type TwitterRegistration
- type Type
- type UnauthenticatedClientActionV2
- type UserAssignedIdentity
- type VnetConfiguration
- type Volume
- type VolumeMount
Examples ¶
- CertificatesClient.CreateOrUpdate
- CertificatesClient.Delete
- CertificatesClient.Get
- CertificatesClient.List
- CertificatesClient.Update
- ContainerAppsAuthConfigsClient.CreateOrUpdate
- ContainerAppsAuthConfigsClient.Delete
- ContainerAppsAuthConfigsClient.Get
- ContainerAppsAuthConfigsClient.ListByContainerApp
- ContainerAppsClient.BeginCreateOrUpdate
- ContainerAppsClient.BeginDelete
- ContainerAppsClient.Get
- ContainerAppsClient.ListByResourceGroup
- ContainerAppsClient.ListBySubscription
- ContainerAppsClient.ListCustomHostNameAnalysis
- ContainerAppsClient.ListSecrets
- ContainerAppsClient.Update
- ContainerAppsRevisionReplicasClient.GetReplica
- ContainerAppsRevisionReplicasClient.ListReplicas
- ContainerAppsRevisionsClient.ActivateRevision
- ContainerAppsRevisionsClient.DeactivateRevision
- ContainerAppsRevisionsClient.GetRevision
- ContainerAppsRevisionsClient.ListRevisions
- ContainerAppsRevisionsClient.RestartRevision
- ContainerAppsSourceControlsClient.BeginCreateOrUpdate
- ContainerAppsSourceControlsClient.BeginDelete
- ContainerAppsSourceControlsClient.Get
- ContainerAppsSourceControlsClient.ListByContainerApp
- DaprComponentsClient.CreateOrUpdate
- DaprComponentsClient.Delete
- DaprComponentsClient.Get
- DaprComponentsClient.List
- ManagedEnvironmentsClient.BeginCreateOrUpdate
- ManagedEnvironmentsClient.BeginDelete
- ManagedEnvironmentsClient.Get
- ManagedEnvironmentsClient.ListByResourceGroup
- ManagedEnvironmentsClient.ListBySubscription
- ManagedEnvironmentsClient.Update
- ManagedEnvironmentsStoragesClient.CreateOrUpdate
- ManagedEnvironmentsStoragesClient.Delete
- ManagedEnvironmentsStoragesClient.Get
- ManagedEnvironmentsStoragesClient.List
- OperationsClient.List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessMode ¶
type AccessMode string
AccessMode - Access mode for storage
const ( AccessModeReadOnly AccessMode = "ReadOnly" AccessModeReadWrite AccessMode = "ReadWrite" )
func PossibleAccessModeValues ¶
func PossibleAccessModeValues() []AccessMode
PossibleAccessModeValues returns the possible values for the AccessMode const type.
type ActiveRevisionsMode ¶
type ActiveRevisionsMode string
ActiveRevisionsMode - ActiveRevisionsMode controls how active revisions are handled for the Container app:Multiple: multiple revisions can be active. If no value if provided, this is the defaultSingle: Only one revision can be active at a time. Revision weights can not be used in this mode
const ( ActiveRevisionsModeMultiple ActiveRevisionsMode = "multiple" ActiveRevisionsModeSingle ActiveRevisionsMode = "single" )
func PossibleActiveRevisionsModeValues ¶
func PossibleActiveRevisionsModeValues() []ActiveRevisionsMode
PossibleActiveRevisionsModeValues returns the possible values for the ActiveRevisionsMode const type.
type AllowedAudiencesValidation ¶
type AllowedAudiencesValidation struct { // The configuration settings of the allowed list of audiences from which to validate the JWT token. AllowedAudiences []*string `json:"allowedAudiences,omitempty"` }
AllowedAudiencesValidation - The configuration settings of the Allowed Audiences validation flow.
func (AllowedAudiencesValidation) MarshalJSON ¶
func (a AllowedAudiencesValidation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AllowedAudiencesValidation.
type AllowedPrincipals ¶
type AllowedPrincipals struct { // The list of the allowed groups. Groups []*string `json:"groups,omitempty"` // The list of the allowed identities. Identities []*string `json:"identities,omitempty"` }
AllowedPrincipals - The configuration settings of the Azure Active Directory allowed principals.
func (AllowedPrincipals) MarshalJSON ¶
func (a AllowedPrincipals) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AllowedPrincipals.
type AppProtocol ¶
type AppProtocol string
AppProtocol - Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
const ( AppProtocolGrpc AppProtocol = "grpc" AppProtocolHTTP AppProtocol = "http" )
func PossibleAppProtocolValues ¶
func PossibleAppProtocolValues() []AppProtocol
PossibleAppProtocolValues returns the possible values for the AppProtocol const type.
type Apple ¶
type Apple struct { // false if the Apple provider should not be enabled despite the set registration; otherwise, true. Enabled *bool `json:"enabled,omitempty"` // The configuration settings of the login flow. Login *LoginScopes `json:"login,omitempty"` // The configuration settings of the Apple registration. Registration *AppleRegistration `json:"registration,omitempty"` }
Apple - The configuration settings of the Apple provider.
type AppleRegistration ¶
type AppleRegistration struct { // The Client ID of the app used for login. ClientID *string `json:"clientId,omitempty"` // The app setting name that contains the client secret. ClientSecretSettingName *string `json:"clientSecretSettingName,omitempty"` }
AppleRegistration - The configuration settings of the registration for the Apple provider
type AuthConfig ¶
type AuthConfig struct { // AuthConfig resource specific properties Properties *AuthConfigProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
AuthConfig - Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature.
type AuthConfigCollection ¶
type AuthConfigCollection struct { // REQUIRED; Collection of resources. Value []*AuthConfig `json:"value,omitempty"` // READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
AuthConfigCollection - AuthConfig collection ARM resource.
func (AuthConfigCollection) MarshalJSON ¶
func (a AuthConfigCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AuthConfigCollection.
type AuthConfigProperties ¶
type AuthConfigProperties struct { // The configuration settings that determines the validation flow of users using Service Authentication/Authorization. GlobalValidation *GlobalValidation `json:"globalValidation,omitempty"` // The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp // Service Authentication/Authorization. HTTPSettings *HTTPSettings `json:"httpSettings,omitempty"` // The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization. IdentityProviders *IdentityProviders `json:"identityProviders,omitempty"` // The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization. Login *Login `json:"login,omitempty"` // The configuration settings of the platform of ContainerApp Service Authentication/Authorization. Platform *AuthPlatform `json:"platform,omitempty"` }
AuthConfigProperties - AuthConfig resource specific properties
type AuthPlatform ¶
type AuthPlatform struct { // true if the Authentication / Authorization feature is enabled for the current app; otherwise, false. Enabled *bool `json:"enabled,omitempty"` // The RuntimeVersion of the Authentication / Authorization feature in use for the current app. The setting in this value // can control the behavior of certain features in the Authentication / // Authorization module. RuntimeVersion *string `json:"runtimeVersion,omitempty"` }
AuthPlatform - The configuration settings of the platform of ContainerApp Service Authentication/Authorization.
type AvailableOperations ¶
type AvailableOperations struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of available operation details Value []*OperationDetail `json:"value,omitempty"` }
AvailableOperations - Available operations of the service
func (AvailableOperations) MarshalJSON ¶
func (a AvailableOperations) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailableOperations.
type AzureActiveDirectory ¶
type AzureActiveDirectory struct { // false if the Azure Active Directory provider should not be enabled despite the set registration; otherwise, true. Enabled *bool `json:"enabled,omitempty"` // Gets a value indicating whether the Azure AD configuration was auto-provisioned using 1st party tooling. This is an internal // flag primarily intended to support the Azure Management Portal. Users // should not read or write to this property. IsAutoProvisioned *bool `json:"isAutoProvisioned,omitempty"` // The configuration settings of the Azure Active Directory login flow. Login *AzureActiveDirectoryLogin `json:"login,omitempty"` // The configuration settings of the Azure Active Directory app registration. Registration *AzureActiveDirectoryRegistration `json:"registration,omitempty"` // The configuration settings of the Azure Active Directory token validation flow. Validation *AzureActiveDirectoryValidation `json:"validation,omitempty"` }
AzureActiveDirectory - The configuration settings of the Azure Active directory provider.
type AzureActiveDirectoryLogin ¶
type AzureActiveDirectoryLogin struct { // true if the www-authenticate provider should be omitted from the request; otherwise, false. DisableWWWAuthenticate *bool `json:"disableWWWAuthenticate,omitempty"` // Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the // form "key=value". LoginParameters []*string `json:"loginParameters,omitempty"` }
AzureActiveDirectoryLogin - The configuration settings of the Azure Active Directory login flow.
func (AzureActiveDirectoryLogin) MarshalJSON ¶
func (a AzureActiveDirectoryLogin) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureActiveDirectoryLogin.
type AzureActiveDirectoryRegistration ¶
type AzureActiveDirectoryRegistration struct { // The Client ID of this relying party application, known as the clientid. This setting is required for enabling OpenID Connection // authentication with Azure Active Directory or other 3rd party OpenID // Connect providers. More information on OpenID Connect: http://openid.net/specs/openid-connect-core-10.html ClientID *string `json:"clientId,omitempty"` // An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property // acts as a replacement for the Client Secret Certificate Thumbprint. It is // also optional. ClientSecretCertificateIssuer *string `json:"clientSecretCertificateIssuer,omitempty"` // An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing // purposes. This property acts as a replacement for the Client Secret Certificate // Thumbprint. It is also optional. ClientSecretCertificateSubjectAlternativeName *string `json:"clientSecretCertificateSubjectAlternativeName,omitempty"` // An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts // as a replacement for the Client Secret. It is also optional. ClientSecretCertificateThumbprint *string `json:"clientSecretCertificateThumbprint,omitempty"` // The app setting name that contains the client secret of the relying party application. ClientSecretSettingName *string `json:"clientSecretSettingName,omitempty"` // The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. When using Azure // Active Directory, this value is the URI of the directory tenant, e.g. // https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a case-sensitive identifier for the token issuer. More // information on OpenID Connect Discovery: // http://openid.net/specs/openid-connect-discovery-1_0.html OpenIDIssuer *string `json:"openIdIssuer,omitempty"` }
AzureActiveDirectoryRegistration - The configuration settings of the Azure Active Directory app registration.
type AzureActiveDirectoryValidation ¶
type AzureActiveDirectoryValidation struct { // The list of audiences that can make successful authentication/authorization requests. AllowedAudiences []*string `json:"allowedAudiences,omitempty"` // The configuration settings of the default authorization policy. DefaultAuthorizationPolicy *DefaultAuthorizationPolicy `json:"defaultAuthorizationPolicy,omitempty"` // The configuration settings of the checks that should be made while validating the JWT Claims. JwtClaimChecks *JwtClaimChecks `json:"jwtClaimChecks,omitempty"` }
AzureActiveDirectoryValidation - The configuration settings of the Azure Active Directory token validation flow.
func (AzureActiveDirectoryValidation) MarshalJSON ¶
func (a AzureActiveDirectoryValidation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureActiveDirectoryValidation.
type AzureCredentials ¶
type AzureCredentials struct { // Client Id. ClientID *string `json:"clientId,omitempty"` // Client Secret. ClientSecret *string `json:"clientSecret,omitempty"` // Subscription Id. SubscriptionID *string `json:"subscriptionId,omitempty"` // Tenant Id. TenantID *string `json:"tenantId,omitempty"` }
AzureCredentials - Container App credentials.
type AzureFileProperties ¶
type AzureFileProperties struct { // Access mode for storage AccessMode *AccessMode `json:"accessMode,omitempty"` // Storage account key for azure file. AccountKey *string `json:"accountKey,omitempty"` // Storage account name for azure file. AccountName *string `json:"accountName,omitempty"` ShareName *string `json:"shareName,omitempty"` }
AzureFileProperties - Azure File Properties.
type AzureStaticWebApps ¶
type AzureStaticWebApps struct { // false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true. Enabled *bool `json:"enabled,omitempty"` // The configuration settings of the Azure Static Web Apps registration. Registration *AzureStaticWebAppsRegistration `json:"registration,omitempty"` }
AzureStaticWebApps - The configuration settings of the Azure Static Web Apps provider.
type AzureStaticWebAppsRegistration ¶
type AzureStaticWebAppsRegistration struct { // The Client ID of the app used for login. ClientID *string `json:"clientId,omitempty"` }
AzureStaticWebAppsRegistration - The configuration settings of the registration for the Azure Static Web Apps provider
type BindingType ¶
type BindingType string
BindingType - Custom Domain binding type.
const ( BindingTypeDisabled BindingType = "Disabled" BindingTypeSniEnabled BindingType = "SniEnabled" )
func PossibleBindingTypeValues ¶
func PossibleBindingTypeValues() []BindingType
PossibleBindingTypeValues returns the possible values for the BindingType const type.
type Certificate ¶
type Certificate struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Certificate resource specific properties Properties *CertificateProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Certificate used for Custom Domain bindings of Container Apps in a Managed Environment
func (Certificate) MarshalJSON ¶
func (c Certificate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Certificate.
type CertificateCollection ¶
type CertificateCollection struct { // REQUIRED; Collection of resources. Value []*Certificate `json:"value,omitempty"` // READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
CertificateCollection - Collection of Certificates.
func (CertificateCollection) MarshalJSON ¶
func (c CertificateCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CertificateCollection.
type CertificatePatch ¶
type CertificatePatch struct { // Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags,omitempty"` }
CertificatePatch - A certificate to update
func (CertificatePatch) MarshalJSON ¶
func (c CertificatePatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CertificatePatch.
type CertificateProperties ¶
type CertificateProperties struct { // Certificate password. Password *string `json:"password,omitempty"` // PFX or PEM blob Value []byte `json:"value,omitempty"` // READ-ONLY; Certificate expiration date. ExpirationDate *time.Time `json:"expirationDate,omitempty" azure:"ro"` // READ-ONLY; Certificate issue Date. IssueDate *time.Time `json:"issueDate,omitempty" azure:"ro"` // READ-ONLY; Certificate issuer. Issuer *string `json:"issuer,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the certificate. ProvisioningState *CertificateProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Public key hash. PublicKeyHash *string `json:"publicKeyHash,omitempty" azure:"ro"` // READ-ONLY; Subject name of the certificate. SubjectName *string `json:"subjectName,omitempty" azure:"ro"` // READ-ONLY; Certificate thumbprint. Thumbprint *string `json:"thumbprint,omitempty" azure:"ro"` // READ-ONLY; Is the certificate valid?. Valid *bool `json:"valid,omitempty" azure:"ro"` }
CertificateProperties - Certificate resource specific properties
func (CertificateProperties) MarshalJSON ¶
func (c CertificateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CertificateProperties.
func (*CertificateProperties) UnmarshalJSON ¶
func (c *CertificateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CertificateProperties.
type CertificateProvisioningState ¶
type CertificateProvisioningState string
CertificateProvisioningState - Provisioning state of the certificate.
const ( CertificateProvisioningStateCanceled CertificateProvisioningState = "Canceled" CertificateProvisioningStateDeleteFailed CertificateProvisioningState = "DeleteFailed" CertificateProvisioningStateFailed CertificateProvisioningState = "Failed" CertificateProvisioningStatePending CertificateProvisioningState = "Pending" CertificateProvisioningStateSucceeded CertificateProvisioningState = "Succeeded" )
func PossibleCertificateProvisioningStateValues ¶
func PossibleCertificateProvisioningStateValues() []CertificateProvisioningState
PossibleCertificateProvisioningStateValues returns the possible values for the CertificateProvisioningState const type.
type CertificatesClient ¶
type CertificatesClient struct {
// contains filtered or unexported fields
}
CertificatesClient contains the methods for the Certificates group. Don't use this type directly, use NewCertificatesClient() instead.
func NewCertificatesClient ¶
func NewCertificatesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificatesClient, error)
NewCertificatesClient creates a new instance of CertificatesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*CertificatesClient) CreateOrUpdate ¶
func (client *CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedEnvironmentName string, name string, options *CertificatesClientCreateOrUpdateOptions) (CertificatesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create or Update a Certificate. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. managedEnvironmentName - Name of the Managed Environment. name - Name of the Certificate. options - CertificatesClientCreateOrUpdateOptions contains the optional parameters for the CertificatesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewCertificatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-group-name>", "<managed-environment-name>", "<name>", &armapp.CertificatesClientCreateOrUpdateOptions{CertificateEnvelope: &armapp.Certificate{ Location: to.Ptr("<location>"), Properties: &armapp.CertificateProperties{ Password: to.Ptr("<password>"), Value: []byte("PFX-or-PEM-blob"), }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*CertificatesClient) Delete ¶
func (client *CertificatesClient) Delete(ctx context.Context, resourceGroupName string, managedEnvironmentName string, name string, options *CertificatesClientDeleteOptions) (CertificatesClientDeleteResponse, error)
Delete - Deletes the specified Certificate. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. managedEnvironmentName - Name of the Managed Environment. name - Name of the Certificate. options - CertificatesClientDeleteOptions contains the optional parameters for the CertificatesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewCertificatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<managed-environment-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*CertificatesClient) Get ¶
func (client *CertificatesClient) Get(ctx context.Context, resourceGroupName string, managedEnvironmentName string, name string, options *CertificatesClientGetOptions) (CertificatesClientGetResponse, error)
Get - Get the specified Certificate. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. managedEnvironmentName - Name of the Managed Environment. name - Name of the Certificate. options - CertificatesClientGetOptions contains the optional parameters for the CertificatesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewCertificatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<managed-environment-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*CertificatesClient) List ¶
func (client *CertificatesClient) List(resourceGroupName string, managedEnvironmentName string, options *CertificatesClientListOptions) *runtime.Pager[CertificatesClientListResponse]
List - Get the Certificates in a given managed environment. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. managedEnvironmentName - Name of the Managed Environment. options - CertificatesClientListOptions contains the optional parameters for the CertificatesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_ListByManagedEnvironment.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewCertificatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<resource-group-name>", "<managed-environment-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*CertificatesClient) Update ¶
func (client *CertificatesClient) Update(ctx context.Context, resourceGroupName string, managedEnvironmentName string, name string, certificateEnvelope CertificatePatch, options *CertificatesClientUpdateOptions) (CertificatesClientUpdateResponse, error)
Update - Patches a certificate. Currently only patching of tags is supported If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. managedEnvironmentName - Name of the Managed Environment. name - Name of the Certificate. certificateEnvelope - Properties of a certificate that need to be updated options - CertificatesClientUpdateOptions contains the optional parameters for the CertificatesClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewCertificatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<resource-group-name>", "<managed-environment-name>", "<name>", armapp.CertificatePatch{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type CertificatesClientCreateOrUpdateOptions ¶
type CertificatesClientCreateOrUpdateOptions struct { // Certificate to be created or updated CertificateEnvelope *Certificate }
CertificatesClientCreateOrUpdateOptions contains the optional parameters for the CertificatesClient.CreateOrUpdate method.
type CertificatesClientCreateOrUpdateResponse ¶
type CertificatesClientCreateOrUpdateResponse struct {
Certificate
}
CertificatesClientCreateOrUpdateResponse contains the response from method CertificatesClient.CreateOrUpdate.
type CertificatesClientDeleteOptions ¶
type CertificatesClientDeleteOptions struct { }
CertificatesClientDeleteOptions contains the optional parameters for the CertificatesClient.Delete method.
type CertificatesClientDeleteResponse ¶
type CertificatesClientDeleteResponse struct { }
CertificatesClientDeleteResponse contains the response from method CertificatesClient.Delete.
type CertificatesClientGetOptions ¶
type CertificatesClientGetOptions struct { }
CertificatesClientGetOptions contains the optional parameters for the CertificatesClient.Get method.
type CertificatesClientGetResponse ¶
type CertificatesClientGetResponse struct {
Certificate
}
CertificatesClientGetResponse contains the response from method CertificatesClient.Get.
type CertificatesClientListOptions ¶
type CertificatesClientListOptions struct { }
CertificatesClientListOptions contains the optional parameters for the CertificatesClient.List method.
type CertificatesClientListResponse ¶
type CertificatesClientListResponse struct {
CertificateCollection
}
CertificatesClientListResponse contains the response from method CertificatesClient.List.
type CertificatesClientUpdateOptions ¶
type CertificatesClientUpdateOptions struct { }
CertificatesClientUpdateOptions contains the optional parameters for the CertificatesClient.Update method.
type CertificatesClientUpdateResponse ¶
type CertificatesClientUpdateResponse struct {
Certificate
}
CertificatesClientUpdateResponse contains the response from method CertificatesClient.Update.
type ClientRegistration ¶
type ClientRegistration struct { // The Client ID of the app used for login. ClientID *string `json:"clientId,omitempty"` // The app setting name that contains the client secret. ClientSecretSettingName *string `json:"clientSecretSettingName,omitempty"` }
ClientRegistration - The configuration settings of the app registration for providers that have client ids and client secrets
type Configuration ¶
type Configuration struct { // ActiveRevisionsMode controls how active revisions are handled for the Container app:Multiple: multiple revisions can be // active. If no value if provided, this is the defaultSingle: Only one revision // can be active at a time. Revision weights can not be used in this mode ActiveRevisionsMode *ActiveRevisionsMode `json:"activeRevisionsMode,omitempty"` // Dapr configuration for the Container App. Dapr *Dapr `json:"dapr,omitempty"` // Ingress configurations. Ingress *Ingress `json:"ingress,omitempty"` // Collection of private container registry credentials for containers used by the Container app Registries []*RegistryCredentials `json:"registries,omitempty"` // Collection of secrets used by a Container app Secrets []*Secret `json:"secrets,omitempty"` }
Configuration - Non versioned Container App configuration properties that define the mutable settings of a Container app
func (Configuration) MarshalJSON ¶
func (c Configuration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Configuration.
type Container ¶
type Container struct { // Container start command arguments. Args []*string `json:"args,omitempty"` // Container start command. Command []*string `json:"command,omitempty"` // Container environment variables. Env []*EnvironmentVar `json:"env,omitempty"` // Container image tag. Image *string `json:"image,omitempty"` // Custom container name. Name *string `json:"name,omitempty"` // List of probes for the container. Probes []*ContainerAppProbe `json:"probes,omitempty"` // Container resource requirements. Resources *ContainerResources `json:"resources,omitempty"` // Container volume mounts. VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"` }
Container App container definition.
func (Container) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Container.
type ContainerApp ¶
type ContainerApp struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials // in code. Identity *ManagedServiceIdentity `json:"identity,omitempty"` // ContainerApp resource specific properties Properties *ContainerAppProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ContainerApp - Container App.
func (ContainerApp) MarshalJSON ¶
func (c ContainerApp) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerApp.
type ContainerAppCollection ¶
type ContainerAppCollection struct { // REQUIRED; Collection of resources. Value []*ContainerApp `json:"value,omitempty"` // READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ContainerAppCollection - Container App collection ARM resource.
func (ContainerAppCollection) MarshalJSON ¶
func (c ContainerAppCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerAppCollection.
type ContainerAppPatch ¶
type ContainerAppPatch struct { // Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags,omitempty"` }
ContainerAppPatch - Container App Patch.
func (ContainerAppPatch) MarshalJSON ¶
func (c ContainerAppPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerAppPatch.
type ContainerAppProbe ¶
type ContainerAppProbe struct { // Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value // is 1. Maximum value is 10. FailureThreshold *int32 `json:"failureThreshold,omitempty"` // HTTPGet specifies the http request to perform. HTTPGet *ContainerAppProbeHTTPGet `json:"httpGet,omitempty"` // Number of seconds after the container has started before liveness probes are initiated. Minimum value is 1. Maximum value // is 60. InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"` // How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240. PeriodSeconds *int32 `json:"periodSeconds,omitempty"` // Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for // liveness and startup. Minimum value is 1. Maximum value is 10. SuccessThreshold *int32 `json:"successThreshold,omitempty"` // TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported. TCPSocket *ContainerAppProbeTCPSocket `json:"tcpSocket,omitempty"` // Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration // in seconds after the processes running in the pod are sent a termination signal // and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup // time for your process. If this value is nil, the pod's // terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must // be non-negative integer. The value zero indicates stop immediately via the // kill signal (no opportunity to shut down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature // gate. Maximum value is 3600 seconds (1 hour) TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` // Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 240. TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` // The type of probe. Type *Type `json:"type,omitempty"` }
ContainerAppProbe - Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
type ContainerAppProbeHTTPGet ¶
type ContainerAppProbeHTTPGet struct { // REQUIRED; Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an // IANASVCNAME. Port *int32 `json:"port,omitempty"` // Custom headers to set in the request. HTTP allows repeated headers. HTTPHeaders []*ContainerAppProbeHTTPGetHTTPHeadersItem `json:"httpHeaders,omitempty"` // Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. Host *string `json:"host,omitempty"` // Path to access on the HTTP server. Path *string `json:"path,omitempty"` // Scheme to use for connecting to the host. Defaults to HTTP. Scheme *string `json:"scheme,omitempty"` }
ContainerAppProbeHTTPGet - HTTPGet specifies the http request to perform.
func (ContainerAppProbeHTTPGet) MarshalJSON ¶
func (c ContainerAppProbeHTTPGet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerAppProbeHTTPGet.
type ContainerAppProbeHTTPGetHTTPHeadersItem ¶
type ContainerAppProbeHTTPGetHTTPHeadersItem struct { // REQUIRED; The header field name Name *string `json:"name,omitempty"` // REQUIRED; The header field value Value *string `json:"value,omitempty"` }
ContainerAppProbeHTTPGetHTTPHeadersItem - HTTPHeader describes a custom header to be used in HTTP probes
type ContainerAppProbeTCPSocket ¶
type ContainerAppProbeTCPSocket struct { // REQUIRED; Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an // IANASVCNAME. Port *int32 `json:"port,omitempty"` // Optional: Host name to connect to, defaults to the pod IP. Host *string `json:"host,omitempty"` }
ContainerAppProbeTCPSocket - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.
type ContainerAppProperties ¶
type ContainerAppProperties struct { // Non versioned Container App configuration properties. Configuration *Configuration `json:"configuration,omitempty"` // Resource ID of the Container App's environment. ManagedEnvironmentID *string `json:"managedEnvironmentId,omitempty"` // Container App versioned application definition. Template *Template `json:"template,omitempty"` // READ-ONLY; Id used to verify domain name ownership CustomDomainVerificationID *string `json:"customDomainVerificationId,omitempty" azure:"ro"` // READ-ONLY; Fully Qualified Domain Name of the latest revision of the Container App. LatestRevisionFqdn *string `json:"latestRevisionFqdn,omitempty" azure:"ro"` // READ-ONLY; Name of the latest revision of the Container App. LatestRevisionName *string `json:"latestRevisionName,omitempty" azure:"ro"` // READ-ONLY; Outbound IP Addresses for container app. OutboundIPAddresses []*string `json:"outboundIPAddresses,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the Container App. ProvisioningState *ContainerAppProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ContainerAppProperties - ContainerApp resource specific properties
func (ContainerAppProperties) MarshalJSON ¶
func (c ContainerAppProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerAppProperties.
type ContainerAppProvisioningState ¶
type ContainerAppProvisioningState string
ContainerAppProvisioningState - Provisioning state of the Container App.
const ( ContainerAppProvisioningStateCanceled ContainerAppProvisioningState = "Canceled" ContainerAppProvisioningStateFailed ContainerAppProvisioningState = "Failed" ContainerAppProvisioningStateInProgress ContainerAppProvisioningState = "InProgress" ContainerAppProvisioningStateSucceeded ContainerAppProvisioningState = "Succeeded" )
func PossibleContainerAppProvisioningStateValues ¶
func PossibleContainerAppProvisioningStateValues() []ContainerAppProvisioningState
PossibleContainerAppProvisioningStateValues returns the possible values for the ContainerAppProvisioningState const type.
type ContainerAppSecret ¶
type ContainerAppSecret struct { // READ-ONLY; Secret Name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Secret Value. Value *string `json:"value,omitempty" azure:"ro"` }
ContainerAppSecret - Container App Secret.
type ContainerAppsAuthConfigsClient ¶
type ContainerAppsAuthConfigsClient struct {
// contains filtered or unexported fields
}
ContainerAppsAuthConfigsClient contains the methods for the ContainerAppsAuthConfigs group. Don't use this type directly, use NewContainerAppsAuthConfigsClient() instead.
func NewContainerAppsAuthConfigsClient ¶
func NewContainerAppsAuthConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsAuthConfigsClient, error)
NewContainerAppsAuthConfigsClient creates a new instance of ContainerAppsAuthConfigsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ContainerAppsAuthConfigsClient) CreateOrUpdate ¶
func (client *ContainerAppsAuthConfigsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, containerAppName string, name string, authConfigEnvelope AuthConfig, options *ContainerAppsAuthConfigsClientCreateOrUpdateOptions) (ContainerAppsAuthConfigsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Description for Create or update the AuthConfig for a Container App. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. name - Name of the Container App AuthConfig. authConfigEnvelope - Properties used to create a Container App AuthConfig options - ContainerAppsAuthConfigsClientCreateOrUpdateOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsAuthConfigsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-group-name>", "<container-app-name>", "<name>", armapp.AuthConfig{ Properties: &armapp.AuthConfigProperties{ GlobalValidation: &armapp.GlobalValidation{ UnauthenticatedClientAction: to.Ptr(armapp.UnauthenticatedClientActionV2AllowAnonymous), }, IdentityProviders: &armapp.IdentityProviders{ Facebook: &armapp.Facebook{ Registration: &armapp.Registration{ AppID: to.Ptr("<app-id>"), AppSecretSettingName: to.Ptr("<app-secret-setting-name>"), }, }, }, Platform: &armapp.AuthPlatform{ Enabled: to.Ptr(true), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContainerAppsAuthConfigsClient) Delete ¶
func (client *ContainerAppsAuthConfigsClient) Delete(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsAuthConfigsClientDeleteOptions) (ContainerAppsAuthConfigsClientDeleteResponse, error)
Delete - Description for Delete a Container App AuthConfig. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. name - Name of the Container App AuthConfig. options - ContainerAppsAuthConfigsClientDeleteOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsAuthConfigsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<container-app-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*ContainerAppsAuthConfigsClient) Get ¶
func (client *ContainerAppsAuthConfigsClient) Get(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsAuthConfigsClientGetOptions) (ContainerAppsAuthConfigsClientGetResponse, error)
Get - Get a AuthConfig of a Container App. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. name - Name of the Container App AuthConfig. options - ContainerAppsAuthConfigsClientGetOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsAuthConfigsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<container-app-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContainerAppsAuthConfigsClient) ListByContainerApp ¶
func (client *ContainerAppsAuthConfigsClient) ListByContainerApp(resourceGroupName string, containerAppName string, options *ContainerAppsAuthConfigsClientListByContainerAppOptions) *runtime.Pager[ContainerAppsAuthConfigsClientListByContainerAppResponse]
ListByContainerApp - Get the Container App AuthConfigs in a given resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. options - ContainerAppsAuthConfigsClientListByContainerAppOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.ListByContainerApp method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_ListByContainer.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsAuthConfigsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByContainerApp("<resource-group-name>", "<container-app-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ContainerAppsAuthConfigsClientCreateOrUpdateOptions ¶
type ContainerAppsAuthConfigsClientCreateOrUpdateOptions struct { }
ContainerAppsAuthConfigsClientCreateOrUpdateOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.CreateOrUpdate method.
type ContainerAppsAuthConfigsClientCreateOrUpdateResponse ¶
type ContainerAppsAuthConfigsClientCreateOrUpdateResponse struct {
AuthConfig
}
ContainerAppsAuthConfigsClientCreateOrUpdateResponse contains the response from method ContainerAppsAuthConfigsClient.CreateOrUpdate.
type ContainerAppsAuthConfigsClientDeleteOptions ¶
type ContainerAppsAuthConfigsClientDeleteOptions struct { }
ContainerAppsAuthConfigsClientDeleteOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.Delete method.
type ContainerAppsAuthConfigsClientDeleteResponse ¶
type ContainerAppsAuthConfigsClientDeleteResponse struct { }
ContainerAppsAuthConfigsClientDeleteResponse contains the response from method ContainerAppsAuthConfigsClient.Delete.
type ContainerAppsAuthConfigsClientGetOptions ¶
type ContainerAppsAuthConfigsClientGetOptions struct { }
ContainerAppsAuthConfigsClientGetOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.Get method.
type ContainerAppsAuthConfigsClientGetResponse ¶
type ContainerAppsAuthConfigsClientGetResponse struct {
AuthConfig
}
ContainerAppsAuthConfigsClientGetResponse contains the response from method ContainerAppsAuthConfigsClient.Get.
type ContainerAppsAuthConfigsClientListByContainerAppOptions ¶
type ContainerAppsAuthConfigsClientListByContainerAppOptions struct { }
ContainerAppsAuthConfigsClientListByContainerAppOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.ListByContainerApp method.
type ContainerAppsAuthConfigsClientListByContainerAppResponse ¶
type ContainerAppsAuthConfigsClientListByContainerAppResponse struct {
AuthConfigCollection
}
ContainerAppsAuthConfigsClientListByContainerAppResponse contains the response from method ContainerAppsAuthConfigsClient.ListByContainerApp.
type ContainerAppsClient ¶
type ContainerAppsClient struct {
// contains filtered or unexported fields
}
ContainerAppsClient contains the methods for the ContainerApps group. Don't use this type directly, use NewContainerAppsClient() instead.
func NewContainerAppsClient ¶
func NewContainerAppsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsClient, error)
NewContainerAppsClient creates a new instance of ContainerAppsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ContainerAppsClient) BeginCreateOrUpdate ¶
func (client *ContainerAppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginCreateOrUpdateOptions) (*armruntime.Poller[ContainerAppsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Description for Create or update a Container App. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. name - Name of the Container App. containerAppEnvelope - Properties used to create a container app options - ContainerAppsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<name>", armapp.ContainerApp{ Location: to.Ptr("<location>"), Properties: &armapp.ContainerAppProperties{ Configuration: &armapp.Configuration{ Dapr: &armapp.Dapr{ AppPort: to.Ptr[int32](3000), AppProtocol: to.Ptr(armapp.AppProtocolHTTP), Enabled: to.Ptr(true), }, Ingress: &armapp.Ingress{ CustomDomains: []*armapp.CustomDomain{ { Name: to.Ptr("<name>"), BindingType: to.Ptr(armapp.BindingTypeSniEnabled), CertificateID: to.Ptr("<certificate-id>"), }, { Name: to.Ptr("<name>"), BindingType: to.Ptr(armapp.BindingTypeSniEnabled), CertificateID: to.Ptr("<certificate-id>"), }}, External: to.Ptr(true), TargetPort: to.Ptr[int32](3000), }, }, ManagedEnvironmentID: to.Ptr("<managed-environment-id>"), Template: &armapp.Template{ Containers: []*armapp.Container{ { Name: to.Ptr("<name>"), Image: to.Ptr("<image>"), Probes: []*armapp.ContainerAppProbe{ { Type: to.Ptr(armapp.TypeLiveness), HTTPGet: &armapp.ContainerAppProbeHTTPGet{ Path: to.Ptr("<path>"), HTTPHeaders: []*armapp.ContainerAppProbeHTTPGetHTTPHeadersItem{ { Name: to.Ptr("<name>"), Value: to.Ptr("<value>"), }}, Port: to.Ptr[int32](8080), }, InitialDelaySeconds: to.Ptr[int32](3), PeriodSeconds: to.Ptr[int32](3), }}, }}, Scale: &armapp.Scale{ MaxReplicas: to.Ptr[int32](5), MinReplicas: to.Ptr[int32](1), Rules: []*armapp.ScaleRule{ { Name: to.Ptr("<name>"), Custom: &armapp.CustomScaleRule{ Type: to.Ptr("<type>"), Metadata: map[string]*string{ "concurrentRequests": to.Ptr("50"), }, }, }}, }, }, }, }, &armapp.ContainerAppsClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContainerAppsClient) BeginDelete ¶
func (client *ContainerAppsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, options *ContainerAppsClientBeginDeleteOptions) (*armruntime.Poller[ContainerAppsClientDeleteResponse], error)
BeginDelete - Description for Delete a Container App. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. name - Name of the Container App. options - ContainerAppsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_Delete.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<name>", &armapp.ContainerAppsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*ContainerAppsClient) Get ¶
func (client *ContainerAppsClient) Get(ctx context.Context, resourceGroupName string, name string, options *ContainerAppsClientGetOptions) (ContainerAppsClientGetResponse, error)
Get - Get the properties of a Container App. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. name - Name of the Container App. options - ContainerAppsClientGetOptions contains the optional parameters for the ContainerAppsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContainerAppsClient) ListByResourceGroup ¶
func (client *ContainerAppsClient) ListByResourceGroup(resourceGroupName string, options *ContainerAppsClientListByResourceGroupOptions) *runtime.Pager[ContainerAppsClientListByResourceGroupResponse]
ListByResourceGroup - Get the Container Apps in a given resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - ContainerAppsClientListByResourceGroupOptions contains the optional parameters for the ContainerAppsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ContainerAppsClient) ListBySubscription ¶
func (client *ContainerAppsClient) ListBySubscription(options *ContainerAppsClientListBySubscriptionOptions) *runtime.Pager[ContainerAppsClientListBySubscriptionResponse]
ListBySubscription - Get the Container Apps in a given subscription. If the operation fails it returns an *azcore.ResponseError type. options - ContainerAppsClientListBySubscriptionOptions contains the optional parameters for the ContainerAppsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListBySubscription(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ContainerAppsClient) ListCustomHostNameAnalysis ¶
func (client *ContainerAppsClient) ListCustomHostNameAnalysis(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientListCustomHostNameAnalysisOptions) (ContainerAppsClientListCustomHostNameAnalysisResponse, error)
ListCustomHostNameAnalysis - Analyzes a custom hostname for a Container App If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. options - ContainerAppsClientListCustomHostNameAnalysisOptions contains the optional parameters for the ContainerAppsClient.ListCustomHostNameAnalysis method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.ListCustomHostNameAnalysis(ctx, "<resource-group-name>", "<container-app-name>", &armapp.ContainerAppsClientListCustomHostNameAnalysisOptions{CustomHostname: to.Ptr("<custom-hostname>")}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContainerAppsClient) ListSecrets ¶
func (client *ContainerAppsClient) ListSecrets(ctx context.Context, resourceGroupName string, name string, options *ContainerAppsClientListSecretsOptions) (ContainerAppsClientListSecretsResponse, error)
ListSecrets - List secrets for a container app If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. name - Name of the Container App. options - ContainerAppsClientListSecretsOptions contains the optional parameters for the ContainerAppsClient.ListSecrets method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListSecrets.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.ListSecrets(ctx, "<resource-group-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContainerAppsClient) Update ¶
func (client *ContainerAppsClient) Update(ctx context.Context, resourceGroupName string, name string, containerAppEnvelope ContainerAppPatch, options *ContainerAppsClientUpdateOptions) (ContainerAppsClientUpdateResponse, error)
Update - Patches a Container App. Currently only patching of tags is supported If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. name - Name of the Container App. containerAppEnvelope - Properties of a container app that need to be updated options - ContainerAppsClientUpdateOptions contains the optional parameters for the ContainerAppsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<resource-group-name>", "<name>", armapp.ContainerAppPatch{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type ContainerAppsClientBeginCreateOrUpdateOptions ¶
type ContainerAppsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ContainerAppsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsClient.BeginCreateOrUpdate method.
type ContainerAppsClientBeginDeleteOptions ¶
type ContainerAppsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ContainerAppsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsClient.BeginDelete method.
type ContainerAppsClientCreateOrUpdateResponse ¶
type ContainerAppsClientCreateOrUpdateResponse struct {
ContainerApp
}
ContainerAppsClientCreateOrUpdateResponse contains the response from method ContainerAppsClient.CreateOrUpdate.
type ContainerAppsClientDeleteResponse ¶
type ContainerAppsClientDeleteResponse struct { }
ContainerAppsClientDeleteResponse contains the response from method ContainerAppsClient.Delete.
type ContainerAppsClientGetOptions ¶
type ContainerAppsClientGetOptions struct { }
ContainerAppsClientGetOptions contains the optional parameters for the ContainerAppsClient.Get method.
type ContainerAppsClientGetResponse ¶
type ContainerAppsClientGetResponse struct {
ContainerApp
}
ContainerAppsClientGetResponse contains the response from method ContainerAppsClient.Get.
type ContainerAppsClientListByResourceGroupOptions ¶
type ContainerAppsClientListByResourceGroupOptions struct { }
ContainerAppsClientListByResourceGroupOptions contains the optional parameters for the ContainerAppsClient.ListByResourceGroup method.
type ContainerAppsClientListByResourceGroupResponse ¶
type ContainerAppsClientListByResourceGroupResponse struct {
ContainerAppCollection
}
ContainerAppsClientListByResourceGroupResponse contains the response from method ContainerAppsClient.ListByResourceGroup.
type ContainerAppsClientListBySubscriptionOptions ¶
type ContainerAppsClientListBySubscriptionOptions struct { }
ContainerAppsClientListBySubscriptionOptions contains the optional parameters for the ContainerAppsClient.ListBySubscription method.
type ContainerAppsClientListBySubscriptionResponse ¶
type ContainerAppsClientListBySubscriptionResponse struct {
ContainerAppCollection
}
ContainerAppsClientListBySubscriptionResponse contains the response from method ContainerAppsClient.ListBySubscription.
type ContainerAppsClientListCustomHostNameAnalysisOptions ¶
type ContainerAppsClientListCustomHostNameAnalysisOptions struct { // Custom hostname. CustomHostname *string }
ContainerAppsClientListCustomHostNameAnalysisOptions contains the optional parameters for the ContainerAppsClient.ListCustomHostNameAnalysis method.
type ContainerAppsClientListCustomHostNameAnalysisResponse ¶
type ContainerAppsClientListCustomHostNameAnalysisResponse struct {
CustomHostnameAnalysisResult
}
ContainerAppsClientListCustomHostNameAnalysisResponse contains the response from method ContainerAppsClient.ListCustomHostNameAnalysis.
type ContainerAppsClientListSecretsOptions ¶
type ContainerAppsClientListSecretsOptions struct { }
ContainerAppsClientListSecretsOptions contains the optional parameters for the ContainerAppsClient.ListSecrets method.
type ContainerAppsClientListSecretsResponse ¶
type ContainerAppsClientListSecretsResponse struct {
SecretsCollection
}
ContainerAppsClientListSecretsResponse contains the response from method ContainerAppsClient.ListSecrets.
type ContainerAppsClientUpdateOptions ¶
type ContainerAppsClientUpdateOptions struct { }
ContainerAppsClientUpdateOptions contains the optional parameters for the ContainerAppsClient.Update method.
type ContainerAppsClientUpdateResponse ¶
type ContainerAppsClientUpdateResponse struct {
ContainerApp
}
ContainerAppsClientUpdateResponse contains the response from method ContainerAppsClient.Update.
type ContainerAppsRevisionReplicasClient ¶
type ContainerAppsRevisionReplicasClient struct {
// contains filtered or unexported fields
}
ContainerAppsRevisionReplicasClient contains the methods for the ContainerAppsRevisionReplicas group. Don't use this type directly, use NewContainerAppsRevisionReplicasClient() instead.
func NewContainerAppsRevisionReplicasClient ¶
func NewContainerAppsRevisionReplicasClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsRevisionReplicasClient, error)
NewContainerAppsRevisionReplicasClient creates a new instance of ContainerAppsRevisionReplicasClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ContainerAppsRevisionReplicasClient) GetReplica ¶
func (client *ContainerAppsRevisionReplicasClient) GetReplica(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, name string, options *ContainerAppsRevisionReplicasClientGetReplicaOptions) (ContainerAppsRevisionReplicasClientGetReplicaResponse, error)
GetReplica - Get a replica for a Container App Revision. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. revisionName - Name of the Container App Revision. name - Name of the Container App Revision Replica. options - ContainerAppsRevisionReplicasClientGetReplicaOptions contains the optional parameters for the ContainerAppsRevisionReplicasClient.GetReplica method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Replicas_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsRevisionReplicasClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.GetReplica(ctx, "<resource-group-name>", "<container-app-name>", "<revision-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContainerAppsRevisionReplicasClient) ListReplicas ¶
func (client *ContainerAppsRevisionReplicasClient) ListReplicas(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionReplicasClientListReplicasOptions) (ContainerAppsRevisionReplicasClientListReplicasResponse, error)
ListReplicas - List replicas for a Container App Revision. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. revisionName - Name of the Container App Revision. options - ContainerAppsRevisionReplicasClientListReplicasOptions contains the optional parameters for the ContainerAppsRevisionReplicasClient.ListReplicas method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Replicas_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsRevisionReplicasClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.ListReplicas(ctx, "<resource-group-name>", "<container-app-name>", "<revision-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type ContainerAppsRevisionReplicasClientGetReplicaOptions ¶
type ContainerAppsRevisionReplicasClientGetReplicaOptions struct { }
ContainerAppsRevisionReplicasClientGetReplicaOptions contains the optional parameters for the ContainerAppsRevisionReplicasClient.GetReplica method.
type ContainerAppsRevisionReplicasClientGetReplicaResponse ¶
type ContainerAppsRevisionReplicasClientGetReplicaResponse struct {
Replica
}
ContainerAppsRevisionReplicasClientGetReplicaResponse contains the response from method ContainerAppsRevisionReplicasClient.GetReplica.
type ContainerAppsRevisionReplicasClientListReplicasOptions ¶
type ContainerAppsRevisionReplicasClientListReplicasOptions struct { }
ContainerAppsRevisionReplicasClientListReplicasOptions contains the optional parameters for the ContainerAppsRevisionReplicasClient.ListReplicas method.
type ContainerAppsRevisionReplicasClientListReplicasResponse ¶
type ContainerAppsRevisionReplicasClientListReplicasResponse struct {
ReplicaCollection
}
ContainerAppsRevisionReplicasClientListReplicasResponse contains the response from method ContainerAppsRevisionReplicasClient.ListReplicas.
type ContainerAppsRevisionsClient ¶
type ContainerAppsRevisionsClient struct {
// contains filtered or unexported fields
}
ContainerAppsRevisionsClient contains the methods for the ContainerAppsRevisions group. Don't use this type directly, use NewContainerAppsRevisionsClient() instead.
func NewContainerAppsRevisionsClient ¶
func NewContainerAppsRevisionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsRevisionsClient, error)
NewContainerAppsRevisionsClient creates a new instance of ContainerAppsRevisionsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ContainerAppsRevisionsClient) ActivateRevision ¶
func (client *ContainerAppsRevisionsClient) ActivateRevision(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientActivateRevisionOptions) (ContainerAppsRevisionsClientActivateRevisionResponse, error)
ActivateRevision - Activates a revision for a Container App If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. name - Name of the Container App Revision. options - ContainerAppsRevisionsClientActivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.ActivateRevision method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Activate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsRevisionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.ActivateRevision(ctx, "<resource-group-name>", "<container-app-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*ContainerAppsRevisionsClient) DeactivateRevision ¶
func (client *ContainerAppsRevisionsClient) DeactivateRevision(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientDeactivateRevisionOptions) (ContainerAppsRevisionsClientDeactivateRevisionResponse, error)
DeactivateRevision - Deactivates a revision for a Container App If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. name - Name of the Container App Revision. options - ContainerAppsRevisionsClientDeactivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.DeactivateRevision method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Deactivate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsRevisionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.DeactivateRevision(ctx, "<resource-group-name>", "<container-app-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*ContainerAppsRevisionsClient) GetRevision ¶
func (client *ContainerAppsRevisionsClient) GetRevision(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientGetRevisionOptions) (ContainerAppsRevisionsClientGetRevisionResponse, error)
GetRevision - Get a revision of a Container App. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. name - Name of the Container App Revision. options - ContainerAppsRevisionsClientGetRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.GetRevision method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsRevisionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.GetRevision(ctx, "<resource-group-name>", "<container-app-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContainerAppsRevisionsClient) ListRevisions ¶
func (client *ContainerAppsRevisionsClient) ListRevisions(resourceGroupName string, containerAppName string, options *ContainerAppsRevisionsClientListRevisionsOptions) *runtime.Pager[ContainerAppsRevisionsClientListRevisionsResponse]
ListRevisions - Get the Revisions for a given Container App. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App for which Revisions are needed. options - ContainerAppsRevisionsClientListRevisionsOptions contains the optional parameters for the ContainerAppsRevisionsClient.ListRevisions method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsRevisionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListRevisions("<resource-group-name>", "<container-app-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ContainerAppsRevisionsClient) RestartRevision ¶
func (client *ContainerAppsRevisionsClient) RestartRevision(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientRestartRevisionOptions) (ContainerAppsRevisionsClientRestartRevisionResponse, error)
RestartRevision - Restarts a revision for a Container App If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. name - Name of the Container App Revision. options - ContainerAppsRevisionsClientRestartRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.RestartRevision method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Restart.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsRevisionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.RestartRevision(ctx, "<resource-group-name>", "<container-app-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
type ContainerAppsRevisionsClientActivateRevisionOptions ¶
type ContainerAppsRevisionsClientActivateRevisionOptions struct { }
ContainerAppsRevisionsClientActivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.ActivateRevision method.
type ContainerAppsRevisionsClientActivateRevisionResponse ¶
type ContainerAppsRevisionsClientActivateRevisionResponse struct { }
ContainerAppsRevisionsClientActivateRevisionResponse contains the response from method ContainerAppsRevisionsClient.ActivateRevision.
type ContainerAppsRevisionsClientDeactivateRevisionOptions ¶
type ContainerAppsRevisionsClientDeactivateRevisionOptions struct { }
ContainerAppsRevisionsClientDeactivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.DeactivateRevision method.
type ContainerAppsRevisionsClientDeactivateRevisionResponse ¶
type ContainerAppsRevisionsClientDeactivateRevisionResponse struct { }
ContainerAppsRevisionsClientDeactivateRevisionResponse contains the response from method ContainerAppsRevisionsClient.DeactivateRevision.
type ContainerAppsRevisionsClientGetRevisionOptions ¶
type ContainerAppsRevisionsClientGetRevisionOptions struct { }
ContainerAppsRevisionsClientGetRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.GetRevision method.
type ContainerAppsRevisionsClientGetRevisionResponse ¶
type ContainerAppsRevisionsClientGetRevisionResponse struct {
Revision
}
ContainerAppsRevisionsClientGetRevisionResponse contains the response from method ContainerAppsRevisionsClient.GetRevision.
type ContainerAppsRevisionsClientListRevisionsOptions ¶
type ContainerAppsRevisionsClientListRevisionsOptions struct { }
ContainerAppsRevisionsClientListRevisionsOptions contains the optional parameters for the ContainerAppsRevisionsClient.ListRevisions method.
type ContainerAppsRevisionsClientListRevisionsResponse ¶
type ContainerAppsRevisionsClientListRevisionsResponse struct {
RevisionCollection
}
ContainerAppsRevisionsClientListRevisionsResponse contains the response from method ContainerAppsRevisionsClient.ListRevisions.
type ContainerAppsRevisionsClientRestartRevisionOptions ¶
type ContainerAppsRevisionsClientRestartRevisionOptions struct { }
ContainerAppsRevisionsClientRestartRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.RestartRevision method.
type ContainerAppsRevisionsClientRestartRevisionResponse ¶
type ContainerAppsRevisionsClientRestartRevisionResponse struct { }
ContainerAppsRevisionsClientRestartRevisionResponse contains the response from method ContainerAppsRevisionsClient.RestartRevision.
type ContainerAppsSourceControlsClient ¶
type ContainerAppsSourceControlsClient struct {
// contains filtered or unexported fields
}
ContainerAppsSourceControlsClient contains the methods for the ContainerAppsSourceControls group. Don't use this type directly, use NewContainerAppsSourceControlsClient() instead.
func NewContainerAppsSourceControlsClient ¶
func NewContainerAppsSourceControlsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsSourceControlsClient, error)
NewContainerAppsSourceControlsClient creates a new instance of ContainerAppsSourceControlsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ContainerAppsSourceControlsClient) BeginCreateOrUpdate ¶
func (client *ContainerAppsSourceControlsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, containerAppName string, name string, sourceControlEnvelope SourceControl, options *ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions) (*armruntime.Poller[ContainerAppsSourceControlsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Description for Create or update the SourceControl for a Container App. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. name - Name of the Container App SourceControl. sourceControlEnvelope - Properties used to create a Container App SourceControl options - ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsSourceControlsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsSourceControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<container-app-name>", "<name>", armapp.SourceControl{ Properties: &armapp.SourceControlProperties{ Branch: to.Ptr("<branch>"), GithubActionConfiguration: &armapp.GithubActionConfiguration{ AzureCredentials: &armapp.AzureCredentials{ ClientID: to.Ptr("<client-id>"), ClientSecret: to.Ptr("<client-secret>"), TenantID: to.Ptr("<tenant-id>"), }, RegistryInfo: &armapp.RegistryInfo{ RegistryPassword: to.Ptr("<registry-password>"), RegistryURL: to.Ptr("<registry-url>"), RegistryUserName: to.Ptr("<registry-user-name>"), }, }, RepoURL: to.Ptr("<repo-url>"), }, }, &armapp.ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContainerAppsSourceControlsClient) BeginDelete ¶
func (client *ContainerAppsSourceControlsClient) BeginDelete(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsSourceControlsClientBeginDeleteOptions) (*armruntime.Poller[ContainerAppsSourceControlsClientDeleteResponse], error)
BeginDelete - Description for Delete a Container App SourceControl. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. name - Name of the Container App SourceControl. options - ContainerAppsSourceControlsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsSourceControlsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_Delete.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsSourceControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<container-app-name>", "<name>", &armapp.ContainerAppsSourceControlsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*ContainerAppsSourceControlsClient) Get ¶
func (client *ContainerAppsSourceControlsClient) Get(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsSourceControlsClientGetOptions) (ContainerAppsSourceControlsClientGetResponse, error)
Get - Get a SourceControl of a Container App. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. name - Name of the Container App SourceControl. options - ContainerAppsSourceControlsClientGetOptions contains the optional parameters for the ContainerAppsSourceControlsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsSourceControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<container-app-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContainerAppsSourceControlsClient) ListByContainerApp ¶
func (client *ContainerAppsSourceControlsClient) ListByContainerApp(resourceGroupName string, containerAppName string, options *ContainerAppsSourceControlsClientListByContainerAppOptions) *runtime.Pager[ContainerAppsSourceControlsClientListByContainerAppResponse]
ListByContainerApp - Get the Container App SourceControls in a given resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. containerAppName - Name of the Container App. options - ContainerAppsSourceControlsClientListByContainerAppOptions contains the optional parameters for the ContainerAppsSourceControlsClient.ListByContainerApp method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_ListByContainer.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewContainerAppsSourceControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByContainerApp("<resource-group-name>", "<container-app-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions ¶
type ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsSourceControlsClient.BeginCreateOrUpdate method.
type ContainerAppsSourceControlsClientBeginDeleteOptions ¶
type ContainerAppsSourceControlsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ContainerAppsSourceControlsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsSourceControlsClient.BeginDelete method.
type ContainerAppsSourceControlsClientCreateOrUpdateResponse ¶
type ContainerAppsSourceControlsClientCreateOrUpdateResponse struct {
SourceControl
}
ContainerAppsSourceControlsClientCreateOrUpdateResponse contains the response from method ContainerAppsSourceControlsClient.CreateOrUpdate.
type ContainerAppsSourceControlsClientDeleteResponse ¶
type ContainerAppsSourceControlsClientDeleteResponse struct { }
ContainerAppsSourceControlsClientDeleteResponse contains the response from method ContainerAppsSourceControlsClient.Delete.
type ContainerAppsSourceControlsClientGetOptions ¶
type ContainerAppsSourceControlsClientGetOptions struct { }
ContainerAppsSourceControlsClientGetOptions contains the optional parameters for the ContainerAppsSourceControlsClient.Get method.
type ContainerAppsSourceControlsClientGetResponse ¶
type ContainerAppsSourceControlsClientGetResponse struct {
SourceControl
}
ContainerAppsSourceControlsClientGetResponse contains the response from method ContainerAppsSourceControlsClient.Get.
type ContainerAppsSourceControlsClientListByContainerAppOptions ¶
type ContainerAppsSourceControlsClientListByContainerAppOptions struct { }
ContainerAppsSourceControlsClientListByContainerAppOptions contains the optional parameters for the ContainerAppsSourceControlsClient.ListByContainerApp method.
type ContainerAppsSourceControlsClientListByContainerAppResponse ¶
type ContainerAppsSourceControlsClientListByContainerAppResponse struct {
SourceControlCollection
}
ContainerAppsSourceControlsClientListByContainerAppResponse contains the response from method ContainerAppsSourceControlsClient.ListByContainerApp.
type ContainerResources ¶
type ContainerResources struct { // Required CPU in cores, e.g. 0.5 CPU *float64 `json:"cpu,omitempty"` // Required memory, e.g. "250Mb" Memory *string `json:"memory,omitempty"` // READ-ONLY; Ephemeral Storage, e.g. "1Gi" EphemeralStorage *string `json:"ephemeralStorage,omitempty" azure:"ro"` }
ContainerResources - Container App container resource requirements.
type CookieExpiration ¶
type CookieExpiration struct { // The convention used when determining the session cookie's expiration. Convention *CookieExpirationConvention `json:"convention,omitempty"` // The time after the request is made when the session cookie should expire. TimeToExpiration *string `json:"timeToExpiration,omitempty"` }
CookieExpiration - The configuration settings of the session cookie's expiration.
type CookieExpirationConvention ¶
type CookieExpirationConvention string
CookieExpirationConvention - The convention used when determining the session cookie's expiration.
const ( CookieExpirationConventionFixedTime CookieExpirationConvention = "FixedTime" CookieExpirationConventionIdentityProviderDerived CookieExpirationConvention = "IdentityProviderDerived" )
func PossibleCookieExpirationConventionValues ¶
func PossibleCookieExpirationConventionValues() []CookieExpirationConvention
PossibleCookieExpirationConventionValues returns the possible values for the CookieExpirationConvention const type.
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 CustomDomain ¶
type CustomDomain struct { // REQUIRED; Resource Id of the Certificate to be bound to this hostname. Must exist in the Managed Environment. CertificateID *string `json:"certificateId,omitempty"` // REQUIRED; Hostname. Name *string `json:"name,omitempty"` // Custom Domain binding type. BindingType *BindingType `json:"bindingType,omitempty"` }
CustomDomain - Custom Domain of a Container App
type CustomHostnameAnalysisResult ¶
type CustomHostnameAnalysisResult struct { // CustomHostnameAnalysisResult resource specific properties Properties *CustomHostnameAnalysisResultProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
CustomHostnameAnalysisResult - Custom domain analysis.
type CustomHostnameAnalysisResultProperties ¶
type CustomHostnameAnalysisResultProperties struct { // A records visible for this hostname. ARecords []*string `json:"aRecords,omitempty"` // Alternate CName records visible for this hostname. AlternateCNameRecords []*string `json:"alternateCNameRecords,omitempty"` // Alternate TXT records visible for this hostname. AlternateTxtRecords []*string `json:"alternateTxtRecords,omitempty"` // CName records visible for this hostname. CNameRecords []*string `json:"cNameRecords,omitempty"` // TXT records visible for this hostname. TxtRecords []*string `json:"txtRecords,omitempty"` // READ-ONLY; Name of the conflicting Container App on the Managed Environment if it's within the same subscription. ConflictingContainerAppResourceID *string `json:"conflictingContainerAppResourceId,omitempty" azure:"ro"` // READ-ONLY; Raw failure information if DNS verification fails. CustomDomainVerificationFailureInfo *DefaultErrorResponse `json:"customDomainVerificationFailureInfo,omitempty" azure:"ro"` // READ-ONLY; DNS verification test result. CustomDomainVerificationTest *DNSVerificationTestResult `json:"customDomainVerificationTest,omitempty" azure:"ro"` // READ-ONLY; true if there is a conflict on the Container App's managed environment; otherwise, false. HasConflictOnManagedEnvironment *bool `json:"hasConflictOnManagedEnvironment,omitempty" azure:"ro"` // READ-ONLY; Host name that was analyzed HostName *string `json:"hostName,omitempty" azure:"ro"` // READ-ONLY; true if hostname is already verified; otherwise, false. IsHostnameAlreadyVerified *bool `json:"isHostnameAlreadyVerified,omitempty" azure:"ro"` }
CustomHostnameAnalysisResultProperties - CustomHostnameAnalysisResult resource specific properties
func (CustomHostnameAnalysisResultProperties) MarshalJSON ¶
func (c CustomHostnameAnalysisResultProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomHostnameAnalysisResultProperties.
type CustomOpenIDConnectProvider ¶
type CustomOpenIDConnectProvider struct { // false if the custom Open ID provider provider should not be enabled; otherwise, true. Enabled *bool `json:"enabled,omitempty"` // The configuration settings of the login flow of the custom Open ID Connect provider. Login *OpenIDConnectLogin `json:"login,omitempty"` // The configuration settings of the app registration for the custom Open ID Connect provider. Registration *OpenIDConnectRegistration `json:"registration,omitempty"` }
CustomOpenIDConnectProvider - The configuration settings of the custom Open ID Connect provider.
type CustomScaleRule ¶
type CustomScaleRule struct { // Authentication secrets for the custom scale rule. Auth []*ScaleRuleAuth `json:"auth,omitempty"` // Metadata properties to describe custom scale rule. Metadata map[string]*string `json:"metadata,omitempty"` // Type of the custom scale rule eg: azure-servicebus, redis etc. Type *string `json:"type,omitempty"` }
CustomScaleRule - Container App container Custom scaling rule.
func (CustomScaleRule) MarshalJSON ¶
func (c CustomScaleRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomScaleRule.
type DNSVerificationTestResult ¶
type DNSVerificationTestResult string
DNSVerificationTestResult - DNS verification test result.
const ( DNSVerificationTestResultPassed DNSVerificationTestResult = "Passed" DNSVerificationTestResultFailed DNSVerificationTestResult = "Failed" DNSVerificationTestResultSkipped DNSVerificationTestResult = "Skipped" )
func PossibleDNSVerificationTestResultValues ¶
func PossibleDNSVerificationTestResultValues() []DNSVerificationTestResult
PossibleDNSVerificationTestResultValues returns the possible values for the DNSVerificationTestResult const type.
type Dapr ¶
type Dapr struct { // Dapr application identifier AppID *string `json:"appId,omitempty"` // Tells Dapr which port your application is listening on AppPort *int32 `json:"appPort,omitempty"` // Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http AppProtocol *AppProtocol `json:"appProtocol,omitempty"` // Boolean indicating if the Dapr side car is enabled Enabled *bool `json:"enabled,omitempty"` }
Dapr - Container App Dapr configuration.
type DaprComponent ¶
type DaprComponent struct { // Dapr Component resource specific properties Properties *DaprComponentProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
DaprComponent - Dapr Component.
type DaprComponentProperties ¶
type DaprComponentProperties struct { // Component type ComponentType *string `json:"componentType,omitempty"` // Boolean describing if the component errors are ignores IgnoreErrors *bool `json:"ignoreErrors,omitempty"` // Initialization timeout InitTimeout *string `json:"initTimeout,omitempty"` // Component metadata Metadata []*DaprMetadata `json:"metadata,omitempty"` // Names of container apps that can use this Dapr component Scopes []*string `json:"scopes,omitempty"` // Collection of secrets used by a Dapr component Secrets []*Secret `json:"secrets,omitempty"` // Component version Version *string `json:"version,omitempty"` }
DaprComponentProperties - Dapr Component resource specific properties
func (DaprComponentProperties) MarshalJSON ¶
func (d DaprComponentProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DaprComponentProperties.
type DaprComponentsClient ¶
type DaprComponentsClient struct {
// contains filtered or unexported fields
}
DaprComponentsClient contains the methods for the DaprComponents group. Don't use this type directly, use NewDaprComponentsClient() instead.
func NewDaprComponentsClient ¶
func NewDaprComponentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DaprComponentsClient, error)
NewDaprComponentsClient creates a new instance of DaprComponentsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DaprComponentsClient) CreateOrUpdate ¶
func (client *DaprComponentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, name string, daprComponentEnvelope DaprComponent, options *DaprComponentsClientCreateOrUpdateOptions) (DaprComponentsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates a Dapr Component in a Managed Environment. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. environmentName - Name of the Managed Environment. name - Name of the Dapr Component. daprComponentEnvelope - Configuration details of the Dapr Component. options - DaprComponentsClientCreateOrUpdateOptions contains the optional parameters for the DaprComponentsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewDaprComponentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-group-name>", "<environment-name>", "<name>", armapp.DaprComponent{ Properties: &armapp.DaprComponentProperties{ ComponentType: to.Ptr("<component-type>"), IgnoreErrors: to.Ptr(false), InitTimeout: to.Ptr("<init-timeout>"), Metadata: []*armapp.DaprMetadata{ { Name: to.Ptr("<name>"), Value: to.Ptr("<value>"), }, { Name: to.Ptr("<name>"), Value: to.Ptr("<value>"), }, { Name: to.Ptr("<name>"), Value: to.Ptr("<value>"), }, { Name: to.Ptr("<name>"), SecretRef: to.Ptr("<secret-ref>"), }}, Scopes: []*string{ to.Ptr("container-app-1"), to.Ptr("container-app-2")}, Secrets: []*armapp.Secret{ { Name: to.Ptr("<name>"), Value: to.Ptr("<value>"), }}, Version: to.Ptr("<version>"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*DaprComponentsClient) Delete ¶
func (client *DaprComponentsClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DaprComponentsClientDeleteOptions) (DaprComponentsClientDeleteResponse, error)
Delete - Delete a Dapr Component from a Managed Environment. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. environmentName - Name of the Managed Environment. name - Name of the Dapr Component. options - DaprComponentsClientDeleteOptions contains the optional parameters for the DaprComponentsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewDaprComponentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<environment-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*DaprComponentsClient) Get ¶
func (client *DaprComponentsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DaprComponentsClientGetOptions) (DaprComponentsClientGetResponse, error)
Get - Get a dapr component. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. environmentName - Name of the Managed Environment. name - Name of the Dapr Component. options - DaprComponentsClientGetOptions contains the optional parameters for the DaprComponentsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewDaprComponentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<environment-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*DaprComponentsClient) List ¶
func (client *DaprComponentsClient) List(resourceGroupName string, environmentName string, options *DaprComponentsClientListOptions) *runtime.Pager[DaprComponentsClientListResponse]
List - Get the Dapr Components for a managed environment. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. environmentName - Name of the Managed Environment. options - DaprComponentsClientListOptions contains the optional parameters for the DaprComponentsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewDaprComponentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<resource-group-name>", "<environment-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type DaprComponentsClientCreateOrUpdateOptions ¶
type DaprComponentsClientCreateOrUpdateOptions struct { }
DaprComponentsClientCreateOrUpdateOptions contains the optional parameters for the DaprComponentsClient.CreateOrUpdate method.
type DaprComponentsClientCreateOrUpdateResponse ¶
type DaprComponentsClientCreateOrUpdateResponse struct {
DaprComponent
}
DaprComponentsClientCreateOrUpdateResponse contains the response from method DaprComponentsClient.CreateOrUpdate.
type DaprComponentsClientDeleteOptions ¶
type DaprComponentsClientDeleteOptions struct { }
DaprComponentsClientDeleteOptions contains the optional parameters for the DaprComponentsClient.Delete method.
type DaprComponentsClientDeleteResponse ¶
type DaprComponentsClientDeleteResponse struct { }
DaprComponentsClientDeleteResponse contains the response from method DaprComponentsClient.Delete.
type DaprComponentsClientGetOptions ¶
type DaprComponentsClientGetOptions struct { }
DaprComponentsClientGetOptions contains the optional parameters for the DaprComponentsClient.Get method.
type DaprComponentsClientGetResponse ¶
type DaprComponentsClientGetResponse struct {
DaprComponent
}
DaprComponentsClientGetResponse contains the response from method DaprComponentsClient.Get.
type DaprComponentsClientListOptions ¶
type DaprComponentsClientListOptions struct { }
DaprComponentsClientListOptions contains the optional parameters for the DaprComponentsClient.List method.
type DaprComponentsClientListResponse ¶
type DaprComponentsClientListResponse struct {
DaprComponentsCollection
}
DaprComponentsClientListResponse contains the response from method DaprComponentsClient.List.
type DaprComponentsCollection ¶
type DaprComponentsCollection struct { // REQUIRED; Collection of resources. Value []*DaprComponent `json:"value,omitempty"` // READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
DaprComponentsCollection - Dapr Components ARM resource.
func (DaprComponentsCollection) MarshalJSON ¶
func (d DaprComponentsCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DaprComponentsCollection.
type DaprMetadata ¶
type DaprMetadata struct { // Metadata property name. Name *string `json:"name,omitempty"` // Name of the Dapr Component secret from which to pull the metadata property value. SecretRef *string `json:"secretRef,omitempty"` // Metadata property value. Value *string `json:"value,omitempty"` }
DaprMetadata - Dapr component metadata.
type DefaultAuthorizationPolicy ¶
type DefaultAuthorizationPolicy struct { // The configuration settings of the Azure Active Directory allowed applications. AllowedApplications []*string `json:"allowedApplications,omitempty"` // The configuration settings of the Azure Active Directory allowed principals. AllowedPrincipals *AllowedPrincipals `json:"allowedPrincipals,omitempty"` }
DefaultAuthorizationPolicy - The configuration settings of the Azure Active Directory default authorization policy.
func (DefaultAuthorizationPolicy) MarshalJSON ¶
func (d DefaultAuthorizationPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultAuthorizationPolicy.
type DefaultErrorResponse ¶
type DefaultErrorResponse struct { // READ-ONLY; Error model. Error *DefaultErrorResponseError `json:"error,omitempty" azure:"ro"` }
DefaultErrorResponse - App Service error response.
type DefaultErrorResponseError ¶
type DefaultErrorResponseError struct { // Details or the error Details []*DefaultErrorResponseErrorDetailsItem `json:"details,omitempty"` // READ-ONLY; Standardized string to programmatically identify the error. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; More information to debug error. Innererror *string `json:"innererror,omitempty" azure:"ro"` // READ-ONLY; Detailed error description and debugging information. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; Detailed error description and debugging information. Target *string `json:"target,omitempty" azure:"ro"` }
DefaultErrorResponseError - Error model.
func (DefaultErrorResponseError) MarshalJSON ¶
func (d DefaultErrorResponseError) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefaultErrorResponseError.
type DefaultErrorResponseErrorDetailsItem ¶
type DefaultErrorResponseErrorDetailsItem struct { // READ-ONLY; Standardized string to programmatically identify the error. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Detailed error description and debugging information. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; Detailed error description and debugging information. Target *string `json:"target,omitempty" azure:"ro"` }
DefaultErrorResponseErrorDetailsItem - Detailed errors.
type EnvironmentProvisioningState ¶
type EnvironmentProvisioningState string
EnvironmentProvisioningState - Provisioning state of the Environment.
const ( EnvironmentProvisioningStateCanceled EnvironmentProvisioningState = "Canceled" EnvironmentProvisioningStateFailed EnvironmentProvisioningState = "Failed" EnvironmentProvisioningStateInfrastructureSetupComplete EnvironmentProvisioningState = "InfrastructureSetupComplete" EnvironmentProvisioningStateInfrastructureSetupInProgress EnvironmentProvisioningState = "InfrastructureSetupInProgress" EnvironmentProvisioningStateInitializationInProgress EnvironmentProvisioningState = "InitializationInProgress" EnvironmentProvisioningStateScheduledForDelete EnvironmentProvisioningState = "ScheduledForDelete" EnvironmentProvisioningStateSucceeded EnvironmentProvisioningState = "Succeeded" EnvironmentProvisioningStateUpgradeFailed EnvironmentProvisioningState = "UpgradeFailed" EnvironmentProvisioningStateUpgradeRequested EnvironmentProvisioningState = "UpgradeRequested" EnvironmentProvisioningStateWaiting EnvironmentProvisioningState = "Waiting" )
func PossibleEnvironmentProvisioningStateValues ¶
func PossibleEnvironmentProvisioningStateValues() []EnvironmentProvisioningState
PossibleEnvironmentProvisioningStateValues returns the possible values for the EnvironmentProvisioningState const type.
type EnvironmentVar ¶
type EnvironmentVar struct { // Environment variable name. Name *string `json:"name,omitempty"` // Name of the Container App secret from which to pull the environment variable value. SecretRef *string `json:"secretRef,omitempty"` // Non-secret environment variable value. Value *string `json:"value,omitempty"` }
EnvironmentVar - Container App container environment variable.
type Facebook ¶
type Facebook struct { // false if the Facebook provider should not be enabled despite the set registration; otherwise, true. Enabled *bool `json:"enabled,omitempty"` // The version of the Facebook api to be used while logging in. GraphAPIVersion *string `json:"graphApiVersion,omitempty"` // The configuration settings of the login flow. Login *LoginScopes `json:"login,omitempty"` // The configuration settings of the app registration for the Facebook provider. Registration *Registration `json:"registration,omitempty"` }
Facebook - The configuration settings of the Facebook provider.
type ForwardProxy ¶
type ForwardProxy struct { // The convention used to determine the url of the request made. Convention *ForwardProxyConvention `json:"convention,omitempty"` // The name of the header containing the host of the request. CustomHostHeaderName *string `json:"customHostHeaderName,omitempty"` // The name of the header containing the scheme of the request. CustomProtoHeaderName *string `json:"customProtoHeaderName,omitempty"` }
ForwardProxy - The configuration settings of a forward proxy used to make the requests.
type ForwardProxyConvention ¶
type ForwardProxyConvention string
ForwardProxyConvention - The convention used to determine the url of the request made.
const ( ForwardProxyConventionNoProxy ForwardProxyConvention = "NoProxy" ForwardProxyConventionStandard ForwardProxyConvention = "Standard" ForwardProxyConventionCustom ForwardProxyConvention = "Custom" )
func PossibleForwardProxyConventionValues ¶
func PossibleForwardProxyConventionValues() []ForwardProxyConvention
PossibleForwardProxyConventionValues returns the possible values for the ForwardProxyConvention const type.
type GitHub ¶
type GitHub struct { // false if the GitHub provider should not be enabled despite the set registration; otherwise, true. Enabled *bool `json:"enabled,omitempty"` // The configuration settings of the login flow. Login *LoginScopes `json:"login,omitempty"` // The configuration settings of the app registration for the GitHub provider. Registration *ClientRegistration `json:"registration,omitempty"` }
GitHub - The configuration settings of the GitHub provider.
type GithubActionConfiguration ¶
type GithubActionConfiguration struct { // AzureCredentials configurations. AzureCredentials *AzureCredentials `json:"azureCredentials,omitempty"` // Docker file path DockerfilePath *string `json:"dockerfilePath,omitempty"` // Operation system OS *string `json:"os,omitempty"` // Code or Image PublishType *string `json:"publishType,omitempty"` // Registry configurations. RegistryInfo *RegistryInfo `json:"registryInfo,omitempty"` // Runtime stack RuntimeStack *string `json:"runtimeStack,omitempty"` // Runtime Version RuntimeVersion *string `json:"runtimeVersion,omitempty"` }
GithubActionConfiguration - Configuration properties that define the mutable settings of a Container App SourceControl
type GlobalValidation ¶
type GlobalValidation struct { // The paths for which unauthenticated flow would not be redirected to the login page. ExcludedPaths []*string `json:"excludedPaths,omitempty"` // The default authentication provider to use when multiple providers are configured. This setting is only needed if multiple // providers are configured and the unauthenticated client action is set to // "RedirectToLoginPage". RedirectToProvider *string `json:"redirectToProvider,omitempty"` // The action to take when an unauthenticated client attempts to access the app. UnauthenticatedClientAction *UnauthenticatedClientActionV2 `json:"unauthenticatedClientAction,omitempty"` }
GlobalValidation - The configuration settings that determines the validation flow of users using ContainerApp Service Authentication/Authorization.
func (GlobalValidation) MarshalJSON ¶
func (g GlobalValidation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GlobalValidation.
type Google ¶
type Google struct { // false if the Google provider should not be enabled despite the set registration; otherwise, true. Enabled *bool `json:"enabled,omitempty"` // The configuration settings of the login flow. Login *LoginScopes `json:"login,omitempty"` // The configuration settings of the app registration for the Google provider. Registration *ClientRegistration `json:"registration,omitempty"` // The configuration settings of the Azure Active Directory token validation flow. Validation *AllowedAudiencesValidation `json:"validation,omitempty"` }
Google - The configuration settings of the Google provider.
type HTTPScaleRule ¶
type HTTPScaleRule struct { // Authentication secrets for the custom scale rule. Auth []*ScaleRuleAuth `json:"auth,omitempty"` // Metadata properties to describe http scale rule. Metadata map[string]*string `json:"metadata,omitempty"` }
HTTPScaleRule - Container App container Custom scaling rule.
func (HTTPScaleRule) MarshalJSON ¶
func (h HTTPScaleRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HTTPScaleRule.
type HTTPSettings ¶
type HTTPSettings struct { // The configuration settings of a forward proxy used to make the requests. ForwardProxy *ForwardProxy `json:"forwardProxy,omitempty"` // false if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, true. RequireHTTPS *bool `json:"requireHttps,omitempty"` // The configuration settings of the paths HTTP requests. Routes *HTTPSettingsRoutes `json:"routes,omitempty"` }
HTTPSettings - The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization.
type HTTPSettingsRoutes ¶
type HTTPSettingsRoutes struct { // The prefix that should precede all the authentication/authorization paths. APIPrefix *string `json:"apiPrefix,omitempty"` }
HTTPSettingsRoutes - The configuration settings of the paths HTTP requests.
type IdentityProviders ¶
type IdentityProviders struct { // The configuration settings of the Apple provider. Apple *Apple `json:"apple,omitempty"` // The configuration settings of the Azure Active directory provider. AzureActiveDirectory *AzureActiveDirectory `json:"azureActiveDirectory,omitempty"` // The configuration settings of the Azure Static Web Apps provider. AzureStaticWebApps *AzureStaticWebApps `json:"azureStaticWebApps,omitempty"` // The map of the name of the alias of each custom Open ID Connect provider to the configuration settings of the custom Open // ID Connect provider. CustomOpenIDConnectProviders map[string]*CustomOpenIDConnectProvider `json:"customOpenIdConnectProviders,omitempty"` // The configuration settings of the Facebook provider. Facebook *Facebook `json:"facebook,omitempty"` // The configuration settings of the GitHub provider. GitHub *GitHub `json:"gitHub,omitempty"` // The configuration settings of the Google provider. Google *Google `json:"google,omitempty"` // The configuration settings of the Twitter provider. Twitter *Twitter `json:"twitter,omitempty"` }
IdentityProviders - The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization.
func (IdentityProviders) MarshalJSON ¶
func (i IdentityProviders) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IdentityProviders.
type Ingress ¶
type Ingress struct { // Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS // connections AllowInsecure *bool `json:"allowInsecure,omitempty"` // custom domain bindings for Container Apps' hostnames. CustomDomains []*CustomDomain `json:"customDomains,omitempty"` // Bool indicating if app exposes an external http endpoint External *bool `json:"external,omitempty"` // Target Port in containers for traffic from ingress TargetPort *int32 `json:"targetPort,omitempty"` // Traffic weights for app's revisions Traffic []*TrafficWeight `json:"traffic,omitempty"` // Ingress transport protocol Transport *IngressTransportMethod `json:"transport,omitempty"` // READ-ONLY; Hostname. Fqdn *string `json:"fqdn,omitempty" azure:"ro"` }
Ingress - Container App Ingress configuration.
func (Ingress) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Ingress.
type IngressTransportMethod ¶
type IngressTransportMethod string
IngressTransportMethod - Ingress transport protocol
const ( IngressTransportMethodAuto IngressTransportMethod = "auto" IngressTransportMethodHTTP IngressTransportMethod = "http" IngressTransportMethodHTTP2 IngressTransportMethod = "http2" )
func PossibleIngressTransportMethodValues ¶
func PossibleIngressTransportMethodValues() []IngressTransportMethod
PossibleIngressTransportMethodValues returns the possible values for the IngressTransportMethod const type.
type JwtClaimChecks ¶
type JwtClaimChecks struct { // The list of the allowed client applications. AllowedClientApplications []*string `json:"allowedClientApplications,omitempty"` // The list of the allowed groups. AllowedGroups []*string `json:"allowedGroups,omitempty"` }
JwtClaimChecks - The configuration settings of the checks that should be made while validating the JWT Claims.
func (JwtClaimChecks) MarshalJSON ¶
func (j JwtClaimChecks) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JwtClaimChecks.
type LogAnalyticsConfiguration ¶
type LogAnalyticsConfiguration struct { // Log analytics customer id CustomerID *string `json:"customerId,omitempty"` SharedKey *string `json:"sharedKey,omitempty"` }
LogAnalyticsConfiguration - Log analytics configuration
type Login ¶
type Login struct { // External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part // of the URL is ignored. This is an advanced setting typically only needed by // Windows Store application backends. Note that URLs within the current domain are always implicitly allowed. AllowedExternalRedirectUrls []*string `json:"allowedExternalRedirectUrls,omitempty"` // The configuration settings of the session cookie's expiration. CookieExpiration *CookieExpiration `json:"cookieExpiration,omitempty"` // The configuration settings of the nonce used in the login flow. Nonce *Nonce `json:"nonce,omitempty"` // true if the fragments from the request are preserved after the login request is made; otherwise, false. PreserveURLFragmentsForLogins *bool `json:"preserveUrlFragmentsForLogins,omitempty"` // The routes that specify the endpoints used for login and logout requests. Routes *LoginRoutes `json:"routes,omitempty"` }
Login - The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.
func (Login) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Login.
type LoginRoutes ¶
type LoginRoutes struct { // The endpoint at which a logout request should be made. LogoutEndpoint *string `json:"logoutEndpoint,omitempty"` }
LoginRoutes - The routes that specify the endpoints used for login and logout requests.
type LoginScopes ¶
type LoginScopes struct { // A list of the scopes that should be requested while authenticating. Scopes []*string `json:"scopes,omitempty"` }
LoginScopes - The configuration settings of the login flow, including the scopes that should be requested.
func (LoginScopes) MarshalJSON ¶
func (l LoginScopes) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoginScopes.
type LogsConfiguration ¶
type LogsConfiguration struct { // Logs destination Destination *string `json:"destination,omitempty"` // Log Analytics configuration LogAnalyticsConfiguration *LogAnalyticsConfiguration `json:"logAnalyticsConfiguration,omitempty"` }
LogsConfiguration - Configuration of application logs
type ManagedEnvironment ¶
type ManagedEnvironment struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Managed environment resource specific properties Properties *ManagedEnvironmentProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ManagedEnvironment - An environment for hosting container apps
func (ManagedEnvironment) MarshalJSON ¶
func (m ManagedEnvironment) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedEnvironment.
type ManagedEnvironmentPatch ¶
type ManagedEnvironmentPatch struct { // Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags,omitempty"` }
ManagedEnvironmentPatch - An environment for hosting container apps
func (ManagedEnvironmentPatch) MarshalJSON ¶
func (m ManagedEnvironmentPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedEnvironmentPatch.
type ManagedEnvironmentProperties ¶
type ManagedEnvironmentProperties struct { // Cluster configuration which enables the log daemon to export app logs to a destination. Currently only "log-analytics" // is supported AppLogsConfiguration *LogsConfiguration `json:"appLogsConfiguration,omitempty"` // Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry DaprAIInstrumentationKey *string `json:"daprAIInstrumentationKey,omitempty"` // Vnet configuration for the environment VnetConfiguration *VnetConfiguration `json:"vnetConfiguration,omitempty"` // READ-ONLY; Default Domain Name for the cluster DefaultDomain *string `json:"defaultDomain,omitempty" azure:"ro"` // READ-ONLY; Any errors that occurred during deployment or deployment validation DeploymentErrors *string `json:"deploymentErrors,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the Environment. ProvisioningState *EnvironmentProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Static IP of the Environment StaticIP *string `json:"staticIp,omitempty" azure:"ro"` }
ManagedEnvironmentProperties - Managed environment resource specific properties
type ManagedEnvironmentStorage ¶
type ManagedEnvironmentStorage struct { // Storage properties Properties *ManagedEnvironmentStorageProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ManagedEnvironmentStorage - Storage resource for managedEnvironment.
type ManagedEnvironmentStorageProperties ¶
type ManagedEnvironmentStorageProperties struct { // Azure file properties AzureFile *AzureFileProperties `json:"azureFile,omitempty"` }
ManagedEnvironmentStorageProperties - Storage properties
type ManagedEnvironmentStoragesCollection ¶
type ManagedEnvironmentStoragesCollection struct { // REQUIRED; Collection of storage resources. Value []*ManagedEnvironmentStorage `json:"value,omitempty"` }
ManagedEnvironmentStoragesCollection - Collection of Storage for Environments
func (ManagedEnvironmentStoragesCollection) MarshalJSON ¶
func (m ManagedEnvironmentStoragesCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedEnvironmentStoragesCollection.
type ManagedEnvironmentsClient ¶
type ManagedEnvironmentsClient struct {
// contains filtered or unexported fields
}
ManagedEnvironmentsClient contains the methods for the ManagedEnvironments group. Don't use this type directly, use NewManagedEnvironmentsClient() instead.
func NewManagedEnvironmentsClient ¶
func NewManagedEnvironmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedEnvironmentsClient, error)
NewManagedEnvironmentsClient creates a new instance of ManagedEnvironmentsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ManagedEnvironmentsClient) BeginCreateOrUpdate ¶
func (client *ManagedEnvironmentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, environmentEnvelope ManagedEnvironment, options *ManagedEnvironmentsClientBeginCreateOrUpdateOptions) (*armruntime.Poller[ManagedEnvironmentsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a Managed Environment used to host container apps. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. name - Name of the Environment. environmentEnvelope - Configuration details of the Environment. options - ManagedEnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the ManagedEnvironmentsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewManagedEnvironmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<name>", armapp.ManagedEnvironment{ Location: to.Ptr("<location>"), Properties: &armapp.ManagedEnvironmentProperties{ AppLogsConfiguration: &armapp.LogsConfiguration{ LogAnalyticsConfiguration: &armapp.LogAnalyticsConfiguration{ CustomerID: to.Ptr("<customer-id>"), SharedKey: to.Ptr("<shared-key>"), }, }, }, }, &armapp.ManagedEnvironmentsClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ManagedEnvironmentsClient) BeginDelete ¶
func (client *ManagedEnvironmentsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, options *ManagedEnvironmentsClientBeginDeleteOptions) (*armruntime.Poller[ManagedEnvironmentsClientDeleteResponse], error)
BeginDelete - Delete a Managed Environment if it does not have any container apps. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. name - Name of the Environment. options - ManagedEnvironmentsClientBeginDeleteOptions contains the optional parameters for the ManagedEnvironmentsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_Delete.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewManagedEnvironmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<name>", &armapp.ManagedEnvironmentsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*ManagedEnvironmentsClient) Get ¶
func (client *ManagedEnvironmentsClient) Get(ctx context.Context, resourceGroupName string, name string, options *ManagedEnvironmentsClientGetOptions) (ManagedEnvironmentsClientGetResponse, error)
Get - Get the properties of a Managed Environment used to host container apps. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. name - Name of the Environment. options - ManagedEnvironmentsClientGetOptions contains the optional parameters for the ManagedEnvironmentsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewManagedEnvironmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ManagedEnvironmentsClient) ListByResourceGroup ¶
func (client *ManagedEnvironmentsClient) ListByResourceGroup(resourceGroupName string, options *ManagedEnvironmentsClientListByResourceGroupOptions) *runtime.Pager[ManagedEnvironmentsClientListByResourceGroupResponse]
ListByResourceGroup - Get all the Managed Environments in a resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - ManagedEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the ManagedEnvironmentsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewManagedEnvironmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ManagedEnvironmentsClient) ListBySubscription ¶
func (client *ManagedEnvironmentsClient) ListBySubscription(options *ManagedEnvironmentsClientListBySubscriptionOptions) *runtime.Pager[ManagedEnvironmentsClientListBySubscriptionResponse]
ListBySubscription - Get all Managed Environments for a subscription. If the operation fails it returns an *azcore.ResponseError type. options - ManagedEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the ManagedEnvironmentsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_ListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewManagedEnvironmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListBySubscription(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ManagedEnvironmentsClient) Update ¶
func (client *ManagedEnvironmentsClient) Update(ctx context.Context, resourceGroupName string, name string, environmentEnvelope ManagedEnvironmentPatch, options *ManagedEnvironmentsClientUpdateOptions) (ManagedEnvironmentsClientUpdateResponse, error)
Update - Patches a Managed Environment. Only patching of tags is supported currently If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. name - Name of the Environment. environmentEnvelope - Configuration details of the Environment. options - ManagedEnvironmentsClientUpdateOptions contains the optional parameters for the ManagedEnvironmentsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewManagedEnvironmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<resource-group-name>", "<name>", armapp.ManagedEnvironmentPatch{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type ManagedEnvironmentsClientBeginCreateOrUpdateOptions ¶
type ManagedEnvironmentsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ManagedEnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the ManagedEnvironmentsClient.BeginCreateOrUpdate method.
type ManagedEnvironmentsClientBeginDeleteOptions ¶
type ManagedEnvironmentsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ManagedEnvironmentsClientBeginDeleteOptions contains the optional parameters for the ManagedEnvironmentsClient.BeginDelete method.
type ManagedEnvironmentsClientCreateOrUpdateResponse ¶
type ManagedEnvironmentsClientCreateOrUpdateResponse struct {
ManagedEnvironment
}
ManagedEnvironmentsClientCreateOrUpdateResponse contains the response from method ManagedEnvironmentsClient.CreateOrUpdate.
type ManagedEnvironmentsClientDeleteResponse ¶
type ManagedEnvironmentsClientDeleteResponse struct { }
ManagedEnvironmentsClientDeleteResponse contains the response from method ManagedEnvironmentsClient.Delete.
type ManagedEnvironmentsClientGetOptions ¶
type ManagedEnvironmentsClientGetOptions struct { }
ManagedEnvironmentsClientGetOptions contains the optional parameters for the ManagedEnvironmentsClient.Get method.
type ManagedEnvironmentsClientGetResponse ¶
type ManagedEnvironmentsClientGetResponse struct {
ManagedEnvironment
}
ManagedEnvironmentsClientGetResponse contains the response from method ManagedEnvironmentsClient.Get.
type ManagedEnvironmentsClientListByResourceGroupOptions ¶
type ManagedEnvironmentsClientListByResourceGroupOptions struct { }
ManagedEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the ManagedEnvironmentsClient.ListByResourceGroup method.
type ManagedEnvironmentsClientListByResourceGroupResponse ¶
type ManagedEnvironmentsClientListByResourceGroupResponse struct {
ManagedEnvironmentsCollection
}
ManagedEnvironmentsClientListByResourceGroupResponse contains the response from method ManagedEnvironmentsClient.ListByResourceGroup.
type ManagedEnvironmentsClientListBySubscriptionOptions ¶
type ManagedEnvironmentsClientListBySubscriptionOptions struct { }
ManagedEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the ManagedEnvironmentsClient.ListBySubscription method.
type ManagedEnvironmentsClientListBySubscriptionResponse ¶
type ManagedEnvironmentsClientListBySubscriptionResponse struct {
ManagedEnvironmentsCollection
}
ManagedEnvironmentsClientListBySubscriptionResponse contains the response from method ManagedEnvironmentsClient.ListBySubscription.
type ManagedEnvironmentsClientUpdateOptions ¶
type ManagedEnvironmentsClientUpdateOptions struct { }
ManagedEnvironmentsClientUpdateOptions contains the optional parameters for the ManagedEnvironmentsClient.Update method.
type ManagedEnvironmentsClientUpdateResponse ¶
type ManagedEnvironmentsClientUpdateResponse struct {
ManagedEnvironment
}
ManagedEnvironmentsClientUpdateResponse contains the response from method ManagedEnvironmentsClient.Update.
type ManagedEnvironmentsCollection ¶
type ManagedEnvironmentsCollection struct { // REQUIRED; Collection of resources. Value []*ManagedEnvironment `json:"value,omitempty"` // READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ManagedEnvironmentsCollection - Collection of Environments
func (ManagedEnvironmentsCollection) MarshalJSON ¶
func (m ManagedEnvironmentsCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedEnvironmentsCollection.
type ManagedEnvironmentsStoragesClient ¶
type ManagedEnvironmentsStoragesClient struct {
// contains filtered or unexported fields
}
ManagedEnvironmentsStoragesClient contains the methods for the ManagedEnvironmentsStorages group. Don't use this type directly, use NewManagedEnvironmentsStoragesClient() instead.
func NewManagedEnvironmentsStoragesClient ¶
func NewManagedEnvironmentsStoragesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedEnvironmentsStoragesClient, error)
NewManagedEnvironmentsStoragesClient creates a new instance of ManagedEnvironmentsStoragesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ManagedEnvironmentsStoragesClient) CreateOrUpdate ¶
func (client *ManagedEnvironmentsStoragesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, envName string, name string, storageEnvelope ManagedEnvironmentStorage, options *ManagedEnvironmentsStoragesClientCreateOrUpdateOptions) (ManagedEnvironmentsStoragesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create or update storage for a managedEnvironment. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. envName - Name of the Environment. name - Name of the storage. storageEnvelope - Configuration details of storage. options - ManagedEnvironmentsStoragesClientCreateOrUpdateOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewManagedEnvironmentsStoragesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-group-name>", "<env-name>", "<name>", armapp.ManagedEnvironmentStorage{ Properties: &armapp.ManagedEnvironmentStorageProperties{ AzureFile: &armapp.AzureFileProperties{ AccessMode: to.Ptr(armapp.AccessModeReadOnly), AccountKey: to.Ptr("<account-key>"), AccountName: to.Ptr("<account-name>"), ShareName: to.Ptr("<share-name>"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ManagedEnvironmentsStoragesClient) Delete ¶
func (client *ManagedEnvironmentsStoragesClient) Delete(ctx context.Context, resourceGroupName string, envName string, name string, options *ManagedEnvironmentsStoragesClientDeleteOptions) (ManagedEnvironmentsStoragesClientDeleteResponse, error)
Delete - Delete storage for a managedEnvironment. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. envName - Name of the Environment. name - Name of the storage. options - ManagedEnvironmentsStoragesClientDeleteOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewManagedEnvironmentsStoragesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<env-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*ManagedEnvironmentsStoragesClient) Get ¶
func (client *ManagedEnvironmentsStoragesClient) Get(ctx context.Context, resourceGroupName string, envName string, name string, options *ManagedEnvironmentsStoragesClientGetOptions) (ManagedEnvironmentsStoragesClientGetResponse, error)
Get - Get storage for a managedEnvironment. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. envName - Name of the Environment. name - Name of the storage. options - ManagedEnvironmentsStoragesClientGetOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewManagedEnvironmentsStoragesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<env-name>", "<name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ManagedEnvironmentsStoragesClient) List ¶
func (client *ManagedEnvironmentsStoragesClient) List(ctx context.Context, resourceGroupName string, envName string, options *ManagedEnvironmentsStoragesClientListOptions) (ManagedEnvironmentsStoragesClientListResponse, error)
List - Get all storages for a managedEnvironment. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. envName - Name of the Environment. options - ManagedEnvironmentsStoragesClientListOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewManagedEnvironmentsStoragesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.List(ctx, "<resource-group-name>", "<env-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type ManagedEnvironmentsStoragesClientCreateOrUpdateOptions ¶
type ManagedEnvironmentsStoragesClientCreateOrUpdateOptions struct { }
ManagedEnvironmentsStoragesClientCreateOrUpdateOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.CreateOrUpdate method.
type ManagedEnvironmentsStoragesClientCreateOrUpdateResponse ¶
type ManagedEnvironmentsStoragesClientCreateOrUpdateResponse struct {
ManagedEnvironmentStorage
}
ManagedEnvironmentsStoragesClientCreateOrUpdateResponse contains the response from method ManagedEnvironmentsStoragesClient.CreateOrUpdate.
type ManagedEnvironmentsStoragesClientDeleteOptions ¶
type ManagedEnvironmentsStoragesClientDeleteOptions struct { }
ManagedEnvironmentsStoragesClientDeleteOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.Delete method.
type ManagedEnvironmentsStoragesClientDeleteResponse ¶
type ManagedEnvironmentsStoragesClientDeleteResponse struct { }
ManagedEnvironmentsStoragesClientDeleteResponse contains the response from method ManagedEnvironmentsStoragesClient.Delete.
type ManagedEnvironmentsStoragesClientGetOptions ¶
type ManagedEnvironmentsStoragesClientGetOptions struct { }
ManagedEnvironmentsStoragesClientGetOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.Get method.
type ManagedEnvironmentsStoragesClientGetResponse ¶
type ManagedEnvironmentsStoragesClientGetResponse struct {
ManagedEnvironmentStorage
}
ManagedEnvironmentsStoragesClientGetResponse contains the response from method ManagedEnvironmentsStoragesClient.Get.
type ManagedEnvironmentsStoragesClientListOptions ¶
type ManagedEnvironmentsStoragesClientListOptions struct { }
ManagedEnvironmentsStoragesClientListOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.List method.
type ManagedEnvironmentsStoragesClientListResponse ¶
type ManagedEnvironmentsStoragesClientListResponse struct {
ManagedEnvironmentStoragesCollection
}
ManagedEnvironmentsStoragesClientListResponse contains the response from method ManagedEnvironmentsStoragesClient.List.
type ManagedServiceIdentity ¶
type ManagedServiceIdentity struct { // REQUIRED; Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). Type *ManagedServiceIdentityType `json:"type,omitempty"` // The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM // resource ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. // The dictionary values can be empty objects ({}) in // requests. UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` // READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned // identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities)
func (ManagedServiceIdentity) MarshalJSON ¶
func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity.
type ManagedServiceIdentityType ¶
type ManagedServiceIdentityType string
ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
const ( ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" )
func PossibleManagedServiceIdentityTypeValues ¶
func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
type Nonce ¶
type Nonce struct { // The time after the request is made when the nonce should expire. NonceExpirationInterval *string `json:"nonceExpirationInterval,omitempty"` // false if the nonce should not be validated while completing the login flow; otherwise, true. ValidateNonce *bool `json:"validateNonce,omitempty"` }
Nonce - The configuration settings of the nonce used in the login flow.
type OpenIDConnectClientCredential ¶
type OpenIDConnectClientCredential struct { // The app setting that contains the client secret for the custom Open ID Connect provider. ClientSecretSettingName *string `json:"clientSecretSettingName,omitempty"` // The method that should be used to authenticate the user. Method *string `json:"method,omitempty"` }
OpenIDConnectClientCredential - The authentication client credentials of the custom Open ID Connect provider.
type OpenIDConnectConfig ¶
type OpenIDConnectConfig struct { // The endpoint to be used to make an authorization request. AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty"` // The endpoint that provides the keys necessary to validate the token. CertificationURI *string `json:"certificationUri,omitempty"` // The endpoint that issues the token. Issuer *string `json:"issuer,omitempty"` // The endpoint to be used to request a token. TokenEndpoint *string `json:"tokenEndpoint,omitempty"` // The endpoint that contains all the configuration endpoints for the provider. WellKnownOpenIDConfiguration *string `json:"wellKnownOpenIdConfiguration,omitempty"` }
OpenIDConnectConfig - The configuration settings of the endpoints used for the custom Open ID Connect provider.
type OpenIDConnectLogin ¶
type OpenIDConnectLogin struct { // The name of the claim that contains the users name. NameClaimType *string `json:"nameClaimType,omitempty"` // A list of the scopes that should be requested while authenticating. Scopes []*string `json:"scopes,omitempty"` }
OpenIDConnectLogin - The configuration settings of the login flow of the custom Open ID Connect provider.
func (OpenIDConnectLogin) MarshalJSON ¶
func (o OpenIDConnectLogin) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OpenIDConnectLogin.
type OpenIDConnectRegistration ¶
type OpenIDConnectRegistration struct { // The authentication credentials of the custom Open ID Connect provider. ClientCredential *OpenIDConnectClientCredential `json:"clientCredential,omitempty"` // The client id of the custom Open ID Connect provider. ClientID *string `json:"clientId,omitempty"` // The configuration settings of the endpoints used for the custom Open ID Connect provider. OpenIDConnectConfiguration *OpenIDConnectConfig `json:"openIdConnectConfiguration,omitempty"` }
OpenIDConnectRegistration - The configuration settings of the app registration for the custom Open ID Connect provider.
type OperationDetail ¶
type OperationDetail struct { // Display of the operation Display *OperationDisplay `json:"display,omitempty"` // Indicates whether the operation is a data action IsDataAction *bool `json:"isDataAction,omitempty"` // Name of the operation Name *string `json:"name,omitempty"` // Origin of the operation Origin *string `json:"origin,omitempty"` }
OperationDetail - Operation detail payload
type OperationDisplay ¶
type OperationDisplay struct { // Localized friendly description for the operation Description *string `json:"description,omitempty"` // Localized friendly name for the operation Operation *string `json:"operation,omitempty"` // Resource provider of the operation Provider *string `json:"provider,omitempty"` // Resource of the operation Resource *string `json:"resource,omitempty"` }
OperationDisplay - Operation display payload
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
List - Lists all of the available RP operations. If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Operations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/tadelesh/azure-sdk-for-go/sdk/resourcemanager/app/armapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armapp.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
AvailableOperations
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type ProxyResource ¶
type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
type QueueScaleRule ¶
type QueueScaleRule struct { // Authentication secrets for the queue scale rule. Auth []*ScaleRuleAuth `json:"auth,omitempty"` // Queue length. QueueLength *int32 `json:"queueLength,omitempty"` // Queue name. QueueName *string `json:"queueName,omitempty"` }
QueueScaleRule - Container App container Azure Queue based scaling rule.
func (QueueScaleRule) MarshalJSON ¶
func (q QueueScaleRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QueueScaleRule.
type Registration ¶
type Registration struct { // The App ID of the app used for login. AppID *string `json:"appId,omitempty"` // The app setting name that contains the app secret. AppSecretSettingName *string `json:"appSecretSettingName,omitempty"` }
Registration - The configuration settings of the app registration for providers that have app ids and app secrets
type RegistryCredentials ¶
type RegistryCredentials struct { // The name of the Secret that contains the registry login password PasswordSecretRef *string `json:"passwordSecretRef,omitempty"` // Container Registry Server Server *string `json:"server,omitempty"` // Container Registry Username Username *string `json:"username,omitempty"` }
RegistryCredentials - Container App Private Registry
type RegistryInfo ¶
type RegistryInfo struct { // registry secret. RegistryPassword *string `json:"registryPassword,omitempty"` // registry server Url. RegistryURL *string `json:"registryUrl,omitempty"` // registry username. RegistryUserName *string `json:"registryUserName,omitempty"` }
RegistryInfo - Container App registry information.
type Replica ¶
type Replica struct { // Replica resource specific properties Properties *ReplicaProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Replica - Container App Revision Replica.
type ReplicaCollection ¶
type ReplicaCollection struct { // REQUIRED; Collection of resources. Value []*Replica `json:"value,omitempty"` }
ReplicaCollection - Container App Revision Replicas collection ARM resource.
func (ReplicaCollection) MarshalJSON ¶
func (r ReplicaCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicaCollection.
type ReplicaContainer ¶
type ReplicaContainer struct { // The Id of the Container ContainerID *string `json:"containerId,omitempty"` // The Name of the Container Name *string `json:"name,omitempty"` // The container ready status Ready *bool `json:"ready,omitempty"` // The container restart count RestartCount *int32 `json:"restartCount,omitempty"` // The container start status Started *bool `json:"started,omitempty"` }
ReplicaContainer - Container object under Container App Revision Replica.
type ReplicaProperties ¶
type ReplicaProperties struct { // The containers collection under a replica. Containers []*ReplicaContainer `json:"containers,omitempty"` // READ-ONLY; Timestamp describing when the pod was created by controller CreatedTime *time.Time `json:"createdTime,omitempty" azure:"ro"` }
ReplicaProperties - Replica resource specific properties
func (ReplicaProperties) MarshalJSON ¶
func (r ReplicaProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicaProperties.
func (*ReplicaProperties) UnmarshalJSON ¶
func (r *ReplicaProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicaProperties.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type Revision ¶
type Revision struct { // Revision resource specific properties Properties *RevisionProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Revision - Container App Revision.
type RevisionCollection ¶
type RevisionCollection struct { // REQUIRED; Collection of resources. Value []*Revision `json:"value,omitempty"` // READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
RevisionCollection - Container App Revisions collection ARM resource.
func (RevisionCollection) MarshalJSON ¶
func (r RevisionCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RevisionCollection.
type RevisionHealthState ¶
type RevisionHealthState string
RevisionHealthState - Current health State of the revision
const ( RevisionHealthStateHealthy RevisionHealthState = "Healthy" RevisionHealthStateNone RevisionHealthState = "None" RevisionHealthStateUnhealthy RevisionHealthState = "Unhealthy" )
func PossibleRevisionHealthStateValues ¶
func PossibleRevisionHealthStateValues() []RevisionHealthState
PossibleRevisionHealthStateValues returns the possible values for the RevisionHealthState const type.
type RevisionProperties ¶
type RevisionProperties struct { // READ-ONLY; Boolean describing if the Revision is Active Active *bool `json:"active,omitempty" azure:"ro"` // READ-ONLY; Timestamp describing when the revision was created by controller CreatedTime *time.Time `json:"createdTime,omitempty" azure:"ro"` // READ-ONLY; Fully qualified domain name of the revision Fqdn *string `json:"fqdn,omitempty" azure:"ro"` // READ-ONLY; Current health State of the revision HealthState *RevisionHealthState `json:"healthState,omitempty" azure:"ro"` // READ-ONLY; Optional Field - Platform Error Message ProvisioningError *string `json:"provisioningError,omitempty" azure:"ro"` // READ-ONLY; Current provisioning State of the revision ProvisioningState *RevisionProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Number of pods currently running for this revision Replicas *int32 `json:"replicas,omitempty" azure:"ro"` // READ-ONLY; Container App Revision Template with all possible settings and the defaults if user did not provide them. The // defaults are populated as they were at the creation time Template *Template `json:"template,omitempty" azure:"ro"` // READ-ONLY; Traffic weight assigned to this revision TrafficWeight *int32 `json:"trafficWeight,omitempty" azure:"ro"` }
RevisionProperties - Revision resource specific properties
func (RevisionProperties) MarshalJSON ¶
func (r RevisionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RevisionProperties.
func (*RevisionProperties) UnmarshalJSON ¶
func (r *RevisionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RevisionProperties.
type RevisionProvisioningState ¶
type RevisionProvisioningState string
RevisionProvisioningState - Current provisioning State of the revision
const ( RevisionProvisioningStateDeprovisioned RevisionProvisioningState = "Deprovisioned" RevisionProvisioningStateDeprovisioning RevisionProvisioningState = "Deprovisioning" RevisionProvisioningStateFailed RevisionProvisioningState = "Failed" RevisionProvisioningStateProvisioned RevisionProvisioningState = "Provisioned" RevisionProvisioningStateProvisioning RevisionProvisioningState = "Provisioning" )
func PossibleRevisionProvisioningStateValues ¶
func PossibleRevisionProvisioningStateValues() []RevisionProvisioningState
PossibleRevisionProvisioningStateValues returns the possible values for the RevisionProvisioningState const type.
type Scale ¶
type Scale struct { // Optional. Maximum number of container replicas. Defaults to 10 if not set. MaxReplicas *int32 `json:"maxReplicas,omitempty"` // Optional. Minimum number of container replicas. MinReplicas *int32 `json:"minReplicas,omitempty"` // Scaling rules. Rules []*ScaleRule `json:"rules,omitempty"` }
Scale - Container App scaling configurations.
func (Scale) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Scale.
type ScaleRule ¶
type ScaleRule struct { // Azure Queue based scaling. AzureQueue *QueueScaleRule `json:"azureQueue,omitempty"` // Custom scale rule. Custom *CustomScaleRule `json:"custom,omitempty"` // HTTP requests based scaling. HTTP *HTTPScaleRule `json:"http,omitempty"` // Scale Rule Name Name *string `json:"name,omitempty"` }
ScaleRule - Container App container scaling rule.
type ScaleRuleAuth ¶
type ScaleRuleAuth struct { // Name of the Container App secret from which to pull the auth params. SecretRef *string `json:"secretRef,omitempty"` // Trigger Parameter that uses the secret TriggerParameter *string `json:"triggerParameter,omitempty"` }
ScaleRuleAuth - Auth Secrets for Container App Scale Rule
type Secret ¶
type Secret struct { // Secret Name. Name *string `json:"name,omitempty"` // Secret Value. Value *string `json:"value,omitempty"` }
Secret definition.
type SecretsCollection ¶
type SecretsCollection struct { // REQUIRED; Collection of resources. Value []*ContainerAppSecret `json:"value,omitempty"` }
SecretsCollection - Container App Secrets Collection ARM resource.
func (SecretsCollection) MarshalJSON ¶
func (s SecretsCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecretsCollection.
type SourceControl ¶
type SourceControl struct { // SourceControl resource specific properties Properties *SourceControlProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
SourceControl - Container App SourceControl.
type SourceControlCollection ¶
type SourceControlCollection struct { // REQUIRED; Collection of resources. Value []*SourceControl `json:"value,omitempty"` // READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
SourceControlCollection - SourceControl collection ARM resource.
func (SourceControlCollection) MarshalJSON ¶
func (s SourceControlCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SourceControlCollection.
type SourceControlOperationState ¶
type SourceControlOperationState string
SourceControlOperationState - Current provisioning State of the operation
const ( SourceControlOperationStateCanceled SourceControlOperationState = "Canceled" SourceControlOperationStateFailed SourceControlOperationState = "Failed" SourceControlOperationStateInProgress SourceControlOperationState = "InProgress" SourceControlOperationStateSucceeded SourceControlOperationState = "Succeeded" )
func PossibleSourceControlOperationStateValues ¶
func PossibleSourceControlOperationStateValues() []SourceControlOperationState
PossibleSourceControlOperationStateValues returns the possible values for the SourceControlOperationState const type.
type SourceControlProperties ¶
type SourceControlProperties struct { // The branch which will trigger the auto deployment Branch *string `json:"branch,omitempty"` // Container App Revision Template with all possible settings and the defaults if user did not provide them. The defaults // are populated as they were at the creation time GithubActionConfiguration *GithubActionConfiguration `json:"githubActionConfiguration,omitempty"` // The repo url which will be integrated to ContainerApp. RepoURL *string `json:"repoUrl,omitempty"` // READ-ONLY; Current provisioning State of the operation OperationState *SourceControlOperationState `json:"operationState,omitempty" azure:"ro"` }
SourceControlProperties - SourceControl resource specific properties
type StorageType ¶
type StorageType string
StorageType - Storage type for the volume. If not provided, use EmptyDir.
const ( StorageTypeAzureFile StorageType = "AzureFile" StorageTypeEmptyDir StorageType = "EmptyDir" )
func PossibleStorageTypeValues ¶
func PossibleStorageTypeValues() []StorageType
PossibleStorageTypeValues returns the possible values for the StorageType const type.
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 Template ¶
type Template struct { // List of container definitions for the Container App. Containers []*Container `json:"containers,omitempty"` // User friendly suffix that is appended to the revision name RevisionSuffix *string `json:"revisionSuffix,omitempty"` // Scaling properties for the Container App. Scale *Scale `json:"scale,omitempty"` // List of volume definitions for the Container App. Volumes []*Volume `json:"volumes,omitempty"` }
Template - Container App versioned application definition. Defines the desired state of an immutable revision. Any changes to this section Will result in a new revision being created
func (Template) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Template.
type TrackedResource ¶
type TrackedResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
type TrafficWeight ¶
type TrafficWeight struct { // Indicates that the traffic weight belongs to a latest stable revision LatestRevision *bool `json:"latestRevision,omitempty"` // Name of a revision RevisionName *string `json:"revisionName,omitempty"` // Traffic weight assigned to a revision Weight *int32 `json:"weight,omitempty"` }
TrafficWeight - Traffic weight assigned to a revision
type Twitter ¶
type Twitter struct { // false if the Twitter provider should not be enabled despite the set registration; otherwise, true. Enabled *bool `json:"enabled,omitempty"` // The configuration settings of the app registration for the Twitter provider. Registration *TwitterRegistration `json:"registration,omitempty"` }
Twitter - The configuration settings of the Twitter provider.
type TwitterRegistration ¶
type TwitterRegistration struct { // The OAuth 1.0a consumer key of the Twitter application used for sign-in. This setting is required for enabling Twitter // Sign-In. Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in ConsumerKey *string `json:"consumerKey,omitempty"` // The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. ConsumerSecretSettingName *string `json:"consumerSecretSettingName,omitempty"` }
TwitterRegistration - The configuration settings of the app registration for the Twitter provider.
type Type ¶
type Type string
Type - The type of probe.
func PossibleTypeValues ¶
func PossibleTypeValues() []Type
PossibleTypeValues returns the possible values for the Type const type.
type UnauthenticatedClientActionV2 ¶
type UnauthenticatedClientActionV2 string
UnauthenticatedClientActionV2 - The action to take when an unauthenticated client attempts to access the app.
const ( UnauthenticatedClientActionV2RedirectToLoginPage UnauthenticatedClientActionV2 = "RedirectToLoginPage" UnauthenticatedClientActionV2AllowAnonymous UnauthenticatedClientActionV2 = "AllowAnonymous" UnauthenticatedClientActionV2Return401 UnauthenticatedClientActionV2 = "Return401" UnauthenticatedClientActionV2Return403 UnauthenticatedClientActionV2 = "Return403" )
func PossibleUnauthenticatedClientActionV2Values ¶
func PossibleUnauthenticatedClientActionV2Values() []UnauthenticatedClientActionV2
PossibleUnauthenticatedClientActionV2Values returns the possible values for the UnauthenticatedClientActionV2 const type.
type UserAssignedIdentity ¶
type UserAssignedIdentity struct { // READ-ONLY; The client ID of the assigned identity. ClientID *string `json:"clientId,omitempty" azure:"ro"` // READ-ONLY; The principal ID of the assigned identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` }
UserAssignedIdentity - User assigned identity properties
type VnetConfiguration ¶
type VnetConfiguration struct { // CIDR notation IP range assigned to the Docker bridge, network. Must not overlap with any other provided IP ranges. DockerBridgeCidr *string `json:"dockerBridgeCidr,omitempty"` // Resource ID of a subnet for infrastructure components. This subnet must be in the same VNET as the subnet defined in runtimeSubnetId. // Must not overlap with any other provided IP ranges. InfrastructureSubnetID *string `json:"infrastructureSubnetId,omitempty"` // Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP // resource, must provide ControlPlaneSubnetResourceId and AppSubnetResourceId if // enabling this property Internal *bool `json:"internal,omitempty"` // IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. Must not overlap with any other // provided IP ranges. PlatformReservedCidr *string `json:"platformReservedCidr,omitempty"` // An IP address from the IP range defined by platformReservedCidr that will be reserved for the internal DNS server. PlatformReservedDNSIP *string `json:"platformReservedDnsIP,omitempty"` // Resource ID of a subnet that Container App containers are injected into. This subnet must be in the same VNET as the subnet // defined in infrastructureSubnetId. Must not overlap with any other provided // IP ranges. RuntimeSubnetID *string `json:"runtimeSubnetId,omitempty"` }
VnetConfiguration - Configuration properties for apps environment to join a Virtual Network
type Volume ¶
type Volume struct { // Volume name. Name *string `json:"name,omitempty"` // Name of storage resource. No need to provide for EmptyDir. StorageName *string `json:"storageName,omitempty"` // Storage type for the volume. If not provided, use EmptyDir. StorageType *StorageType `json:"storageType,omitempty"` }
Volume definitions for the Container App.
type VolumeMount ¶
type VolumeMount struct { // Path within the container at which the volume should be mounted.Must not contain ':'. MountPath *string `json:"mountPath,omitempty"` // This must match the Name of a Volume. VolumeName *string `json:"volumeName,omitempty"` }
VolumeMount - Volume mount for the Container App.
Source Files ¶
- build.go
- zz_generated_certificates_client.go
- zz_generated_constants.go
- zz_generated_containerapps_client.go
- zz_generated_containerappsauthconfigs_client.go
- zz_generated_containerappsrevisionreplicas_client.go
- zz_generated_containerappsrevisions_client.go
- zz_generated_containerappssourcecontrols_client.go
- zz_generated_daprcomponents_client.go
- zz_generated_managedenvironments_client.go
- zz_generated_managedenvironmentsstorages_client.go
- zz_generated_models.go
- zz_generated_models_serde.go
- zz_generated_operations_client.go
- zz_generated_response_types.go
- zz_generated_time_rfc3339.go