Documentation ¶
Index ¶
- type APIPortalCustomDomainProperties
- type APIPortalCustomDomainResource
- type APIPortalCustomDomainResourceCollection
- type APIPortalCustomDomainsClient
- func (client *APIPortalCustomDomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[APIPortalCustomDomainsClientCreateOrUpdateResponse], error)
- func (client *APIPortalCustomDomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[APIPortalCustomDomainsClientDeleteResponse], error)
- func (client *APIPortalCustomDomainsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (APIPortalCustomDomainsClientGetResponse, error)
- func (client *APIPortalCustomDomainsClient) NewListPager(resourceGroupName string, serviceName string, apiPortalName string, ...) *runtime.Pager[APIPortalCustomDomainsClientListResponse]
- type APIPortalCustomDomainsClientBeginCreateOrUpdateOptions
- type APIPortalCustomDomainsClientBeginDeleteOptions
- type APIPortalCustomDomainsClientCreateOrUpdateResponse
- type APIPortalCustomDomainsClientDeleteResponse
- type APIPortalCustomDomainsClientGetOptions
- type APIPortalCustomDomainsClientGetResponse
- type APIPortalCustomDomainsClientListOptions
- type APIPortalCustomDomainsClientListResponse
- type APIPortalInstance
- type APIPortalProperties
- type APIPortalProvisioningState
- type APIPortalResource
- type APIPortalResourceCollection
- type APIPortalResourceRequests
- type APIPortalsClient
- func (client *APIPortalsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[APIPortalsClientCreateOrUpdateResponse], error)
- func (client *APIPortalsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[APIPortalsClientDeleteResponse], error)
- func (client *APIPortalsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (APIPortalsClientGetResponse, error)
- func (client *APIPortalsClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[APIPortalsClientListResponse]
- func (client *APIPortalsClient) ValidateDomain(ctx context.Context, resourceGroupName string, serviceName string, ...) (APIPortalsClientValidateDomainResponse, error)
- type APIPortalsClientBeginCreateOrUpdateOptions
- type APIPortalsClientBeginDeleteOptions
- type APIPortalsClientCreateOrUpdateResponse
- type APIPortalsClientDeleteResponse
- type APIPortalsClientGetOptions
- type APIPortalsClientGetResponse
- type APIPortalsClientListOptions
- type APIPortalsClientListResponse
- type APIPortalsClientValidateDomainOptions
- type APIPortalsClientValidateDomainResponse
- type AcceleratorAuthSetting
- type AcceleratorAuthSettingClassification
- type AcceleratorBasicAuthSetting
- type AcceleratorGitRepository
- type AcceleratorPublicSetting
- type AcceleratorSSHSetting
- type ActionType
- type ActiveDeploymentCollection
- type ApmType
- type AppResource
- type AppResourceCollection
- type AppResourceProperties
- type AppResourceProvisioningState
- type AppVNetAddons
- type ApplicationAcceleratorComponent
- type ApplicationAcceleratorInstance
- type ApplicationAcceleratorProperties
- type ApplicationAcceleratorProvisioningState
- type ApplicationAcceleratorResource
- type ApplicationAcceleratorResourceCollection
- type ApplicationAcceleratorResourceRequests
- type ApplicationAcceleratorsClient
- func (client *ApplicationAcceleratorsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ApplicationAcceleratorsClientCreateOrUpdateResponse], error)
- func (client *ApplicationAcceleratorsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ApplicationAcceleratorsClientDeleteResponse], error)
- func (client *ApplicationAcceleratorsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (ApplicationAcceleratorsClientGetResponse, error)
- func (client *ApplicationAcceleratorsClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[ApplicationAcceleratorsClientListResponse]
- type ApplicationAcceleratorsClientBeginCreateOrUpdateOptions
- type ApplicationAcceleratorsClientBeginDeleteOptions
- type ApplicationAcceleratorsClientCreateOrUpdateResponse
- type ApplicationAcceleratorsClientDeleteResponse
- type ApplicationAcceleratorsClientGetOptions
- type ApplicationAcceleratorsClientGetResponse
- type ApplicationAcceleratorsClientListOptions
- type ApplicationAcceleratorsClientListResponse
- type ApplicationInsightsAgentVersions
- type ApplicationLiveViewComponent
- type ApplicationLiveViewInstance
- type ApplicationLiveViewProperties
- type ApplicationLiveViewProvisioningState
- type ApplicationLiveViewResource
- type ApplicationLiveViewResourceCollection
- type ApplicationLiveViewResourceRequests
- type ApplicationLiveViewsClient
- func (client *ApplicationLiveViewsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ApplicationLiveViewsClientCreateOrUpdateResponse], error)
- func (client *ApplicationLiveViewsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ApplicationLiveViewsClientDeleteResponse], error)
- func (client *ApplicationLiveViewsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (ApplicationLiveViewsClientGetResponse, error)
- func (client *ApplicationLiveViewsClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[ApplicationLiveViewsClientListResponse]
- type ApplicationLiveViewsClientBeginCreateOrUpdateOptions
- type ApplicationLiveViewsClientBeginDeleteOptions
- type ApplicationLiveViewsClientCreateOrUpdateResponse
- type ApplicationLiveViewsClientDeleteResponse
- type ApplicationLiveViewsClientGetOptions
- type ApplicationLiveViewsClientGetResponse
- type ApplicationLiveViewsClientListOptions
- type ApplicationLiveViewsClientListResponse
- type AppsClient
- func (client *AppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[AppsClientCreateOrUpdateResponse], error)
- func (client *AppsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[AppsClientDeleteResponse], error)
- func (client *AppsClient) BeginSetActiveDeployments(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[AppsClientSetActiveDeploymentsResponse], error)
- func (client *AppsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[AppsClientUpdateResponse], error)
- func (client *AppsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (AppsClientGetResponse, error)
- func (client *AppsClient) GetResourceUploadURL(ctx context.Context, resourceGroupName string, serviceName string, ...) (AppsClientGetResourceUploadURLResponse, error)
- func (client *AppsClient) NewListPager(resourceGroupName string, serviceName string, options *AppsClientListOptions) *runtime.Pager[AppsClientListResponse]
- func (client *AppsClient) ValidateDomain(ctx context.Context, resourceGroupName string, serviceName string, ...) (AppsClientValidateDomainResponse, error)
- type AppsClientBeginCreateOrUpdateOptions
- type AppsClientBeginDeleteOptions
- type AppsClientBeginSetActiveDeploymentsOptions
- type AppsClientBeginUpdateOptions
- type AppsClientCreateOrUpdateResponse
- type AppsClientDeleteResponse
- type AppsClientGetOptions
- type AppsClientGetResourceUploadURLOptions
- type AppsClientGetResourceUploadURLResponse
- type AppsClientGetResponse
- type AppsClientListOptions
- type AppsClientListResponse
- type AppsClientSetActiveDeploymentsResponse
- type AppsClientUpdateResponse
- type AppsClientValidateDomainOptions
- type AppsClientValidateDomainResponse
- type AvailableOperations
- type AvailableRuntimeVersions
- type AzureFileVolume
- type BackendProtocol
- type BindingResource
- type BindingResourceCollection
- type BindingResourceProperties
- type BindingType
- type BindingsClient
- func (client *BindingsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[BindingsClientCreateOrUpdateResponse], error)
- func (client *BindingsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[BindingsClientDeleteResponse], error)
- func (client *BindingsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[BindingsClientUpdateResponse], error)
- func (client *BindingsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (BindingsClientGetResponse, error)
- func (client *BindingsClient) NewListPager(resourceGroupName string, serviceName string, appName string, ...) *runtime.Pager[BindingsClientListResponse]
- type BindingsClientBeginCreateOrUpdateOptions
- type BindingsClientBeginDeleteOptions
- type BindingsClientBeginUpdateOptions
- type BindingsClientCreateOrUpdateResponse
- type BindingsClientDeleteResponse
- type BindingsClientGetOptions
- type BindingsClientGetResponse
- type BindingsClientListOptions
- type BindingsClientListResponse
- type BindingsClientUpdateResponse
- type Build
- type BuildCollection
- type BuildProperties
- type BuildProvisioningState
- type BuildResourceRequests
- type BuildResult
- type BuildResultCollection
- type BuildResultLog
- type BuildResultProperties
- type BuildResultProvisioningState
- type BuildResultUserSourceInfo
- type BuildService
- type BuildServiceAgentPoolClient
- func (client *BuildServiceAgentPoolClient) BeginUpdatePut(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[BuildServiceAgentPoolClientUpdatePutResponse], error)
- func (client *BuildServiceAgentPoolClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceAgentPoolClientGetResponse, error)
- func (client *BuildServiceAgentPoolClient) NewListPager(resourceGroupName string, serviceName string, buildServiceName string, ...) *runtime.Pager[BuildServiceAgentPoolClientListResponse]
- type BuildServiceAgentPoolClientBeginUpdatePutOptions
- type BuildServiceAgentPoolClientGetOptions
- type BuildServiceAgentPoolClientGetResponse
- type BuildServiceAgentPoolClientListOptions
- type BuildServiceAgentPoolClientListResponse
- type BuildServiceAgentPoolClientUpdatePutResponse
- type BuildServiceAgentPoolProperties
- type BuildServiceAgentPoolResource
- type BuildServiceAgentPoolResourceCollection
- type BuildServiceAgentPoolSizeProperties
- type BuildServiceBuilderClient
- func (client *BuildServiceBuilderClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[BuildServiceBuilderClientCreateOrUpdateResponse], error)
- func (client *BuildServiceBuilderClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[BuildServiceBuilderClientDeleteResponse], error)
- func (client *BuildServiceBuilderClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceBuilderClientGetResponse, error)
- func (client *BuildServiceBuilderClient) ListDeployments(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceBuilderClientListDeploymentsResponse, error)
- func (client *BuildServiceBuilderClient) NewListPager(resourceGroupName string, serviceName string, buildServiceName string, ...) *runtime.Pager[BuildServiceBuilderClientListResponse]
- type BuildServiceBuilderClientBeginCreateOrUpdateOptions
- type BuildServiceBuilderClientBeginDeleteOptions
- type BuildServiceBuilderClientCreateOrUpdateResponse
- type BuildServiceBuilderClientDeleteResponse
- type BuildServiceBuilderClientGetOptions
- type BuildServiceBuilderClientGetResponse
- type BuildServiceBuilderClientListDeploymentsOptions
- type BuildServiceBuilderClientListDeploymentsResponse
- type BuildServiceBuilderClientListOptions
- type BuildServiceBuilderClientListResponse
- type BuildServiceClient
- func (client *BuildServiceClient) CreateOrUpdateBuild(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceClientCreateOrUpdateBuildResponse, error)
- func (client *BuildServiceClient) GetBuild(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceClientGetBuildResponse, error)
- func (client *BuildServiceClient) GetBuildResult(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceClientGetBuildResultResponse, error)
- func (client *BuildServiceClient) GetBuildResultLog(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceClientGetBuildResultLogResponse, error)
- func (client *BuildServiceClient) GetBuildService(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceClientGetBuildServiceResponse, error)
- func (client *BuildServiceClient) GetResourceUploadURL(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceClientGetResourceUploadURLResponse, error)
- func (client *BuildServiceClient) GetSupportedBuildpack(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceClientGetSupportedBuildpackResponse, error)
- func (client *BuildServiceClient) GetSupportedStack(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceClientGetSupportedStackResponse, error)
- func (client *BuildServiceClient) ListSupportedBuildpacks(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceClientListSupportedBuildpacksResponse, error)
- func (client *BuildServiceClient) ListSupportedStacks(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceClientListSupportedStacksResponse, error)
- func (client *BuildServiceClient) NewListBuildResultsPager(resourceGroupName string, serviceName string, buildServiceName string, ...) *runtime.Pager[BuildServiceClientListBuildResultsResponse]
- func (client *BuildServiceClient) NewListBuildServicesPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[BuildServiceClientListBuildServicesResponse]
- func (client *BuildServiceClient) NewListBuildsPager(resourceGroupName string, serviceName string, buildServiceName string, ...) *runtime.Pager[BuildServiceClientListBuildsResponse]
- type BuildServiceClientCreateOrUpdateBuildOptions
- type BuildServiceClientCreateOrUpdateBuildResponse
- type BuildServiceClientGetBuildOptions
- type BuildServiceClientGetBuildResponse
- type BuildServiceClientGetBuildResultLogOptions
- type BuildServiceClientGetBuildResultLogResponse
- type BuildServiceClientGetBuildResultOptions
- type BuildServiceClientGetBuildResultResponse
- type BuildServiceClientGetBuildServiceOptions
- type BuildServiceClientGetBuildServiceResponse
- type BuildServiceClientGetResourceUploadURLOptions
- type BuildServiceClientGetResourceUploadURLResponse
- type BuildServiceClientGetSupportedBuildpackOptions
- type BuildServiceClientGetSupportedBuildpackResponse
- type BuildServiceClientGetSupportedStackOptions
- type BuildServiceClientGetSupportedStackResponse
- type BuildServiceClientListBuildResultsOptions
- type BuildServiceClientListBuildResultsResponse
- type BuildServiceClientListBuildServicesOptions
- type BuildServiceClientListBuildServicesResponse
- type BuildServiceClientListBuildsOptions
- type BuildServiceClientListBuildsResponse
- type BuildServiceClientListSupportedBuildpacksOptions
- type BuildServiceClientListSupportedBuildpacksResponse
- type BuildServiceClientListSupportedStacksOptions
- type BuildServiceClientListSupportedStacksResponse
- type BuildServiceCollection
- type BuildServiceProperties
- type BuildServicePropertiesResourceRequests
- type BuildServiceProvisioningState
- type BuildStageProperties
- type BuilderProperties
- type BuilderProvisioningState
- type BuilderResource
- type BuilderResourceCollection
- type BuildpackBindingClient
- func (client *BuildpackBindingClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[BuildpackBindingClientCreateOrUpdateResponse], error)
- func (client *BuildpackBindingClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[BuildpackBindingClientDeleteResponse], error)
- func (client *BuildpackBindingClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildpackBindingClientGetResponse, error)
- func (client *BuildpackBindingClient) NewListPager(resourceGroupName string, serviceName string, buildServiceName string, ...) *runtime.Pager[BuildpackBindingClientListResponse]
- type BuildpackBindingClientBeginCreateOrUpdateOptions
- type BuildpackBindingClientBeginDeleteOptions
- type BuildpackBindingClientCreateOrUpdateResponse
- type BuildpackBindingClientDeleteResponse
- type BuildpackBindingClientGetOptions
- type BuildpackBindingClientGetResponse
- type BuildpackBindingClientListOptions
- type BuildpackBindingClientListResponse
- type BuildpackBindingLaunchProperties
- type BuildpackBindingProperties
- type BuildpackBindingProvisioningState
- type BuildpackBindingResource
- type BuildpackBindingResourceCollection
- type BuildpackProperties
- type BuildpacksGroupProperties
- type CertificateProperties
- type CertificatePropertiesClassification
- type CertificateResource
- type CertificateResourceCollection
- type CertificateResourceProvisioningState
- type CertificatesClient
- func (client *CertificatesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[CertificatesClientCreateOrUpdateResponse], error)
- func (client *CertificatesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[CertificatesClientDeleteResponse], error)
- func (client *CertificatesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (CertificatesClientGetResponse, error)
- func (client *CertificatesClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[CertificatesClientListResponse]
- type CertificatesClientBeginCreateOrUpdateOptions
- type CertificatesClientBeginDeleteOptions
- type CertificatesClientCreateOrUpdateResponse
- type CertificatesClientDeleteResponse
- type CertificatesClientGetOptions
- type CertificatesClientGetResponse
- type CertificatesClientListOptions
- type CertificatesClientListResponse
- type ClientFactory
- func (c *ClientFactory) NewAPIPortalCustomDomainsClient() *APIPortalCustomDomainsClient
- func (c *ClientFactory) NewAPIPortalsClient() *APIPortalsClient
- func (c *ClientFactory) NewApplicationAcceleratorsClient() *ApplicationAcceleratorsClient
- func (c *ClientFactory) NewApplicationLiveViewsClient() *ApplicationLiveViewsClient
- func (c *ClientFactory) NewAppsClient() *AppsClient
- func (c *ClientFactory) NewBindingsClient() *BindingsClient
- func (c *ClientFactory) NewBuildServiceAgentPoolClient() *BuildServiceAgentPoolClient
- func (c *ClientFactory) NewBuildServiceBuilderClient() *BuildServiceBuilderClient
- func (c *ClientFactory) NewBuildServiceClient() *BuildServiceClient
- func (c *ClientFactory) NewBuildpackBindingClient() *BuildpackBindingClient
- func (c *ClientFactory) NewCertificatesClient() *CertificatesClient
- func (c *ClientFactory) NewConfigServersClient() *ConfigServersClient
- func (c *ClientFactory) NewConfigurationServicesClient() *ConfigurationServicesClient
- func (c *ClientFactory) NewCustomDomainsClient() *CustomDomainsClient
- func (c *ClientFactory) NewCustomizedAcceleratorsClient() *CustomizedAcceleratorsClient
- func (c *ClientFactory) NewDeploymentsClient() *DeploymentsClient
- func (c *ClientFactory) NewDevToolPortalsClient() *DevToolPortalsClient
- func (c *ClientFactory) NewGatewayCustomDomainsClient() *GatewayCustomDomainsClient
- func (c *ClientFactory) NewGatewayRouteConfigsClient() *GatewayRouteConfigsClient
- func (c *ClientFactory) NewGatewaysClient() *GatewaysClient
- func (c *ClientFactory) NewMonitoringSettingsClient() *MonitoringSettingsClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewPredefinedAcceleratorsClient() *PredefinedAcceleratorsClient
- func (c *ClientFactory) NewRuntimeVersionsClient() *RuntimeVersionsClient
- func (c *ClientFactory) NewSKUsClient() *SKUsClient
- func (c *ClientFactory) NewServiceRegistriesClient() *ServiceRegistriesClient
- func (c *ClientFactory) NewServicesClient() *ServicesClient
- func (c *ClientFactory) NewStoragesClient() *StoragesClient
- type ClusterResourceProperties
- type ConfigServerGitProperty
- type ConfigServerProperties
- type ConfigServerResource
- type ConfigServerSettings
- type ConfigServerSettingsErrorRecord
- type ConfigServerSettingsValidateResult
- type ConfigServerState
- type ConfigServersClient
- func (client *ConfigServersClient) BeginUpdatePatch(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ConfigServersClientUpdatePatchResponse], error)
- func (client *ConfigServersClient) BeginUpdatePut(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ConfigServersClientUpdatePutResponse], error)
- func (client *ConfigServersClient) BeginValidate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ConfigServersClientValidateResponse], error)
- func (client *ConfigServersClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (ConfigServersClientGetResponse, error)
- type ConfigServersClientBeginUpdatePatchOptions
- type ConfigServersClientBeginUpdatePutOptions
- type ConfigServersClientBeginValidateOptions
- type ConfigServersClientGetOptions
- type ConfigServersClientGetResponse
- type ConfigServersClientUpdatePatchResponse
- type ConfigServersClientUpdatePutResponse
- type ConfigServersClientValidateResponse
- type ConfigurationServiceGitProperty
- type ConfigurationServiceGitPropertyValidateResult
- type ConfigurationServiceGitRepository
- type ConfigurationServiceInstance
- type ConfigurationServiceProperties
- type ConfigurationServiceProvisioningState
- type ConfigurationServiceResource
- type ConfigurationServiceResourceCollection
- type ConfigurationServiceResourceRequests
- type ConfigurationServiceSettings
- type ConfigurationServiceSettingsValidateResult
- type ConfigurationServicesClient
- func (client *ConfigurationServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ConfigurationServicesClientCreateOrUpdateResponse], error)
- func (client *ConfigurationServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ConfigurationServicesClientDeleteResponse], error)
- func (client *ConfigurationServicesClient) BeginValidate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ConfigurationServicesClientValidateResponse], error)
- func (client *ConfigurationServicesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (ConfigurationServicesClientGetResponse, error)
- func (client *ConfigurationServicesClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[ConfigurationServicesClientListResponse]
- type ConfigurationServicesClientBeginCreateOrUpdateOptions
- type ConfigurationServicesClientBeginDeleteOptions
- type ConfigurationServicesClientBeginValidateOptions
- type ConfigurationServicesClientCreateOrUpdateResponse
- type ConfigurationServicesClientDeleteResponse
- type ConfigurationServicesClientGetOptions
- type ConfigurationServicesClientGetResponse
- type ConfigurationServicesClientListOptions
- type ConfigurationServicesClientListResponse
- type ConfigurationServicesClientValidateResponse
- type ContainerProbeSettings
- type ContentCertificateProperties
- type CreatedByType
- type CustomContainer
- type CustomContainerUserSourceInfo
- type CustomDomainProperties
- type CustomDomainResource
- type CustomDomainResourceCollection
- type CustomDomainResourceProvisioningState
- type CustomDomainValidatePayload
- type CustomDomainValidateResult
- type CustomDomainsClient
- func (client *CustomDomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[CustomDomainsClientCreateOrUpdateResponse], error)
- func (client *CustomDomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[CustomDomainsClientDeleteResponse], error)
- func (client *CustomDomainsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[CustomDomainsClientUpdateResponse], error)
- func (client *CustomDomainsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (CustomDomainsClientGetResponse, error)
- func (client *CustomDomainsClient) NewListPager(resourceGroupName string, serviceName string, appName string, ...) *runtime.Pager[CustomDomainsClientListResponse]
- type CustomDomainsClientBeginCreateOrUpdateOptions
- type CustomDomainsClientBeginDeleteOptions
- type CustomDomainsClientBeginUpdateOptions
- type CustomDomainsClientCreateOrUpdateResponse
- type CustomDomainsClientDeleteResponse
- type CustomDomainsClientGetOptions
- type CustomDomainsClientGetResponse
- type CustomDomainsClientListOptions
- type CustomDomainsClientListResponse
- type CustomDomainsClientUpdateResponse
- type CustomPersistentDiskProperties
- type CustomPersistentDiskPropertiesClassification
- type CustomPersistentDiskResource
- type CustomizedAcceleratorProperties
- type CustomizedAcceleratorProvisioningState
- type CustomizedAcceleratorResource
- type CustomizedAcceleratorResourceCollection
- type CustomizedAcceleratorValidateResult
- type CustomizedAcceleratorValidateResultState
- type CustomizedAcceleratorsClient
- func (client *CustomizedAcceleratorsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[CustomizedAcceleratorsClientCreateOrUpdateResponse], error)
- func (client *CustomizedAcceleratorsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[CustomizedAcceleratorsClientDeleteResponse], error)
- func (client *CustomizedAcceleratorsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (CustomizedAcceleratorsClientGetResponse, error)
- func (client *CustomizedAcceleratorsClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[CustomizedAcceleratorsClientListResponse]
- func (client *CustomizedAcceleratorsClient) Validate(ctx context.Context, resourceGroupName string, serviceName string, ...) (CustomizedAcceleratorsClientValidateResponse, error)
- type CustomizedAcceleratorsClientBeginCreateOrUpdateOptions
- type CustomizedAcceleratorsClientBeginDeleteOptions
- type CustomizedAcceleratorsClientCreateOrUpdateResponse
- type CustomizedAcceleratorsClientDeleteResponse
- type CustomizedAcceleratorsClientGetOptions
- type CustomizedAcceleratorsClientGetResponse
- type CustomizedAcceleratorsClientListOptions
- type CustomizedAcceleratorsClientListResponse
- type CustomizedAcceleratorsClientValidateOptions
- type CustomizedAcceleratorsClientValidateResponse
- type DeploymentInstance
- type DeploymentList
- type DeploymentResource
- type DeploymentResourceCollection
- type DeploymentResourceProperties
- type DeploymentResourceProvisioningState
- type DeploymentResourceStatus
- type DeploymentSettings
- type DeploymentsClient
- func (client *DeploymentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientCreateOrUpdateResponse], error)
- func (client *DeploymentsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientDeleteResponse], error)
- func (client *DeploymentsClient) BeginDisableRemoteDebugging(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientDisableRemoteDebuggingResponse], error)
- func (client *DeploymentsClient) BeginEnableRemoteDebugging(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientEnableRemoteDebuggingResponse], error)
- func (client *DeploymentsClient) BeginGenerateHeapDump(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientGenerateHeapDumpResponse], error)
- func (client *DeploymentsClient) BeginGenerateThreadDump(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientGenerateThreadDumpResponse], error)
- func (client *DeploymentsClient) BeginRestart(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientRestartResponse], error)
- func (client *DeploymentsClient) BeginStart(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientStartResponse], error)
- func (client *DeploymentsClient) BeginStartJFR(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientStartJFRResponse], error)
- func (client *DeploymentsClient) BeginStop(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientStopResponse], error)
- func (client *DeploymentsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DeploymentsClientUpdateResponse], error)
- func (client *DeploymentsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientGetResponse, error)
- func (client *DeploymentsClient) GetLogFileURL(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientGetLogFileURLResponse, error)
- func (client *DeploymentsClient) GetRemoteDebuggingConfig(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientGetRemoteDebuggingConfigResponse, error)
- func (client *DeploymentsClient) NewListForClusterPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[DeploymentsClientListForClusterResponse]
- func (client *DeploymentsClient) NewListPager(resourceGroupName string, serviceName string, appName string, ...) *runtime.Pager[DeploymentsClientListResponse]
- type DeploymentsClientBeginCreateOrUpdateOptions
- type DeploymentsClientBeginDeleteOptions
- type DeploymentsClientBeginDisableRemoteDebuggingOptions
- type DeploymentsClientBeginEnableRemoteDebuggingOptions
- type DeploymentsClientBeginGenerateHeapDumpOptions
- type DeploymentsClientBeginGenerateThreadDumpOptions
- type DeploymentsClientBeginRestartOptions
- type DeploymentsClientBeginStartJFROptions
- type DeploymentsClientBeginStartOptions
- type DeploymentsClientBeginStopOptions
- type DeploymentsClientBeginUpdateOptions
- type DeploymentsClientCreateOrUpdateResponse
- type DeploymentsClientDeleteResponse
- type DeploymentsClientDisableRemoteDebuggingResponse
- type DeploymentsClientEnableRemoteDebuggingResponse
- type DeploymentsClientGenerateHeapDumpResponse
- type DeploymentsClientGenerateThreadDumpResponse
- type DeploymentsClientGetLogFileURLOptions
- type DeploymentsClientGetLogFileURLResponse
- type DeploymentsClientGetOptions
- type DeploymentsClientGetRemoteDebuggingConfigOptions
- type DeploymentsClientGetRemoteDebuggingConfigResponse
- type DeploymentsClientGetResponse
- type DeploymentsClientListForClusterOptions
- type DeploymentsClientListForClusterResponse
- type DeploymentsClientListOptions
- type DeploymentsClientListResponse
- type DeploymentsClientRestartResponse
- type DeploymentsClientStartJFRResponse
- type DeploymentsClientStartResponse
- type DeploymentsClientStopResponse
- type DeploymentsClientUpdateResponse
- type DevToolPortalFeatureDetail
- type DevToolPortalFeatureSettings
- type DevToolPortalFeatureState
- type DevToolPortalInstance
- type DevToolPortalProperties
- type DevToolPortalProvisioningState
- type DevToolPortalResource
- type DevToolPortalResourceCollection
- type DevToolPortalResourceRequests
- type DevToolPortalSsoProperties
- type DevToolPortalsClient
- func (client *DevToolPortalsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DevToolPortalsClientCreateOrUpdateResponse], error)
- func (client *DevToolPortalsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[DevToolPortalsClientDeleteResponse], error)
- func (client *DevToolPortalsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (DevToolPortalsClientGetResponse, error)
- func (client *DevToolPortalsClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[DevToolPortalsClientListResponse]
- type DevToolPortalsClientBeginCreateOrUpdateOptions
- type DevToolPortalsClientBeginDeleteOptions
- type DevToolPortalsClientCreateOrUpdateResponse
- type DevToolPortalsClientDeleteResponse
- type DevToolPortalsClientGetOptions
- type DevToolPortalsClientGetResponse
- type DevToolPortalsClientListOptions
- type DevToolPortalsClientListResponse
- type DiagnosticParameters
- type Error
- type ExecAction
- type GatewayAPIMetadataProperties
- type GatewayAPIRoute
- type GatewayCorsProperties
- type GatewayCustomDomainProperties
- type GatewayCustomDomainResource
- type GatewayCustomDomainResourceCollection
- type GatewayCustomDomainsClient
- func (client *GatewayCustomDomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[GatewayCustomDomainsClientCreateOrUpdateResponse], error)
- func (client *GatewayCustomDomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[GatewayCustomDomainsClientDeleteResponse], error)
- func (client *GatewayCustomDomainsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewayCustomDomainsClientGetResponse, error)
- func (client *GatewayCustomDomainsClient) NewListPager(resourceGroupName string, serviceName string, gatewayName string, ...) *runtime.Pager[GatewayCustomDomainsClientListResponse]
- type GatewayCustomDomainsClientBeginCreateOrUpdateOptions
- type GatewayCustomDomainsClientBeginDeleteOptions
- type GatewayCustomDomainsClientCreateOrUpdateResponse
- type GatewayCustomDomainsClientDeleteResponse
- type GatewayCustomDomainsClientGetOptions
- type GatewayCustomDomainsClientGetResponse
- type GatewayCustomDomainsClientListOptions
- type GatewayCustomDomainsClientListResponse
- type GatewayInstance
- type GatewayOperatorProperties
- type GatewayOperatorResourceRequests
- type GatewayProperties
- type GatewayPropertiesEnvironmentVariables
- type GatewayProvisioningState
- type GatewayResource
- type GatewayResourceCollection
- type GatewayResourceRequests
- type GatewayRouteConfigOpenAPIProperties
- type GatewayRouteConfigProperties
- type GatewayRouteConfigProtocol
- type GatewayRouteConfigResource
- type GatewayRouteConfigResourceCollection
- type GatewayRouteConfigsClient
- func (client *GatewayRouteConfigsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[GatewayRouteConfigsClientCreateOrUpdateResponse], error)
- func (client *GatewayRouteConfigsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[GatewayRouteConfigsClientDeleteResponse], error)
- func (client *GatewayRouteConfigsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewayRouteConfigsClientGetResponse, error)
- func (client *GatewayRouteConfigsClient) NewListPager(resourceGroupName string, serviceName string, gatewayName string, ...) *runtime.Pager[GatewayRouteConfigsClientListResponse]
- type GatewayRouteConfigsClientBeginCreateOrUpdateOptions
- type GatewayRouteConfigsClientBeginDeleteOptions
- type GatewayRouteConfigsClientCreateOrUpdateResponse
- type GatewayRouteConfigsClientDeleteResponse
- type GatewayRouteConfigsClientGetOptions
- type GatewayRouteConfigsClientGetResponse
- type GatewayRouteConfigsClientListOptions
- type GatewayRouteConfigsClientListResponse
- type GatewaysClient
- func (client *GatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[GatewaysClientCreateOrUpdateResponse], error)
- func (client *GatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[GatewaysClientDeleteResponse], error)
- func (client *GatewaysClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewaysClientGetResponse, error)
- func (client *GatewaysClient) ListEnvSecrets(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewaysClientListEnvSecretsResponse, error)
- func (client *GatewaysClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[GatewaysClientListResponse]
- func (client *GatewaysClient) ValidateDomain(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewaysClientValidateDomainResponse, error)
- type GatewaysClientBeginCreateOrUpdateOptions
- type GatewaysClientBeginDeleteOptions
- type GatewaysClientCreateOrUpdateResponse
- type GatewaysClientDeleteResponse
- type GatewaysClientGetOptions
- type GatewaysClientGetResponse
- type GatewaysClientListEnvSecretsOptions
- type GatewaysClientListEnvSecretsResponse
- type GatewaysClientListOptions
- type GatewaysClientListResponse
- type GatewaysClientValidateDomainOptions
- type GatewaysClientValidateDomainResponse
- type GitPatternRepository
- type HTTPGetAction
- type HTTPSchemeType
- type ImageRegistryCredential
- type IngressConfig
- type IngressSettings
- type IngressSettingsClientAuth
- type JarUploadedUserSourceInfo
- type KPackBuildStageProvisioningState
- type KeyVaultCertificateProperties
- type LastModifiedByType
- type LoadedCertificate
- type LogFileURLResponse
- type LogSpecification
- type ManagedIdentityProperties
- type ManagedIdentityType
- type MarketplaceResource
- type MetricDimension
- type MetricSpecification
- type MonitoringSettingProperties
- type MonitoringSettingResource
- type MonitoringSettingState
- type MonitoringSettingsClient
- func (client *MonitoringSettingsClient) BeginUpdatePatch(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[MonitoringSettingsClientUpdatePatchResponse], error)
- func (client *MonitoringSettingsClient) BeginUpdatePut(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[MonitoringSettingsClientUpdatePutResponse], error)
- func (client *MonitoringSettingsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (MonitoringSettingsClientGetResponse, error)
- type MonitoringSettingsClientBeginUpdatePatchOptions
- type MonitoringSettingsClientBeginUpdatePutOptions
- type MonitoringSettingsClientGetOptions
- type MonitoringSettingsClientGetResponse
- type MonitoringSettingsClientUpdatePatchResponse
- type MonitoringSettingsClientUpdatePutResponse
- type NameAvailability
- type NameAvailabilityParameters
- type NetCoreZipUploadedUserSourceInfo
- func (n *NetCoreZipUploadedUserSourceInfo) GetUploadedUserSourceInfo() *UploadedUserSourceInfo
- func (n *NetCoreZipUploadedUserSourceInfo) GetUserSourceInfo() *UserSourceInfo
- func (n NetCoreZipUploadedUserSourceInfo) MarshalJSON() ([]byte, error)
- func (n *NetCoreZipUploadedUserSourceInfo) UnmarshalJSON(data []byte) error
- type NetworkProfile
- type NetworkProfileOutboundIPs
- type OperationDetail
- type OperationDisplay
- type OperationProperties
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type PersistentDisk
- type PowerState
- type PredefinedAcceleratorProperties
- type PredefinedAcceleratorProvisioningState
- type PredefinedAcceleratorResource
- type PredefinedAcceleratorResourceCollection
- type PredefinedAcceleratorState
- type PredefinedAcceleratorsClient
- func (client *PredefinedAcceleratorsClient) BeginDisable(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[PredefinedAcceleratorsClientDisableResponse], error)
- func (client *PredefinedAcceleratorsClient) BeginEnable(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[PredefinedAcceleratorsClientEnableResponse], error)
- func (client *PredefinedAcceleratorsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (PredefinedAcceleratorsClientGetResponse, error)
- func (client *PredefinedAcceleratorsClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[PredefinedAcceleratorsClientListResponse]
- type PredefinedAcceleratorsClientBeginDisableOptions
- type PredefinedAcceleratorsClientBeginEnableOptions
- type PredefinedAcceleratorsClientDisableResponse
- type PredefinedAcceleratorsClientEnableResponse
- type PredefinedAcceleratorsClientGetOptions
- type PredefinedAcceleratorsClientGetResponse
- type PredefinedAcceleratorsClientListOptions
- type PredefinedAcceleratorsClientListResponse
- type Probe
- type ProbeAction
- type ProbeActionClassification
- type ProbeActionType
- type ProvisioningState
- type ProxyResource
- type RegenerateTestKeyRequestPayload
- type RemoteDebugging
- type RemoteDebuggingPayload
- type RequiredTraffic
- type Resource
- type ResourceRequests
- type ResourceSKU
- type ResourceSKUCapabilities
- type ResourceSKUCollection
- type ResourceSKULocationInfo
- type ResourceSKURestrictionInfo
- type ResourceSKURestrictions
- type ResourceSKURestrictionsReasonCode
- type ResourceSKURestrictionsType
- type ResourceSKUZoneDetails
- type ResourceUploadDefinition
- type RuntimeVersionsClient
- type RuntimeVersionsClientListRuntimeVersionsOptions
- type RuntimeVersionsClientListRuntimeVersionsResponse
- type SKU
- type SKUCapacity
- type SKUScaleType
- type SKUsClient
- type SKUsClientListOptions
- type SKUsClientListResponse
- type ServiceRegistriesClient
- func (client *ServiceRegistriesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ServiceRegistriesClientCreateOrUpdateResponse], error)
- func (client *ServiceRegistriesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ServiceRegistriesClientDeleteResponse], error)
- func (client *ServiceRegistriesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServiceRegistriesClientGetResponse, error)
- func (client *ServiceRegistriesClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[ServiceRegistriesClientListResponse]
- type ServiceRegistriesClientBeginCreateOrUpdateOptions
- type ServiceRegistriesClientBeginDeleteOptions
- type ServiceRegistriesClientCreateOrUpdateResponse
- type ServiceRegistriesClientDeleteResponse
- type ServiceRegistriesClientGetOptions
- type ServiceRegistriesClientGetResponse
- type ServiceRegistriesClientListOptions
- type ServiceRegistriesClientListResponse
- type ServiceRegistryInstance
- type ServiceRegistryProperties
- type ServiceRegistryProvisioningState
- type ServiceRegistryResource
- type ServiceRegistryResourceCollection
- type ServiceRegistryResourceRequests
- type ServiceResource
- type ServiceResourceList
- type ServiceSpecification
- type ServiceVNetAddons
- type ServicesClient
- func (client *ServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ServicesClientCreateOrUpdateResponse], error)
- func (client *ServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ServicesClientDeleteResponse], error)
- func (client *ServicesClient) BeginStart(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ServicesClientStartResponse], error)
- func (client *ServicesClient) BeginStop(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ServicesClientStopResponse], error)
- func (client *ServicesClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[ServicesClientUpdateResponse], error)
- func (client *ServicesClient) CheckNameAvailability(ctx context.Context, location string, ...) (ServicesClientCheckNameAvailabilityResponse, error)
- func (client *ServicesClient) DisableTestEndpoint(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientDisableTestEndpointResponse, error)
- func (client *ServicesClient) EnableTestEndpoint(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientEnableTestEndpointResponse, error)
- func (client *ServicesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientGetResponse, error)
- func (client *ServicesClient) ListTestKeys(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientListTestKeysResponse, error)
- func (client *ServicesClient) NewListBySubscriptionPager(options *ServicesClientListBySubscriptionOptions) *runtime.Pager[ServicesClientListBySubscriptionResponse]
- func (client *ServicesClient) NewListPager(resourceGroupName string, options *ServicesClientListOptions) *runtime.Pager[ServicesClientListResponse]
- func (client *ServicesClient) RegenerateTestKey(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientRegenerateTestKeyResponse, error)
- type ServicesClientBeginCreateOrUpdateOptions
- type ServicesClientBeginDeleteOptions
- type ServicesClientBeginStartOptions
- type ServicesClientBeginStopOptions
- type ServicesClientBeginUpdateOptions
- type ServicesClientCheckNameAvailabilityOptions
- type ServicesClientCheckNameAvailabilityResponse
- type ServicesClientCreateOrUpdateResponse
- type ServicesClientDeleteResponse
- type ServicesClientDisableTestEndpointOptions
- type ServicesClientDisableTestEndpointResponse
- type ServicesClientEnableTestEndpointOptions
- type ServicesClientEnableTestEndpointResponse
- type ServicesClientGetOptions
- type ServicesClientGetResponse
- type ServicesClientListBySubscriptionOptions
- type ServicesClientListBySubscriptionResponse
- type ServicesClientListOptions
- type ServicesClientListResponse
- type ServicesClientListTestKeysOptions
- type ServicesClientListTestKeysResponse
- type ServicesClientRegenerateTestKeyOptions
- type ServicesClientRegenerateTestKeyResponse
- type ServicesClientStartResponse
- type ServicesClientStopResponse
- type ServicesClientUpdateResponse
- type SessionAffinity
- type SourceUploadedUserSourceInfo
- func (s *SourceUploadedUserSourceInfo) GetUploadedUserSourceInfo() *UploadedUserSourceInfo
- func (s *SourceUploadedUserSourceInfo) GetUserSourceInfo() *UserSourceInfo
- func (s SourceUploadedUserSourceInfo) MarshalJSON() ([]byte, error)
- func (s *SourceUploadedUserSourceInfo) UnmarshalJSON(data []byte) error
- type SsoProperties
- type StackProperties
- type StorageAccount
- type StorageProperties
- type StoragePropertiesClassification
- type StorageResource
- type StorageResourceCollection
- type StorageType
- type StoragesClient
- func (client *StoragesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[StoragesClientCreateOrUpdateResponse], error)
- func (client *StoragesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[StoragesClientDeleteResponse], error)
- func (client *StoragesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (StoragesClientGetResponse, error)
- func (client *StoragesClient) NewListPager(resourceGroupName string, serviceName string, ...) *runtime.Pager[StoragesClientListResponse]
- type StoragesClientBeginCreateOrUpdateOptions
- type StoragesClientBeginDeleteOptions
- type StoragesClientCreateOrUpdateResponse
- type StoragesClientDeleteResponse
- type StoragesClientGetOptions
- type StoragesClientGetResponse
- type StoragesClientListOptions
- type StoragesClientListResponse
- type SupportedBuildpackResource
- type SupportedBuildpackResourceProperties
- type SupportedBuildpacksCollection
- type SupportedRuntimePlatform
- type SupportedRuntimeValue
- type SupportedRuntimeVersion
- type SupportedStackResource
- type SupportedStackResourceProperties
- type SupportedStacksCollection
- type SystemData
- type TCPSocketAction
- type TemporaryDisk
- type TestKeyType
- type TestKeys
- type TrackedResource
- type TrafficDirection
- type TriggeredBuildResult
- type Type
- type UploadedUserSourceInfo
- type UploadedUserSourceInfoClassification
- type UserAssignedManagedIdentity
- type UserSourceInfo
- type UserSourceInfoClassification
- type ValidationMessages
Examples ¶
- APIPortalCustomDomainsClient.BeginCreateOrUpdate
- APIPortalCustomDomainsClient.BeginDelete
- APIPortalCustomDomainsClient.Get
- APIPortalCustomDomainsClient.NewListPager
- APIPortalsClient.BeginCreateOrUpdate
- APIPortalsClient.BeginDelete
- APIPortalsClient.Get
- APIPortalsClient.NewListPager
- APIPortalsClient.ValidateDomain
- ApplicationAcceleratorsClient.BeginCreateOrUpdate
- ApplicationAcceleratorsClient.BeginDelete
- ApplicationAcceleratorsClient.Get
- ApplicationAcceleratorsClient.NewListPager
- ApplicationLiveViewsClient.BeginCreateOrUpdate
- ApplicationLiveViewsClient.BeginDelete
- ApplicationLiveViewsClient.Get
- ApplicationLiveViewsClient.NewListPager
- AppsClient.BeginCreateOrUpdate (AppsCreateOrUpdate)
- AppsClient.BeginCreateOrUpdate (AppsCreateOrUpdateVNetInjection)
- AppsClient.BeginDelete
- AppsClient.BeginSetActiveDeployments
- AppsClient.BeginUpdate (AppsUpdate)
- AppsClient.BeginUpdate (AppsUpdateVNetInjection)
- AppsClient.Get (AppsGet)
- AppsClient.Get (AppsGetVNetInjection)
- AppsClient.GetResourceUploadURL
- AppsClient.NewListPager (AppsList)
- AppsClient.NewListPager (AppsListVNetInjection)
- AppsClient.ValidateDomain
- BindingsClient.BeginCreateOrUpdate
- BindingsClient.BeginDelete
- BindingsClient.BeginUpdate
- BindingsClient.Get
- BindingsClient.NewListPager
- BuildServiceAgentPoolClient.BeginUpdatePut
- BuildServiceAgentPoolClient.Get
- BuildServiceAgentPoolClient.NewListPager
- BuildServiceBuilderClient.BeginCreateOrUpdate
- BuildServiceBuilderClient.BeginDelete
- BuildServiceBuilderClient.Get
- BuildServiceBuilderClient.ListDeployments
- BuildServiceBuilderClient.NewListPager
- BuildServiceClient.CreateOrUpdateBuild
- BuildServiceClient.GetBuild
- BuildServiceClient.GetBuildResult
- BuildServiceClient.GetBuildResultLog
- BuildServiceClient.GetBuildService
- BuildServiceClient.GetResourceUploadURL
- BuildServiceClient.GetSupportedBuildpack
- BuildServiceClient.GetSupportedStack
- BuildServiceClient.ListSupportedBuildpacks
- BuildServiceClient.ListSupportedStacks
- BuildServiceClient.NewListBuildResultsPager
- BuildServiceClient.NewListBuildServicesPager
- BuildServiceClient.NewListBuildsPager
- BuildpackBindingClient.BeginCreateOrUpdate
- BuildpackBindingClient.BeginDelete
- BuildpackBindingClient.Get
- BuildpackBindingClient.NewListPager
- CertificatesClient.BeginCreateOrUpdate
- CertificatesClient.BeginDelete
- CertificatesClient.Get
- CertificatesClient.NewListPager
- ConfigServersClient.BeginUpdatePatch
- ConfigServersClient.BeginUpdatePut
- ConfigServersClient.BeginValidate
- ConfigServersClient.Get
- ConfigurationServicesClient.BeginCreateOrUpdate
- ConfigurationServicesClient.BeginDelete
- ConfigurationServicesClient.BeginValidate
- ConfigurationServicesClient.Get
- ConfigurationServicesClient.NewListPager
- CustomDomainsClient.BeginCreateOrUpdate
- CustomDomainsClient.BeginDelete
- CustomDomainsClient.BeginUpdate
- CustomDomainsClient.Get
- CustomDomainsClient.NewListPager
- CustomizedAcceleratorsClient.BeginCreateOrUpdate
- CustomizedAcceleratorsClient.BeginDelete
- CustomizedAcceleratorsClient.Get
- CustomizedAcceleratorsClient.NewListPager
- CustomizedAcceleratorsClient.Validate
- DeploymentsClient.BeginCreateOrUpdate (DeploymentsCreateOrUpdate)
- DeploymentsClient.BeginCreateOrUpdate (DeploymentsCreateOrUpdateCustomContainer)
- DeploymentsClient.BeginDelete
- DeploymentsClient.BeginDisableRemoteDebugging
- DeploymentsClient.BeginEnableRemoteDebugging
- DeploymentsClient.BeginGenerateHeapDump
- DeploymentsClient.BeginGenerateThreadDump
- DeploymentsClient.BeginRestart
- DeploymentsClient.BeginStart
- DeploymentsClient.BeginStartJFR
- DeploymentsClient.BeginStop
- DeploymentsClient.BeginUpdate (DeploymentsUpdate)
- DeploymentsClient.BeginUpdate (DeploymentsUpdateCustomContainer)
- DeploymentsClient.Get (DeploymentsGet)
- DeploymentsClient.Get (DeploymentsGetCustomContainer)
- DeploymentsClient.GetLogFileURL
- DeploymentsClient.GetRemoteDebuggingConfig
- DeploymentsClient.NewListForClusterPager
- DeploymentsClient.NewListPager
- DevToolPortalsClient.BeginCreateOrUpdate
- DevToolPortalsClient.BeginDelete
- DevToolPortalsClient.Get
- DevToolPortalsClient.NewListPager
- GatewayCustomDomainsClient.BeginCreateOrUpdate
- GatewayCustomDomainsClient.BeginDelete
- GatewayCustomDomainsClient.Get
- GatewayCustomDomainsClient.NewListPager
- GatewayRouteConfigsClient.BeginCreateOrUpdate
- GatewayRouteConfigsClient.BeginDelete
- GatewayRouteConfigsClient.Get
- GatewayRouteConfigsClient.NewListPager
- GatewaysClient.BeginCreateOrUpdate
- GatewaysClient.BeginDelete
- GatewaysClient.Get
- GatewaysClient.ListEnvSecrets
- GatewaysClient.NewListPager
- GatewaysClient.ValidateDomain
- MonitoringSettingsClient.BeginUpdatePatch
- MonitoringSettingsClient.BeginUpdatePut
- MonitoringSettingsClient.Get
- OperationsClient.NewListPager
- PredefinedAcceleratorsClient.BeginDisable
- PredefinedAcceleratorsClient.BeginEnable
- PredefinedAcceleratorsClient.Get
- PredefinedAcceleratorsClient.NewListPager
- RuntimeVersionsClient.ListRuntimeVersions
- SKUsClient.NewListPager
- ServiceRegistriesClient.BeginCreateOrUpdate
- ServiceRegistriesClient.BeginDelete
- ServiceRegistriesClient.Get
- ServiceRegistriesClient.NewListPager
- ServicesClient.BeginCreateOrUpdate (ServicesCreateOrUpdate)
- ServicesClient.BeginCreateOrUpdate (ServicesCreateOrUpdateEnterprise)
- ServicesClient.BeginCreateOrUpdate (ServicesCreateOrUpdateVNetInjection)
- ServicesClient.BeginDelete
- ServicesClient.BeginStart
- ServicesClient.BeginStop
- ServicesClient.BeginUpdate
- ServicesClient.CheckNameAvailability
- ServicesClient.DisableTestEndpoint
- ServicesClient.EnableTestEndpoint
- ServicesClient.Get
- ServicesClient.ListTestKeys
- ServicesClient.NewListBySubscriptionPager
- ServicesClient.NewListPager
- ServicesClient.RegenerateTestKey
- StoragesClient.BeginCreateOrUpdate
- StoragesClient.BeginDelete
- StoragesClient.Get
- StoragesClient.NewListPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIPortalCustomDomainProperties ¶ added in v0.3.0
type APIPortalCustomDomainProperties struct { // The thumbprint of bound certificate. Thumbprint *string `json:"thumbprint,omitempty"` }
APIPortalCustomDomainProperties - The properties of custom domain for API portal
func (APIPortalCustomDomainProperties) MarshalJSON ¶
func (a APIPortalCustomDomainProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIPortalCustomDomainProperties.
func (*APIPortalCustomDomainProperties) UnmarshalJSON ¶
func (a *APIPortalCustomDomainProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type APIPortalCustomDomainProperties.
type APIPortalCustomDomainResource ¶ added in v0.3.0
type APIPortalCustomDomainResource struct { // The properties of custom domain for API portal Properties *APIPortalCustomDomainProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
APIPortalCustomDomainResource - Custom domain of the API portal
func (APIPortalCustomDomainResource) MarshalJSON ¶
func (a APIPortalCustomDomainResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIPortalCustomDomainResource.
func (*APIPortalCustomDomainResource) UnmarshalJSON ¶
func (a *APIPortalCustomDomainResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type APIPortalCustomDomainResource.
type APIPortalCustomDomainResourceCollection ¶ added in v0.3.0
type APIPortalCustomDomainResourceCollection 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 API portal custom domain resources Value []*APIPortalCustomDomainResource `json:"value,omitempty"` }
APIPortalCustomDomainResourceCollection - Object that includes an array of API portal custom domain resources and a possible link for next set
func (APIPortalCustomDomainResourceCollection) MarshalJSON ¶ added in v0.3.0
func (a APIPortalCustomDomainResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIPortalCustomDomainResourceCollection.
func (*APIPortalCustomDomainResourceCollection) UnmarshalJSON ¶
func (a *APIPortalCustomDomainResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type APIPortalCustomDomainResourceCollection.
type APIPortalCustomDomainsClient ¶ added in v0.3.0
type APIPortalCustomDomainsClient struct {
// contains filtered or unexported fields
}
APIPortalCustomDomainsClient contains the methods for the APIPortalCustomDomains group. Don't use this type directly, use NewAPIPortalCustomDomainsClient() instead.
func NewAPIPortalCustomDomainsClient ¶ added in v0.3.0
func NewAPIPortalCustomDomainsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*APIPortalCustomDomainsClient, error)
NewAPIPortalCustomDomainsClient creates a new instance of APIPortalCustomDomainsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*APIPortalCustomDomainsClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *APIPortalCustomDomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiPortalName string, domainName string, apiPortalCustomDomainResource APIPortalCustomDomainResource, options *APIPortalCustomDomainsClientBeginCreateOrUpdateOptions) (*runtime.Poller[APIPortalCustomDomainsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the API portal custom domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- apiPortalName - The name of API portal.
- domainName - The name of the API portal custom domain.
- apiPortalCustomDomainResource - The API portal custom domain for the create or update operation
- options - APIPortalCustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the APIPortalCustomDomainsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApiPortalCustomDomains_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAPIPortalCustomDomainsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", "myDomainName", armappplatform.APIPortalCustomDomainResource{ Properties: &armappplatform.APIPortalCustomDomainProperties{ Thumbprint: to.Ptr("*"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.APIPortalCustomDomainResource = armappplatform.APIPortalCustomDomainResource{ // Name: to.Ptr("myDomainName"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apiPortals/domains"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apiPortals/default/domains/myDomainName"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.APIPortalCustomDomainProperties{ // Thumbprint: to.Ptr("*"), // }, // } }
Output:
func (*APIPortalCustomDomainsClient) BeginDelete ¶ added in v0.3.0
func (client *APIPortalCustomDomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, apiPortalName string, domainName string, options *APIPortalCustomDomainsClientBeginDeleteOptions) (*runtime.Poller[APIPortalCustomDomainsClientDeleteResponse], error)
BeginDelete - Delete the API portal custom domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- apiPortalName - The name of API portal.
- domainName - The name of the API portal custom domain.
- options - APIPortalCustomDomainsClientBeginDeleteOptions contains the optional parameters for the APIPortalCustomDomainsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApiPortalCustomDomains_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAPIPortalCustomDomainsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", "myDomainName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*APIPortalCustomDomainsClient) Get ¶ added in v0.3.0
func (client *APIPortalCustomDomainsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiPortalName string, domainName string, options *APIPortalCustomDomainsClientGetOptions) (APIPortalCustomDomainsClientGetResponse, error)
Get - Get the API portal custom domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- apiPortalName - The name of API portal.
- domainName - The name of the API portal custom domain.
- options - APIPortalCustomDomainsClientGetOptions contains the optional parameters for the APIPortalCustomDomainsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApiPortalCustomDomains_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAPIPortalCustomDomainsClient().Get(ctx, "myResourceGroup", "myservice", "default", "myDomainName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.APIPortalCustomDomainResource = armappplatform.APIPortalCustomDomainResource{ // Name: to.Ptr("myDomainName"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apiPortals/domains"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apiPortals/default/domains/myDomainName"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.APIPortalCustomDomainProperties{ // Thumbprint: to.Ptr("*"), // }, // } }
Output:
func (*APIPortalCustomDomainsClient) NewListPager ¶ added in v0.5.0
func (client *APIPortalCustomDomainsClient) NewListPager(resourceGroupName string, serviceName string, apiPortalName string, options *APIPortalCustomDomainsClientListOptions) *runtime.Pager[APIPortalCustomDomainsClientListResponse]
NewListPager - Handle requests to list all API portal custom domains.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- apiPortalName - The name of API portal.
- options - APIPortalCustomDomainsClientListOptions contains the optional parameters for the APIPortalCustomDomainsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApiPortalCustomDomains_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewAPIPortalCustomDomainsClient().NewListPager("myResourceGroup", "myservice", "default", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.APIPortalCustomDomainResourceCollection = armappplatform.APIPortalCustomDomainResourceCollection{ // Value: []*armappplatform.APIPortalCustomDomainResource{ // { // Name: to.Ptr("myDomain"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apiPortals/domains"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apiPortals/default/domains/myDomain"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.APIPortalCustomDomainProperties{ // Thumbprint: to.Ptr("*"), // }, // }}, // } } }
Output:
type APIPortalCustomDomainsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type APIPortalCustomDomainsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
APIPortalCustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the APIPortalCustomDomainsClient.BeginCreateOrUpdate method.
type APIPortalCustomDomainsClientBeginDeleteOptions ¶ added in v0.3.0
type APIPortalCustomDomainsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
APIPortalCustomDomainsClientBeginDeleteOptions contains the optional parameters for the APIPortalCustomDomainsClient.BeginDelete method.
type APIPortalCustomDomainsClientCreateOrUpdateResponse ¶ added in v0.3.0
type APIPortalCustomDomainsClientCreateOrUpdateResponse struct {
APIPortalCustomDomainResource
}
APIPortalCustomDomainsClientCreateOrUpdateResponse contains the response from method APIPortalCustomDomainsClient.BeginCreateOrUpdate.
type APIPortalCustomDomainsClientDeleteResponse ¶ added in v0.3.0
type APIPortalCustomDomainsClientDeleteResponse struct { }
APIPortalCustomDomainsClientDeleteResponse contains the response from method APIPortalCustomDomainsClient.BeginDelete.
type APIPortalCustomDomainsClientGetOptions ¶ added in v0.3.0
type APIPortalCustomDomainsClientGetOptions struct { }
APIPortalCustomDomainsClientGetOptions contains the optional parameters for the APIPortalCustomDomainsClient.Get method.
type APIPortalCustomDomainsClientGetResponse ¶ added in v0.3.0
type APIPortalCustomDomainsClientGetResponse struct {
APIPortalCustomDomainResource
}
APIPortalCustomDomainsClientGetResponse contains the response from method APIPortalCustomDomainsClient.Get.
type APIPortalCustomDomainsClientListOptions ¶ added in v0.3.0
type APIPortalCustomDomainsClientListOptions struct { }
APIPortalCustomDomainsClientListOptions contains the optional parameters for the APIPortalCustomDomainsClient.NewListPager method.
type APIPortalCustomDomainsClientListResponse ¶ added in v0.3.0
type APIPortalCustomDomainsClientListResponse struct {
APIPortalCustomDomainResourceCollection
}
APIPortalCustomDomainsClientListResponse contains the response from method APIPortalCustomDomainsClient.NewListPager.
type APIPortalInstance ¶ added in v0.3.0
type APIPortalInstance struct { // READ-ONLY; Name of the API portal instance Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the API portal instance Status *string `json:"status,omitempty" azure:"ro"` }
APIPortalInstance - Collection of instances belong to the API portal
func (APIPortalInstance) MarshalJSON ¶
func (a APIPortalInstance) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIPortalInstance.
func (*APIPortalInstance) UnmarshalJSON ¶
func (a *APIPortalInstance) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type APIPortalInstance.
type APIPortalProperties ¶ added in v0.3.0
type APIPortalProperties struct { // The array of resource Ids of gateway to integrate with API portal. GatewayIDs []*string `json:"gatewayIds,omitempty"` // Indicate if only https is allowed. HTTPSOnly *bool `json:"httpsOnly,omitempty"` // Indicates whether the API portal exposes endpoint. Public *bool `json:"public,omitempty"` // Collection of OpenAPI source URL locations. SourceUrls []*string `json:"sourceUrls,omitempty"` // Single sign-on related configuration SsoProperties *SsoProperties `json:"ssoProperties,omitempty"` // READ-ONLY; Collection of instances belong to API portal. Instances []*APIPortalInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; State of the API portal. ProvisioningState *APIPortalProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The requested resource quantity for required CPU and Memory. ResourceRequests *APIPortalResourceRequests `json:"resourceRequests,omitempty" azure:"ro"` // READ-ONLY; URL of the API portal, exposed when 'public' is true. URL *string `json:"url,omitempty" azure:"ro"` }
APIPortalProperties - API portal properties payload
func (APIPortalProperties) MarshalJSON ¶ added in v0.3.0
func (a APIPortalProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIPortalProperties.
func (*APIPortalProperties) UnmarshalJSON ¶
func (a *APIPortalProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type APIPortalProperties.
type APIPortalProvisioningState ¶ added in v0.3.0
type APIPortalProvisioningState string
APIPortalProvisioningState - State of the API portal.
const ( APIPortalProvisioningStateCreating APIPortalProvisioningState = "Creating" APIPortalProvisioningStateDeleting APIPortalProvisioningState = "Deleting" APIPortalProvisioningStateFailed APIPortalProvisioningState = "Failed" APIPortalProvisioningStateSucceeded APIPortalProvisioningState = "Succeeded" APIPortalProvisioningStateUpdating APIPortalProvisioningState = "Updating" )
func PossibleAPIPortalProvisioningStateValues ¶ added in v0.3.0
func PossibleAPIPortalProvisioningStateValues() []APIPortalProvisioningState
PossibleAPIPortalProvisioningStateValues returns the possible values for the APIPortalProvisioningState const type.
type APIPortalResource ¶ added in v0.3.0
type APIPortalResource struct { // API portal properties payload Properties *APIPortalProperties `json:"properties,omitempty"` // Sku of the API portal resource SKU *SKU `json:"sku,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
APIPortalResource - API portal resource
func (APIPortalResource) MarshalJSON ¶
func (a APIPortalResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIPortalResource.
func (*APIPortalResource) UnmarshalJSON ¶
func (a *APIPortalResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type APIPortalResource.
type APIPortalResourceCollection ¶ added in v0.3.0
type APIPortalResourceCollection 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 API portal resources Value []*APIPortalResource `json:"value,omitempty"` }
APIPortalResourceCollection - Object that includes an array of API portal resources and a possible link for next set
func (APIPortalResourceCollection) MarshalJSON ¶ added in v0.3.0
func (a APIPortalResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIPortalResourceCollection.
func (*APIPortalResourceCollection) UnmarshalJSON ¶
func (a *APIPortalResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type APIPortalResourceCollection.
type APIPortalResourceRequests ¶ added in v0.3.0
type APIPortalResourceRequests struct { // READ-ONLY; Cpu allocated to each API portal instance CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to each API portal instance Memory *string `json:"memory,omitempty" azure:"ro"` }
APIPortalResourceRequests - Resource requests of the API portal
func (APIPortalResourceRequests) MarshalJSON ¶
func (a APIPortalResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIPortalResourceRequests.
func (*APIPortalResourceRequests) UnmarshalJSON ¶
func (a *APIPortalResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type APIPortalResourceRequests.
type APIPortalsClient ¶ added in v0.3.0
type APIPortalsClient struct {
// contains filtered or unexported fields
}
APIPortalsClient contains the methods for the APIPortals group. Don't use this type directly, use NewAPIPortalsClient() instead.
func NewAPIPortalsClient ¶ added in v0.3.0
func NewAPIPortalsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*APIPortalsClient, error)
NewAPIPortalsClient creates a new instance of APIPortalsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*APIPortalsClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *APIPortalsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiPortalName string, apiPortalResource APIPortalResource, options *APIPortalsClientBeginCreateOrUpdateOptions) (*runtime.Poller[APIPortalsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create the default API portal or update the existing API portal. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- apiPortalName - The name of API portal.
- apiPortalResource - The API portal for the create or update operation
- options - APIPortalsClientBeginCreateOrUpdateOptions contains the optional parameters for the APIPortalsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApiPortals_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAPIPortalsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", armappplatform.APIPortalResource{ Properties: &armappplatform.APIPortalProperties{ GatewayIDs: []*string{ to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default")}, Public: to.Ptr(true), }, SKU: &armappplatform.SKU{ Name: to.Ptr("E0"), Capacity: to.Ptr[int32](2), Tier: to.Ptr("Enterprise"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.APIPortalResource = armappplatform.APIPortalResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apiPortals"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apiPortals/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.APIPortalProperties{ // GatewayIDs: []*string{ // to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default")}, // Instances: []*armappplatform.APIPortalInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.APIPortalProvisioningStateSucceeded), // Public: to.Ptr(true), // ResourceRequests: &armappplatform.APIPortalResourceRequests{ // CPU: to.Ptr("1"), // Memory: to.Ptr("1G"), // }, // URL: to.Ptr("test-url"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // } }
Output:
func (*APIPortalsClient) BeginDelete ¶ added in v0.3.0
func (client *APIPortalsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, apiPortalName string, options *APIPortalsClientBeginDeleteOptions) (*runtime.Poller[APIPortalsClientDeleteResponse], error)
BeginDelete - Delete the default API portal. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- apiPortalName - The name of API portal.
- options - APIPortalsClientBeginDeleteOptions contains the optional parameters for the APIPortalsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApiPortals_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAPIPortalsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*APIPortalsClient) Get ¶ added in v0.3.0
func (client *APIPortalsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiPortalName string, options *APIPortalsClientGetOptions) (APIPortalsClientGetResponse, error)
Get - Get the API portal and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- apiPortalName - The name of API portal.
- options - APIPortalsClientGetOptions contains the optional parameters for the APIPortalsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApiPortals_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAPIPortalsClient().Get(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.APIPortalResource = armappplatform.APIPortalResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apiPortals"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apiPortals/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.APIPortalProperties{ // GatewayIDs: []*string{ // to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default")}, // Instances: []*armappplatform.APIPortalInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.APIPortalProvisioningStateSucceeded), // Public: to.Ptr(true), // ResourceRequests: &armappplatform.APIPortalResourceRequests{ // CPU: to.Ptr("1"), // Memory: to.Ptr("1G"), // }, // URL: to.Ptr("test-url"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // } }
Output:
func (*APIPortalsClient) NewListPager ¶ added in v0.5.0
func (client *APIPortalsClient) NewListPager(resourceGroupName string, serviceName string, options *APIPortalsClientListOptions) *runtime.Pager[APIPortalsClientListResponse]
NewListPager - Handles requests to list all resources in a Service.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - APIPortalsClientListOptions contains the optional parameters for the APIPortalsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApiPortals_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewAPIPortalsClient().NewListPager("myResourceGroup", "myservice", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.APIPortalResourceCollection = armappplatform.APIPortalResourceCollection{ // Value: []*armappplatform.APIPortalResource{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apiPortals"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apiPortals/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.APIPortalProperties{ // GatewayIDs: []*string{ // to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default")}, // Instances: []*armappplatform.APIPortalInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.APIPortalProvisioningStateSucceeded), // Public: to.Ptr(true), // ResourceRequests: &armappplatform.APIPortalResourceRequests{ // CPU: to.Ptr("1"), // Memory: to.Ptr("1G"), // }, // URL: to.Ptr("test-url"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // }}, // } } }
Output:
func (*APIPortalsClient) ValidateDomain ¶ added in v0.3.0
func (client *APIPortalsClient) ValidateDomain(ctx context.Context, resourceGroupName string, serviceName string, apiPortalName string, validatePayload CustomDomainValidatePayload, options *APIPortalsClientValidateDomainOptions) (APIPortalsClientValidateDomainResponse, error)
ValidateDomain - Check the domains are valid as well as not in use. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- apiPortalName - The name of API portal.
- validatePayload - Custom domain payload to be validated
- options - APIPortalsClientValidateDomainOptions contains the optional parameters for the APIPortalsClient.ValidateDomain method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApiPortals_ValidateDomain.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAPIPortalsClient().ValidateDomain(ctx, "myResourceGroup", "myservice", "default", armappplatform.CustomDomainValidatePayload{ Name: to.Ptr("mydomain.io"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CustomDomainValidateResult = armappplatform.CustomDomainValidateResult{ // IsValid: to.Ptr(false), // Message: to.Ptr("Certificate is invalid, please check if it is a self signed cert or if it contains a suitable dns name"), // } }
Output:
type APIPortalsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type APIPortalsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
APIPortalsClientBeginCreateOrUpdateOptions contains the optional parameters for the APIPortalsClient.BeginCreateOrUpdate method.
type APIPortalsClientBeginDeleteOptions ¶ added in v0.3.0
type APIPortalsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
APIPortalsClientBeginDeleteOptions contains the optional parameters for the APIPortalsClient.BeginDelete method.
type APIPortalsClientCreateOrUpdateResponse ¶ added in v0.3.0
type APIPortalsClientCreateOrUpdateResponse struct {
APIPortalResource
}
APIPortalsClientCreateOrUpdateResponse contains the response from method APIPortalsClient.BeginCreateOrUpdate.
type APIPortalsClientDeleteResponse ¶ added in v0.3.0
type APIPortalsClientDeleteResponse struct { }
APIPortalsClientDeleteResponse contains the response from method APIPortalsClient.BeginDelete.
type APIPortalsClientGetOptions ¶ added in v0.3.0
type APIPortalsClientGetOptions struct { }
APIPortalsClientGetOptions contains the optional parameters for the APIPortalsClient.Get method.
type APIPortalsClientGetResponse ¶ added in v0.3.0
type APIPortalsClientGetResponse struct {
APIPortalResource
}
APIPortalsClientGetResponse contains the response from method APIPortalsClient.Get.
type APIPortalsClientListOptions ¶ added in v0.3.0
type APIPortalsClientListOptions struct { }
APIPortalsClientListOptions contains the optional parameters for the APIPortalsClient.NewListPager method.
type APIPortalsClientListResponse ¶ added in v0.3.0
type APIPortalsClientListResponse struct {
APIPortalResourceCollection
}
APIPortalsClientListResponse contains the response from method APIPortalsClient.NewListPager.
type APIPortalsClientValidateDomainOptions ¶ added in v0.3.0
type APIPortalsClientValidateDomainOptions struct { }
APIPortalsClientValidateDomainOptions contains the optional parameters for the APIPortalsClient.ValidateDomain method.
type APIPortalsClientValidateDomainResponse ¶ added in v0.3.0
type APIPortalsClientValidateDomainResponse struct {
CustomDomainValidateResult
}
APIPortalsClientValidateDomainResponse contains the response from method APIPortalsClient.ValidateDomain.
type AcceleratorAuthSetting ¶
type AcceleratorAuthSetting struct { // REQUIRED; The type of the auth setting. AuthType *string `json:"authType,omitempty"` }
AcceleratorAuthSetting - Auth setting payload.
func (*AcceleratorAuthSetting) GetAcceleratorAuthSetting ¶
func (a *AcceleratorAuthSetting) GetAcceleratorAuthSetting() *AcceleratorAuthSetting
GetAcceleratorAuthSetting implements the AcceleratorAuthSettingClassification interface for type AcceleratorAuthSetting.
func (AcceleratorAuthSetting) MarshalJSON ¶
func (a AcceleratorAuthSetting) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AcceleratorAuthSetting.
func (*AcceleratorAuthSetting) UnmarshalJSON ¶
func (a *AcceleratorAuthSetting) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AcceleratorAuthSetting.
type AcceleratorAuthSettingClassification ¶
type AcceleratorAuthSettingClassification interface { // GetAcceleratorAuthSetting returns the AcceleratorAuthSetting content of the underlying type. GetAcceleratorAuthSetting() *AcceleratorAuthSetting }
AcceleratorAuthSettingClassification provides polymorphic access to related types. Call the interface's GetAcceleratorAuthSetting() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AcceleratorAuthSetting, *AcceleratorBasicAuthSetting, *AcceleratorPublicSetting, *AcceleratorSSHSetting
type AcceleratorBasicAuthSetting ¶
type AcceleratorBasicAuthSetting struct { // REQUIRED; The type of the auth setting. AuthType *string `json:"authType,omitempty"` // REQUIRED; Username of git repository basic auth. Username *string `json:"username,omitempty"` // Password of git repository basic auth. Password *string `json:"password,omitempty"` }
AcceleratorBasicAuthSetting - Auth setting for basic auth.
func (*AcceleratorBasicAuthSetting) GetAcceleratorAuthSetting ¶
func (a *AcceleratorBasicAuthSetting) GetAcceleratorAuthSetting() *AcceleratorAuthSetting
GetAcceleratorAuthSetting implements the AcceleratorAuthSettingClassification interface for type AcceleratorBasicAuthSetting.
func (AcceleratorBasicAuthSetting) MarshalJSON ¶
func (a AcceleratorBasicAuthSetting) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AcceleratorBasicAuthSetting.
func (*AcceleratorBasicAuthSetting) UnmarshalJSON ¶
func (a *AcceleratorBasicAuthSetting) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AcceleratorBasicAuthSetting.
type AcceleratorGitRepository ¶
type AcceleratorGitRepository struct { // REQUIRED; Properties of the auth setting payload. AuthSetting AcceleratorAuthSettingClassification `json:"authSetting,omitempty"` // REQUIRED; Git repository URL for the accelerator. URL *string `json:"url,omitempty"` // Git repository branch to be used. Branch *string `json:"branch,omitempty"` // Git repository commit to be used. Commit *string `json:"commit,omitempty"` // Git repository tag to be used. GitTag *string `json:"gitTag,omitempty"` // Interval for checking for updates to Git or image repository. IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` }
func (AcceleratorGitRepository) MarshalJSON ¶
func (a AcceleratorGitRepository) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AcceleratorGitRepository.
func (*AcceleratorGitRepository) UnmarshalJSON ¶
func (a *AcceleratorGitRepository) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AcceleratorGitRepository.
type AcceleratorPublicSetting ¶
type AcceleratorPublicSetting struct { // REQUIRED; The type of the auth setting. AuthType *string `json:"authType,omitempty"` }
AcceleratorPublicSetting - Auth setting for public url.
func (*AcceleratorPublicSetting) GetAcceleratorAuthSetting ¶
func (a *AcceleratorPublicSetting) GetAcceleratorAuthSetting() *AcceleratorAuthSetting
GetAcceleratorAuthSetting implements the AcceleratorAuthSettingClassification interface for type AcceleratorPublicSetting.
func (AcceleratorPublicSetting) MarshalJSON ¶
func (a AcceleratorPublicSetting) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AcceleratorPublicSetting.
func (*AcceleratorPublicSetting) UnmarshalJSON ¶
func (a *AcceleratorPublicSetting) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AcceleratorPublicSetting.
type AcceleratorSSHSetting ¶
type AcceleratorSSHSetting struct { // REQUIRED; The type of the auth setting. AuthType *string `json:"authType,omitempty"` // Public SSH Key of git repository. HostKey *string `json:"hostKey,omitempty"` // SSH Key algorithm of git repository. HostKeyAlgorithm *string `json:"hostKeyAlgorithm,omitempty"` // Private SSH Key algorithm of git repository. PrivateKey *string `json:"privateKey,omitempty"` }
AcceleratorSSHSetting - Auth setting for SSH auth.
func (*AcceleratorSSHSetting) GetAcceleratorAuthSetting ¶
func (a *AcceleratorSSHSetting) GetAcceleratorAuthSetting() *AcceleratorAuthSetting
GetAcceleratorAuthSetting implements the AcceleratorAuthSettingClassification interface for type AcceleratorSSHSetting.
func (AcceleratorSSHSetting) MarshalJSON ¶
func (a AcceleratorSSHSetting) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AcceleratorSSHSetting.
func (*AcceleratorSSHSetting) UnmarshalJSON ¶
func (a *AcceleratorSSHSetting) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AcceleratorSSHSetting.
type ActionType ¶ added in v0.4.0
type ActionType string
ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const (
ActionTypeInternal ActionType = "Internal"
)
func PossibleActionTypeValues ¶ added in v0.4.0
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type ActiveDeploymentCollection ¶ added in v0.3.0
type ActiveDeploymentCollection struct { // Collection of Deployment name. ActiveDeploymentNames []*string `json:"activeDeploymentNames,omitempty"` }
ActiveDeploymentCollection - Object that includes an array of Deployment resource name and set them as active.
func (ActiveDeploymentCollection) MarshalJSON ¶ added in v0.3.0
func (a ActiveDeploymentCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ActiveDeploymentCollection.
func (*ActiveDeploymentCollection) UnmarshalJSON ¶ added in v1.1.0
func (a *ActiveDeploymentCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ActiveDeploymentCollection.
type ApmType ¶
type ApmType string
ApmType - Type of application performance monitoring
func PossibleApmTypeValues ¶
func PossibleApmTypeValues() []ApmType
PossibleApmTypeValues returns the possible values for the ApmType const type.
type AppResource ¶
type AppResource struct { // The Managed Identity type of the app resource Identity *ManagedIdentityProperties `json:"identity,omitempty"` // The GEO location of the application, always the same with its parent resource Location *string `json:"location,omitempty"` // Properties of the App resource Properties *AppResourceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
AppResource - App resource payload
func (AppResource) MarshalJSON ¶
func (a AppResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AppResource.
func (*AppResource) UnmarshalJSON ¶ added in v0.2.0
func (a *AppResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AppResource.
type AppResourceCollection ¶
type AppResourceCollection 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 App resources Value []*AppResource `json:"value,omitempty"` }
AppResourceCollection - Object that includes an array of App resources and a possible link for next set
func (AppResourceCollection) MarshalJSON ¶
func (a AppResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AppResourceCollection.
func (*AppResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (a *AppResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AppResourceCollection.
type AppResourceProperties ¶
type AppResourceProperties struct { // Collection of addons AddonConfigs map[string]map[string]any `json:"addonConfigs,omitempty"` // List of custom persistent disks CustomPersistentDisks []*CustomPersistentDiskResource `json:"customPersistentDisks,omitempty"` // Indicate if end to end TLS is enabled. EnableEndToEndTLS *bool `json:"enableEndToEndTLS,omitempty"` // Indicate if only https is allowed. HTTPSOnly *bool `json:"httpsOnly,omitempty"` // App ingress settings payload. IngressSettings *IngressSettings `json:"ingressSettings,omitempty"` // Collection of loaded certificates LoadedCertificates []*LoadedCertificate `json:"loadedCertificates,omitempty"` // Persistent disk settings PersistentDisk *PersistentDisk `json:"persistentDisk,omitempty"` // Indicates whether the App exposes public endpoint Public *bool `json:"public,omitempty"` // Temporary disk settings TemporaryDisk *TemporaryDisk `json:"temporaryDisk,omitempty"` // Additional App settings in vnet injection instance VnetAddons *AppVNetAddons `json:"vnetAddons,omitempty"` // READ-ONLY; Fully qualified dns Name. Fqdn *string `json:"fqdn,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the App ProvisioningState *AppResourceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; URL of the App URL *string `json:"url,omitempty" azure:"ro"` }
AppResourceProperties - App resource properties payload
func (AppResourceProperties) MarshalJSON ¶
func (a AppResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AppResourceProperties.
func (*AppResourceProperties) UnmarshalJSON ¶
func (a *AppResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AppResourceProperties.
type AppResourceProvisioningState ¶
type AppResourceProvisioningState string
AppResourceProvisioningState - Provisioning state of the App
const ( AppResourceProvisioningStateCreating AppResourceProvisioningState = "Creating" AppResourceProvisioningStateDeleting AppResourceProvisioningState = "Deleting" AppResourceProvisioningStateFailed AppResourceProvisioningState = "Failed" AppResourceProvisioningStateSucceeded AppResourceProvisioningState = "Succeeded" AppResourceProvisioningStateUpdating AppResourceProvisioningState = "Updating" )
func PossibleAppResourceProvisioningStateValues ¶
func PossibleAppResourceProvisioningStateValues() []AppResourceProvisioningState
PossibleAppResourceProvisioningStateValues returns the possible values for the AppResourceProvisioningState const type.
type AppVNetAddons ¶
type AppVNetAddons struct { // Indicates whether the App in vnet injection instance exposes endpoint which could be accessed from internet. PublicEndpoint *bool `json:"publicEndpoint,omitempty"` // READ-ONLY; URL of the App in vnet injection instance which could be accessed from internet PublicEndpointURL *string `json:"publicEndpointUrl,omitempty" azure:"ro"` }
AppVNetAddons - Additional App settings in vnet injection instance
func (AppVNetAddons) MarshalJSON ¶
func (a AppVNetAddons) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AppVNetAddons.
func (*AppVNetAddons) UnmarshalJSON ¶
func (a *AppVNetAddons) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AppVNetAddons.
type ApplicationAcceleratorComponent ¶
type ApplicationAcceleratorComponent struct { ResourceRequests *ApplicationAcceleratorResourceRequests `json:"resourceRequests,omitempty"` // READ-ONLY Instances []*ApplicationAcceleratorInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY Name *string `json:"name,omitempty" azure:"ro"` }
func (ApplicationAcceleratorComponent) MarshalJSON ¶
func (a ApplicationAcceleratorComponent) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationAcceleratorComponent.
func (*ApplicationAcceleratorComponent) UnmarshalJSON ¶
func (a *ApplicationAcceleratorComponent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationAcceleratorComponent.
type ApplicationAcceleratorInstance ¶
type ApplicationAcceleratorInstance struct { // READ-ONLY; Name of the Application Accelerator instance. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the Application Accelerator instance. It can be Pending, Running, Succeeded, Failed, Unknown. Status *string `json:"status,omitempty" azure:"ro"` }
func (ApplicationAcceleratorInstance) MarshalJSON ¶
func (a ApplicationAcceleratorInstance) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationAcceleratorInstance.
func (*ApplicationAcceleratorInstance) UnmarshalJSON ¶
func (a *ApplicationAcceleratorInstance) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationAcceleratorInstance.
type ApplicationAcceleratorProperties ¶
type ApplicationAcceleratorProperties struct { // READ-ONLY; Collection of components belong to application accelerator. Components []*ApplicationAcceleratorComponent `json:"components,omitempty" azure:"ro"` // READ-ONLY; State of the application accelerator. ProvisioningState *ApplicationAcceleratorProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationAcceleratorProperties - Application accelerator properties payload
func (ApplicationAcceleratorProperties) MarshalJSON ¶
func (a ApplicationAcceleratorProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationAcceleratorProperties.
func (*ApplicationAcceleratorProperties) UnmarshalJSON ¶
func (a *ApplicationAcceleratorProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationAcceleratorProperties.
type ApplicationAcceleratorProvisioningState ¶
type ApplicationAcceleratorProvisioningState string
ApplicationAcceleratorProvisioningState - State of the application accelerator.
const ( ApplicationAcceleratorProvisioningStateCreating ApplicationAcceleratorProvisioningState = "Creating" ApplicationAcceleratorProvisioningStateDeleting ApplicationAcceleratorProvisioningState = "Deleting" ApplicationAcceleratorProvisioningStateFailed ApplicationAcceleratorProvisioningState = "Failed" ApplicationAcceleratorProvisioningStateSucceeded ApplicationAcceleratorProvisioningState = "Succeeded" ApplicationAcceleratorProvisioningStateUpdating ApplicationAcceleratorProvisioningState = "Updating" )
func PossibleApplicationAcceleratorProvisioningStateValues ¶
func PossibleApplicationAcceleratorProvisioningStateValues() []ApplicationAcceleratorProvisioningState
PossibleApplicationAcceleratorProvisioningStateValues returns the possible values for the ApplicationAcceleratorProvisioningState const type.
type ApplicationAcceleratorResource ¶
type ApplicationAcceleratorResource struct { // Application accelerator properties payload Properties *ApplicationAcceleratorProperties `json:"properties,omitempty"` // Sku of the application accelerator resource SKU *SKU `json:"sku,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationAcceleratorResource - Application accelerator resource
func (ApplicationAcceleratorResource) MarshalJSON ¶
func (a ApplicationAcceleratorResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationAcceleratorResource.
func (*ApplicationAcceleratorResource) UnmarshalJSON ¶
func (a *ApplicationAcceleratorResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationAcceleratorResource.
type ApplicationAcceleratorResourceCollection ¶
type ApplicationAcceleratorResourceCollection 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 application accelerator resources Value []*ApplicationAcceleratorResource `json:"value,omitempty"` }
ApplicationAcceleratorResourceCollection - Object that includes an array of application accelerator resources and a possible link for next set
func (ApplicationAcceleratorResourceCollection) MarshalJSON ¶
func (a ApplicationAcceleratorResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationAcceleratorResourceCollection.
func (*ApplicationAcceleratorResourceCollection) UnmarshalJSON ¶
func (a *ApplicationAcceleratorResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationAcceleratorResourceCollection.
type ApplicationAcceleratorResourceRequests ¶
type ApplicationAcceleratorResourceRequests struct { // READ-ONLY; Cpu allocated to each application accelerator component. 1 core can be represented by 1 or 1000m CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Instance count of the application accelerator component. InstanceCount *int32 `json:"instanceCount,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to each application accelerator component. 1 GB can be represented by 1Gi or 1024Mi. Memory *string `json:"memory,omitempty" azure:"ro"` }
func (ApplicationAcceleratorResourceRequests) MarshalJSON ¶
func (a ApplicationAcceleratorResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationAcceleratorResourceRequests.
func (*ApplicationAcceleratorResourceRequests) UnmarshalJSON ¶
func (a *ApplicationAcceleratorResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationAcceleratorResourceRequests.
type ApplicationAcceleratorsClient ¶
type ApplicationAcceleratorsClient struct {
// contains filtered or unexported fields
}
ApplicationAcceleratorsClient contains the methods for the ApplicationAccelerators group. Don't use this type directly, use NewApplicationAcceleratorsClient() instead.
func NewApplicationAcceleratorsClient ¶
func NewApplicationAcceleratorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationAcceleratorsClient, error)
NewApplicationAcceleratorsClient creates a new instance of ApplicationAcceleratorsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ApplicationAcceleratorsClient) BeginCreateOrUpdate ¶
func (client *ApplicationAcceleratorsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, applicationAcceleratorName string, applicationAcceleratorResource ApplicationAcceleratorResource, options *ApplicationAcceleratorsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ApplicationAcceleratorsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the application accelerator. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- applicationAcceleratorResource - The application accelerator for the create or update operation
- options - ApplicationAcceleratorsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationAcceleratorsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApplicationAccelerators_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewApplicationAcceleratorsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", armappplatform.ApplicationAcceleratorResource{ Properties: &armappplatform.ApplicationAcceleratorProperties{}, SKU: &armappplatform.SKU{ Name: to.Ptr("E0"), Capacity: to.Ptr[int32](2), Tier: to.Ptr("Enterprise"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ApplicationAcceleratorResource = armappplatform.ApplicationAcceleratorResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationAccelerators"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationAccelerators/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ApplicationAcceleratorProperties{ // Components: []*armappplatform.ApplicationAcceleratorComponent{ // { // Name: to.Ptr("component1"), // Instances: []*armappplatform.ApplicationAcceleratorInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }}, // ResourceRequests: &armappplatform.ApplicationAcceleratorResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("1Gi"), // }, // }}, // ProvisioningState: to.Ptr(armappplatform.ApplicationAcceleratorProvisioningStateSucceeded), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // } }
Output:
func (*ApplicationAcceleratorsClient) BeginDelete ¶
func (client *ApplicationAcceleratorsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, applicationAcceleratorName string, options *ApplicationAcceleratorsClientBeginDeleteOptions) (*runtime.Poller[ApplicationAcceleratorsClientDeleteResponse], error)
BeginDelete - Delete the application accelerator. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- options - ApplicationAcceleratorsClientBeginDeleteOptions contains the optional parameters for the ApplicationAcceleratorsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApplicationAccelerators_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewApplicationAcceleratorsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ApplicationAcceleratorsClient) Get ¶
func (client *ApplicationAcceleratorsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, applicationAcceleratorName string, options *ApplicationAcceleratorsClientGetOptions) (ApplicationAcceleratorsClientGetResponse, error)
Get - Get the application accelerator. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- options - ApplicationAcceleratorsClientGetOptions contains the optional parameters for the ApplicationAcceleratorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApplicationAccelerators_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationAcceleratorsClient().Get(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ApplicationAcceleratorResource = armappplatform.ApplicationAcceleratorResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationAccelerators"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationAccelerators/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ApplicationAcceleratorProperties{ // Components: []*armappplatform.ApplicationAcceleratorComponent{ // { // Name: to.Ptr("component1"), // Instances: []*armappplatform.ApplicationAcceleratorInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }}, // ResourceRequests: &armappplatform.ApplicationAcceleratorResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("1Gi"), // }, // }}, // ProvisioningState: to.Ptr(armappplatform.ApplicationAcceleratorProvisioningStateSucceeded), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // } }
Output:
func (*ApplicationAcceleratorsClient) NewListPager ¶
func (client *ApplicationAcceleratorsClient) NewListPager(resourceGroupName string, serviceName string, options *ApplicationAcceleratorsClientListOptions) *runtime.Pager[ApplicationAcceleratorsClientListResponse]
NewListPager - Handle requests to list all application accelerator.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ApplicationAcceleratorsClientListOptions contains the optional parameters for the ApplicationAcceleratorsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApplicationAccelerators_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewApplicationAcceleratorsClient().NewListPager("myResourceGroup", "myservice", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ApplicationAcceleratorResourceCollection = armappplatform.ApplicationAcceleratorResourceCollection{ // Value: []*armappplatform.ApplicationAcceleratorResource{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationAccelerators"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationAccelerators/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ApplicationAcceleratorProperties{ // Components: []*armappplatform.ApplicationAcceleratorComponent{ // { // Name: to.Ptr("component1"), // Instances: []*armappplatform.ApplicationAcceleratorInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }}, // ResourceRequests: &armappplatform.ApplicationAcceleratorResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("1Gi"), // }, // }}, // ProvisioningState: to.Ptr(armappplatform.ApplicationAcceleratorProvisioningStateSucceeded), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // }}, // } } }
Output:
type ApplicationAcceleratorsClientBeginCreateOrUpdateOptions ¶
type ApplicationAcceleratorsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationAcceleratorsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationAcceleratorsClient.BeginCreateOrUpdate method.
type ApplicationAcceleratorsClientBeginDeleteOptions ¶
type ApplicationAcceleratorsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationAcceleratorsClientBeginDeleteOptions contains the optional parameters for the ApplicationAcceleratorsClient.BeginDelete method.
type ApplicationAcceleratorsClientCreateOrUpdateResponse ¶
type ApplicationAcceleratorsClientCreateOrUpdateResponse struct {
ApplicationAcceleratorResource
}
ApplicationAcceleratorsClientCreateOrUpdateResponse contains the response from method ApplicationAcceleratorsClient.BeginCreateOrUpdate.
type ApplicationAcceleratorsClientDeleteResponse ¶
type ApplicationAcceleratorsClientDeleteResponse struct { }
ApplicationAcceleratorsClientDeleteResponse contains the response from method ApplicationAcceleratorsClient.BeginDelete.
type ApplicationAcceleratorsClientGetOptions ¶
type ApplicationAcceleratorsClientGetOptions struct { }
ApplicationAcceleratorsClientGetOptions contains the optional parameters for the ApplicationAcceleratorsClient.Get method.
type ApplicationAcceleratorsClientGetResponse ¶
type ApplicationAcceleratorsClientGetResponse struct {
ApplicationAcceleratorResource
}
ApplicationAcceleratorsClientGetResponse contains the response from method ApplicationAcceleratorsClient.Get.
type ApplicationAcceleratorsClientListOptions ¶
type ApplicationAcceleratorsClientListOptions struct { }
ApplicationAcceleratorsClientListOptions contains the optional parameters for the ApplicationAcceleratorsClient.NewListPager method.
type ApplicationAcceleratorsClientListResponse ¶
type ApplicationAcceleratorsClientListResponse struct {
ApplicationAcceleratorResourceCollection
}
ApplicationAcceleratorsClientListResponse contains the response from method ApplicationAcceleratorsClient.NewListPager.
type ApplicationInsightsAgentVersions ¶
type ApplicationInsightsAgentVersions struct { // READ-ONLY; Indicates the version of application insight java agent Java *string `json:"java,omitempty" azure:"ro"` }
ApplicationInsightsAgentVersions - Application Insights agent versions properties payload
func (ApplicationInsightsAgentVersions) MarshalJSON ¶ added in v1.1.0
func (a ApplicationInsightsAgentVersions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationInsightsAgentVersions.
func (*ApplicationInsightsAgentVersions) UnmarshalJSON ¶ added in v1.1.0
func (a *ApplicationInsightsAgentVersions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationInsightsAgentVersions.
type ApplicationLiveViewComponent ¶
type ApplicationLiveViewComponent struct { // READ-ONLY; Collection of instances belong to Application Live View. Instances []*ApplicationLiveViewInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; Name of the component. Name any `json:"name,omitempty" azure:"ro"` // READ-ONLY; The requested resource quantity for required CPU and Memory. ResourceRequests *ApplicationLiveViewResourceRequests `json:"resourceRequests,omitempty" azure:"ro"` }
ApplicationLiveViewComponent - Application Live View properties payload
func (ApplicationLiveViewComponent) MarshalJSON ¶
func (a ApplicationLiveViewComponent) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationLiveViewComponent.
func (*ApplicationLiveViewComponent) UnmarshalJSON ¶
func (a *ApplicationLiveViewComponent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationLiveViewComponent.
type ApplicationLiveViewInstance ¶
type ApplicationLiveViewInstance struct { // READ-ONLY; Name of the Application Live View instance. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the Application Live View instance. It can be Pending, Running, Succeeded, Failed, Unknown. Status *string `json:"status,omitempty" azure:"ro"` }
ApplicationLiveViewInstance - Collection of instances belong to the Application Live View
func (ApplicationLiveViewInstance) MarshalJSON ¶
func (a ApplicationLiveViewInstance) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationLiveViewInstance.
func (*ApplicationLiveViewInstance) UnmarshalJSON ¶
func (a *ApplicationLiveViewInstance) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationLiveViewInstance.
type ApplicationLiveViewProperties ¶
type ApplicationLiveViewProperties struct { // READ-ONLY; Component details of Application Live View Components []*ApplicationLiveViewComponent `json:"components,omitempty" azure:"ro"` // READ-ONLY; State of the Application Live View. ProvisioningState *ApplicationLiveViewProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationLiveViewProperties - Application Live View properties payload
func (ApplicationLiveViewProperties) MarshalJSON ¶
func (a ApplicationLiveViewProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationLiveViewProperties.
func (*ApplicationLiveViewProperties) UnmarshalJSON ¶
func (a *ApplicationLiveViewProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationLiveViewProperties.
type ApplicationLiveViewProvisioningState ¶
type ApplicationLiveViewProvisioningState string
ApplicationLiveViewProvisioningState - State of the Application Live View.
const ( ApplicationLiveViewProvisioningStateCanceled ApplicationLiveViewProvisioningState = "Canceled" ApplicationLiveViewProvisioningStateCreating ApplicationLiveViewProvisioningState = "Creating" ApplicationLiveViewProvisioningStateDeleting ApplicationLiveViewProvisioningState = "Deleting" ApplicationLiveViewProvisioningStateFailed ApplicationLiveViewProvisioningState = "Failed" ApplicationLiveViewProvisioningStateSucceeded ApplicationLiveViewProvisioningState = "Succeeded" ApplicationLiveViewProvisioningStateUpdating ApplicationLiveViewProvisioningState = "Updating" )
func PossibleApplicationLiveViewProvisioningStateValues ¶
func PossibleApplicationLiveViewProvisioningStateValues() []ApplicationLiveViewProvisioningState
PossibleApplicationLiveViewProvisioningStateValues returns the possible values for the ApplicationLiveViewProvisioningState const type.
type ApplicationLiveViewResource ¶
type ApplicationLiveViewResource struct { // Application Live View properties payload Properties *ApplicationLiveViewProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationLiveViewResource - Application Live View resource
func (ApplicationLiveViewResource) MarshalJSON ¶
func (a ApplicationLiveViewResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationLiveViewResource.
func (*ApplicationLiveViewResource) UnmarshalJSON ¶
func (a *ApplicationLiveViewResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationLiveViewResource.
type ApplicationLiveViewResourceCollection ¶
type ApplicationLiveViewResourceCollection 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 Application Live View resources Value []*ApplicationLiveViewResource `json:"value,omitempty"` }
ApplicationLiveViewResourceCollection - Object that includes an array of Application Live View resources and a possible link for next set
func (ApplicationLiveViewResourceCollection) MarshalJSON ¶
func (a ApplicationLiveViewResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationLiveViewResourceCollection.
func (*ApplicationLiveViewResourceCollection) UnmarshalJSON ¶
func (a *ApplicationLiveViewResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationLiveViewResourceCollection.
type ApplicationLiveViewResourceRequests ¶
type ApplicationLiveViewResourceRequests struct { // READ-ONLY; Cpu quantity allocated to each Application Live View component instance. 1 core can be represented by 1 or 1000m. CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Desired instance count of Application Live View component instance. InstanceCount *int32 `json:"instanceCount,omitempty" azure:"ro"` // READ-ONLY; Memory quantity allocated to each Application Live View component instance. 1 GB can be represented by 1Gi or // 1024Mi. Memory *string `json:"memory,omitempty" azure:"ro"` }
ApplicationLiveViewResourceRequests - The resource quantity for required CPU and Memory of Application Live View component
func (ApplicationLiveViewResourceRequests) MarshalJSON ¶
func (a ApplicationLiveViewResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationLiveViewResourceRequests.
func (*ApplicationLiveViewResourceRequests) UnmarshalJSON ¶
func (a *ApplicationLiveViewResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationLiveViewResourceRequests.
type ApplicationLiveViewsClient ¶
type ApplicationLiveViewsClient struct {
// contains filtered or unexported fields
}
ApplicationLiveViewsClient contains the methods for the ApplicationLiveViews group. Don't use this type directly, use NewApplicationLiveViewsClient() instead.
func NewApplicationLiveViewsClient ¶
func NewApplicationLiveViewsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationLiveViewsClient, error)
NewApplicationLiveViewsClient creates a new instance of ApplicationLiveViewsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ApplicationLiveViewsClient) BeginCreateOrUpdate ¶
func (client *ApplicationLiveViewsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, applicationLiveViewName string, applicationLiveViewResource ApplicationLiveViewResource, options *ApplicationLiveViewsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ApplicationLiveViewsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create the default Application Live View or update the existing Application Live View. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationLiveViewName - The name of Application Live View.
- applicationLiveViewResource - Parameters for the update operation
- options - ApplicationLiveViewsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationLiveViewsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApplicationLiveViews_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewApplicationLiveViewsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", armappplatform.ApplicationLiveViewResource{ Properties: &armappplatform.ApplicationLiveViewProperties{}, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ApplicationLiveViewResource = armappplatform.ApplicationLiveViewResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationLiveViews"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationLiveViews/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ApplicationLiveViewProperties{ // Components: []*armappplatform.ApplicationLiveViewComponent{ // { // Name: "app-live-view-server", // Instances: []*armappplatform.ApplicationLiveViewInstance{ // { // Name: to.Ptr("app-live-view-server-name"), // Status: to.Ptr("Running"), // }}, // ResourceRequests: &armappplatform.ApplicationLiveViewResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("1Gi"), // }, // }, // { // Name: "app-live-view-connector", // Instances: []*armappplatform.ApplicationLiveViewInstance{ // { // Name: to.Ptr("app-live-view-connector-name1"), // Status: to.Ptr("Starting"), // }}, // ResourceRequests: &armappplatform.ApplicationLiveViewResourceRequests{ // CPU: to.Ptr("500m"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("500Mi"), // }, // }}, // ProvisioningState: to.Ptr(armappplatform.ApplicationLiveViewProvisioningStateSucceeded), // }, // } }
Output:
func (*ApplicationLiveViewsClient) BeginDelete ¶
func (client *ApplicationLiveViewsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, applicationLiveViewName string, options *ApplicationLiveViewsClientBeginDeleteOptions) (*runtime.Poller[ApplicationLiveViewsClientDeleteResponse], error)
BeginDelete - Disable the default Application Live View. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationLiveViewName - The name of Application Live View.
- options - ApplicationLiveViewsClientBeginDeleteOptions contains the optional parameters for the ApplicationLiveViewsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApplicationLiveView_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewApplicationLiveViewsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ApplicationLiveViewsClient) Get ¶
func (client *ApplicationLiveViewsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, applicationLiveViewName string, options *ApplicationLiveViewsClientGetOptions) (ApplicationLiveViewsClientGetResponse, error)
Get - Get the Application Live and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationLiveViewName - The name of Application Live View.
- options - ApplicationLiveViewsClientGetOptions contains the optional parameters for the ApplicationLiveViewsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApplicationLiveViews_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationLiveViewsClient().Get(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ApplicationLiveViewResource = armappplatform.ApplicationLiveViewResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationLiveViews"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationLiveViews/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ApplicationLiveViewProperties{ // Components: []*armappplatform.ApplicationLiveViewComponent{ // { // Name: "app-live-view-server", // Instances: []*armappplatform.ApplicationLiveViewInstance{ // { // Name: to.Ptr("app-live-view-server-name"), // Status: to.Ptr("Running"), // }}, // ResourceRequests: &armappplatform.ApplicationLiveViewResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("1Gi"), // }, // }, // { // Name: "app-live-view-connector", // Instances: []*armappplatform.ApplicationLiveViewInstance{ // { // Name: to.Ptr("app-live-view-connector-name1"), // Status: to.Ptr("Starting"), // }}, // ResourceRequests: &armappplatform.ApplicationLiveViewResourceRequests{ // CPU: to.Ptr("500m"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("500Mi"), // }, // }}, // ProvisioningState: to.Ptr(armappplatform.ApplicationLiveViewProvisioningStateSucceeded), // }, // } }
Output:
func (*ApplicationLiveViewsClient) NewListPager ¶
func (client *ApplicationLiveViewsClient) NewListPager(resourceGroupName string, serviceName string, options *ApplicationLiveViewsClientListOptions) *runtime.Pager[ApplicationLiveViewsClientListResponse]
NewListPager - Handles requests to list all resources in a Service.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ApplicationLiveViewsClientListOptions contains the optional parameters for the ApplicationLiveViewsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ApplicationLiveViews_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewApplicationLiveViewsClient().NewListPager("myResourceGroup", "myservice", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ApplicationLiveViewResourceCollection = armappplatform.ApplicationLiveViewResourceCollection{ // Value: []*armappplatform.ApplicationLiveViewResource{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationLiveViews"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationLiveViews/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ApplicationLiveViewProperties{ // Components: []*armappplatform.ApplicationLiveViewComponent{ // { // Name: "app-live-view-server", // Instances: []*armappplatform.ApplicationLiveViewInstance{ // { // Name: to.Ptr("app-live-view-server-name"), // Status: to.Ptr("Running"), // }}, // ResourceRequests: &armappplatform.ApplicationLiveViewResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("1Gi"), // }, // }, // { // Name: "app-live-view-connector", // Instances: []*armappplatform.ApplicationLiveViewInstance{ // { // Name: to.Ptr("app-live-view-connector-name1"), // Status: to.Ptr("Starting"), // }}, // ResourceRequests: &armappplatform.ApplicationLiveViewResourceRequests{ // CPU: to.Ptr("500m"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("500Mi"), // }, // }}, // ProvisioningState: to.Ptr(armappplatform.ApplicationLiveViewProvisioningStateSucceeded), // }, // }}, // } } }
Output:
type ApplicationLiveViewsClientBeginCreateOrUpdateOptions ¶
type ApplicationLiveViewsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationLiveViewsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationLiveViewsClient.BeginCreateOrUpdate method.
type ApplicationLiveViewsClientBeginDeleteOptions ¶
type ApplicationLiveViewsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationLiveViewsClientBeginDeleteOptions contains the optional parameters for the ApplicationLiveViewsClient.BeginDelete method.
type ApplicationLiveViewsClientCreateOrUpdateResponse ¶
type ApplicationLiveViewsClientCreateOrUpdateResponse struct {
ApplicationLiveViewResource
}
ApplicationLiveViewsClientCreateOrUpdateResponse contains the response from method ApplicationLiveViewsClient.BeginCreateOrUpdate.
type ApplicationLiveViewsClientDeleteResponse ¶
type ApplicationLiveViewsClientDeleteResponse struct { }
ApplicationLiveViewsClientDeleteResponse contains the response from method ApplicationLiveViewsClient.BeginDelete.
type ApplicationLiveViewsClientGetOptions ¶
type ApplicationLiveViewsClientGetOptions struct { }
ApplicationLiveViewsClientGetOptions contains the optional parameters for the ApplicationLiveViewsClient.Get method.
type ApplicationLiveViewsClientGetResponse ¶
type ApplicationLiveViewsClientGetResponse struct {
ApplicationLiveViewResource
}
ApplicationLiveViewsClientGetResponse contains the response from method ApplicationLiveViewsClient.Get.
type ApplicationLiveViewsClientListOptions ¶
type ApplicationLiveViewsClientListOptions struct { }
ApplicationLiveViewsClientListOptions contains the optional parameters for the ApplicationLiveViewsClient.NewListPager method.
type ApplicationLiveViewsClientListResponse ¶
type ApplicationLiveViewsClientListResponse struct {
ApplicationLiveViewResourceCollection
}
ApplicationLiveViewsClientListResponse contains the response from method ApplicationLiveViewsClient.NewListPager.
type AppsClient ¶
type AppsClient struct {
// contains filtered or unexported fields
}
AppsClient contains the methods for the Apps group. Don't use this type directly, use NewAppsClient() instead.
func NewAppsClient ¶
func NewAppsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AppsClient, error)
NewAppsClient creates a new instance of AppsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*AppsClient) BeginCreateOrUpdate ¶
func (client *AppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource AppResource, options *AppsClientBeginCreateOrUpdateOptions) (*runtime.Poller[AppsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a new App or update an exiting App. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- appResource - Parameters for the create or update operation
- options - AppsClientBeginCreateOrUpdateOptions contains the optional parameters for the AppsClient.BeginCreateOrUpdate method.
Example (AppsCreateOrUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAppsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "myapp", armappplatform.AppResource{ Identity: &armappplatform.ManagedIdentityProperties{ Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {}, }, }, Location: to.Ptr("eastus"), Properties: &armappplatform.AppResourceProperties{ AddonConfigs: map[string]map[string]any{ "ApplicationConfigurationService": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/myacs", }, "ServiceRegistry": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/myServiceRegistry", }, }, CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ { CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ Type: to.Ptr(armappplatform.TypeAzureFileVolume), MountOptions: []*string{ to.Ptr("uid=0"), to.Ptr("gid=0"), to.Ptr("dir_mode=0777"), to.Ptr("file_mode=0777")}, MountPath: to.Ptr("/mypath1/mypath2"), ShareName: to.Ptr("myFileShare"), }, StorageID: to.Ptr("myASCStorageID"), }}, EnableEndToEndTLS: to.Ptr(false), HTTPSOnly: to.Ptr(false), LoadedCertificates: []*armappplatform.LoadedCertificate{ { LoadTrustStore: to.Ptr(false), ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert1"), }, { LoadTrustStore: to.Ptr(true), ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert2"), }}, PersistentDisk: &armappplatform.PersistentDisk{ MountPath: to.Ptr("/mypersistentdisk"), SizeInGB: to.Ptr[int32](2), }, Public: to.Ptr(true), TemporaryDisk: &armappplatform.TemporaryDisk{ MountPath: to.Ptr("/mytemporarydisk"), SizeInGB: to.Ptr[int32](2), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AppResource = armappplatform.AppResource{ // Name: to.Ptr("myapp"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Identity: &armappplatform.ManagedIdentityProperties{ // Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("principalid"), // TenantID: to.Ptr("tenantid"), // UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId1"), // PrincipalID: to.Ptr("principalId1"), // }, // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId2"), // PrincipalID: to.Ptr("principalId2"), // }, // }, // }, // Location: to.Ptr("eastus"), // Properties: &armappplatform.AppResourceProperties{ // AddonConfigs: map[string]map[string]any{ // "ApplicationConfigurationService": map[string]any{ // "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/myacs", // }, // "ServiceRegistry": map[string]any{ // "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/myServiceRegistry", // }, // }, // CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ // { // CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ // Type: to.Ptr(armappplatform.TypeAzureFileVolume), // MountOptions: []*string{ // to.Ptr("uid=0"), // to.Ptr("gid=0"), // to.Ptr("dir_mode=0777"), // to.Ptr("file_mode=0777")}, // MountPath: to.Ptr("/mypath1/mypath2"), // ShareName: to.Ptr("myFileShare"), // }, // StorageID: to.Ptr("myASCStorageID"), // }}, // EnableEndToEndTLS: to.Ptr(false), // Fqdn: to.Ptr("myapp.mydomain.com"), // HTTPSOnly: to.Ptr(false), // PersistentDisk: &armappplatform.PersistentDisk{ // MountPath: to.Ptr("/mypersistentdisk"), // SizeInGB: to.Ptr[int32](2), // UsedInGB: to.Ptr[int32](1), // }, // ProvisioningState: to.Ptr(armappplatform.AppResourceProvisioningStateSucceeded), // Public: to.Ptr(true), // TemporaryDisk: &armappplatform.TemporaryDisk{ // MountPath: to.Ptr("/mytemporarydisk"), // SizeInGB: to.Ptr[int32](2), // }, // URL: to.Ptr("myapp.myservice.azuremicroservices.io"), // }, // } }
Output:
Example (AppsCreateOrUpdateVNetInjection) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_CreateOrUpdate_VNetInjection.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAppsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "myapp", armappplatform.AppResource{ Identity: &armappplatform.ManagedIdentityProperties{ Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {}, }, }, Location: to.Ptr("eastus"), Properties: &armappplatform.AppResourceProperties{ AddonConfigs: map[string]map[string]any{ "ApplicationConfigurationService": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/myacs", }, "ServiceRegistry": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/myServiceRegistry", }, }, CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ { CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ Type: to.Ptr(armappplatform.TypeAzureFileVolume), MountOptions: []*string{ to.Ptr("uid=0"), to.Ptr("gid=0"), to.Ptr("dir_mode=0777"), to.Ptr("file_mode=0777")}, MountPath: to.Ptr("/mypath1/mypath2"), ShareName: to.Ptr("myFileShare"), }, StorageID: to.Ptr("myASCStorageID"), }}, EnableEndToEndTLS: to.Ptr(false), HTTPSOnly: to.Ptr(false), LoadedCertificates: []*armappplatform.LoadedCertificate{ { LoadTrustStore: to.Ptr(false), ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert1"), }, { LoadTrustStore: to.Ptr(true), ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert2"), }}, PersistentDisk: &armappplatform.PersistentDisk{ MountPath: to.Ptr("/mypersistentdisk"), SizeInGB: to.Ptr[int32](2), }, Public: to.Ptr(true), TemporaryDisk: &armappplatform.TemporaryDisk{ MountPath: to.Ptr("/mytemporarydisk"), SizeInGB: to.Ptr[int32](2), }, VnetAddons: &armappplatform.AppVNetAddons{ PublicEndpoint: to.Ptr(true), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AppResource = armappplatform.AppResource{ // Name: to.Ptr("myapp"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Identity: &armappplatform.ManagedIdentityProperties{ // Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("principalid"), // TenantID: to.Ptr("tenantid"), // UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId1"), // PrincipalID: to.Ptr("principalId1"), // }, // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId2"), // PrincipalID: to.Ptr("principalId2"), // }, // }, // }, // Location: to.Ptr("eastus"), // Properties: &armappplatform.AppResourceProperties{ // AddonConfigs: map[string]map[string]any{ // "ApplicationConfigurationService": map[string]any{ // "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/myacs", // }, // "ServiceRegistry": map[string]any{ // "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/myServiceRegistry", // }, // }, // CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ // { // CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ // Type: to.Ptr(armappplatform.TypeAzureFileVolume), // MountOptions: []*string{ // to.Ptr("uid=0"), // to.Ptr("gid=0"), // to.Ptr("dir_mode=0777"), // to.Ptr("file_mode=0777")}, // MountPath: to.Ptr("/mypath1/mypath2"), // ShareName: to.Ptr("myFileShare"), // }, // StorageID: to.Ptr("myASCStorageID"), // }}, // EnableEndToEndTLS: to.Ptr(false), // Fqdn: to.Ptr("myapp.private.mydomain.com"), // HTTPSOnly: to.Ptr(false), // PersistentDisk: &armappplatform.PersistentDisk{ // MountPath: to.Ptr("/mypersistentdisk"), // SizeInGB: to.Ptr[int32](2), // UsedInGB: to.Ptr[int32](1), // }, // ProvisioningState: to.Ptr(armappplatform.AppResourceProvisioningStateSucceeded), // Public: to.Ptr(true), // TemporaryDisk: &armappplatform.TemporaryDisk{ // MountPath: to.Ptr("/mytemporarydisk"), // SizeInGB: to.Ptr[int32](2), // }, // URL: to.Ptr("myapp.myservice.private.azuremicroservices.io"), // VnetAddons: &armappplatform.AppVNetAddons{ // PublicEndpoint: to.Ptr(true), // PublicEndpointURL: to.Ptr("myapp.myservice.azuremicroservices.io"), // }, // }, // } }
Output:
func (*AppsClient) BeginDelete ¶
func (client *AppsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, appName string, options *AppsClientBeginDeleteOptions) (*runtime.Poller[AppsClientDeleteResponse], error)
BeginDelete - Operation to delete an App. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- options - AppsClientBeginDeleteOptions contains the optional parameters for the AppsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAppsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "myapp", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*AppsClient) BeginSetActiveDeployments ¶ added in v0.3.0
func (client *AppsClient) BeginSetActiveDeployments(ctx context.Context, resourceGroupName string, serviceName string, appName string, activeDeploymentCollection ActiveDeploymentCollection, options *AppsClientBeginSetActiveDeploymentsOptions) (*runtime.Poller[AppsClientSetActiveDeploymentsResponse], error)
BeginSetActiveDeployments - Set existing Deployment under the app as active If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- activeDeploymentCollection - A list of Deployment name to be active.
- options - AppsClientBeginSetActiveDeploymentsOptions contains the optional parameters for the AppsClient.BeginSetActiveDeployments method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_SetActiveDeployments.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAppsClient().BeginSetActiveDeployments(ctx, "myResourceGroup", "myservice", "myapp", armappplatform.ActiveDeploymentCollection{ ActiveDeploymentNames: []*string{ to.Ptr("default")}, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AppResource = armappplatform.AppResource{ // Name: to.Ptr("myapp"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Identity: &armappplatform.ManagedIdentityProperties{ // Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("principalid"), // TenantID: to.Ptr("tenantid"), // UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId1"), // PrincipalID: to.Ptr("principalId1"), // }, // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId2"), // PrincipalID: to.Ptr("principalId2"), // }, // }, // }, // Location: to.Ptr("eastus"), // Properties: &armappplatform.AppResourceProperties{ // CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ // { // CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ // Type: to.Ptr(armappplatform.TypeAzureFileVolume), // MountOptions: []*string{ // }, // MountPath: to.Ptr("/mypath1/mypath2"), // ShareName: to.Ptr("myFileShare"), // }, // StorageID: to.Ptr("myASCStorageID"), // }}, // EnableEndToEndTLS: to.Ptr(false), // Fqdn: to.Ptr("myapp.mydomain.com"), // HTTPSOnly: to.Ptr(false), // PersistentDisk: &armappplatform.PersistentDisk{ // MountPath: to.Ptr("/mypersistentdisk"), // SizeInGB: to.Ptr[int32](2), // UsedInGB: to.Ptr[int32](1), // }, // ProvisioningState: to.Ptr(armappplatform.AppResourceProvisioningStateSucceeded), // Public: to.Ptr(true), // TemporaryDisk: &armappplatform.TemporaryDisk{ // MountPath: to.Ptr("/mytemporarydisk"), // SizeInGB: to.Ptr[int32](2), // }, // URL: to.Ptr("myapp.myservice.azuremicroservices.io"), // }, // } }
Output:
func (*AppsClient) BeginUpdate ¶
func (client *AppsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource AppResource, options *AppsClientBeginUpdateOptions) (*runtime.Poller[AppsClientUpdateResponse], error)
BeginUpdate - Operation to update an exiting App. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- appResource - Parameters for the update operation
- options - AppsClientBeginUpdateOptions contains the optional parameters for the AppsClient.BeginUpdate method.
Example (AppsUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_Update.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAppsClient().BeginUpdate(ctx, "myResourceGroup", "myservice", "myapp", armappplatform.AppResource{ Identity: &armappplatform.ManagedIdentityProperties{ Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {}, }, }, Location: to.Ptr("eastus"), Properties: &armappplatform.AppResourceProperties{ CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ { CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ Type: to.Ptr(armappplatform.TypeAzureFileVolume), MountOptions: []*string{}, MountPath: to.Ptr("/mypath1/mypath2"), ShareName: to.Ptr("myFileShare"), }, StorageID: to.Ptr("myASCStorageID"), }}, EnableEndToEndTLS: to.Ptr(false), HTTPSOnly: to.Ptr(false), PersistentDisk: &armappplatform.PersistentDisk{ MountPath: to.Ptr("/mypersistentdisk"), SizeInGB: to.Ptr[int32](2), }, Public: to.Ptr(true), TemporaryDisk: &armappplatform.TemporaryDisk{ MountPath: to.Ptr("/mytemporarydisk"), SizeInGB: to.Ptr[int32](2), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AppResource = armappplatform.AppResource{ // Name: to.Ptr("myapp"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Identity: &armappplatform.ManagedIdentityProperties{ // Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("principalid"), // TenantID: to.Ptr("tenantid"), // UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId1"), // PrincipalID: to.Ptr("principalId1"), // }, // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId2"), // PrincipalID: to.Ptr("principalId2"), // }, // }, // }, // Location: to.Ptr("eastus"), // Properties: &armappplatform.AppResourceProperties{ // CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ // { // CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ // Type: to.Ptr(armappplatform.TypeAzureFileVolume), // MountOptions: []*string{ // }, // MountPath: to.Ptr("/mypath1/mypath2"), // ShareName: to.Ptr("myFileShare"), // }, // StorageID: to.Ptr("myASCStorageID"), // }}, // EnableEndToEndTLS: to.Ptr(false), // Fqdn: to.Ptr("myapp.mydomain.com"), // HTTPSOnly: to.Ptr(false), // PersistentDisk: &armappplatform.PersistentDisk{ // MountPath: to.Ptr("/mypersistentdisk"), // SizeInGB: to.Ptr[int32](2), // UsedInGB: to.Ptr[int32](1), // }, // ProvisioningState: to.Ptr(armappplatform.AppResourceProvisioningStateSucceeded), // Public: to.Ptr(true), // TemporaryDisk: &armappplatform.TemporaryDisk{ // MountPath: to.Ptr("/mytemporarydisk"), // SizeInGB: to.Ptr[int32](2), // }, // URL: to.Ptr("myapp.myservice.azuremicroservices.io"), // }, // } }
Output:
Example (AppsUpdateVNetInjection) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_Update_VNetInjection.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAppsClient().BeginUpdate(ctx, "myResourceGroup", "myservice", "myapp", armappplatform.AppResource{ Identity: &armappplatform.ManagedIdentityProperties{ Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {}, }, }, Location: to.Ptr("eastus"), Properties: &armappplatform.AppResourceProperties{ CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ { CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ Type: to.Ptr(armappplatform.TypeAzureFileVolume), MountOptions: []*string{}, MountPath: to.Ptr("/mypath1/mypath2"), ShareName: to.Ptr("myFileShare"), }, StorageID: to.Ptr("myASCStorageID"), }}, EnableEndToEndTLS: to.Ptr(false), HTTPSOnly: to.Ptr(false), PersistentDisk: &armappplatform.PersistentDisk{ MountPath: to.Ptr("/mypersistentdisk"), SizeInGB: to.Ptr[int32](2), }, Public: to.Ptr(true), TemporaryDisk: &armappplatform.TemporaryDisk{ MountPath: to.Ptr("/mytemporarydisk"), SizeInGB: to.Ptr[int32](2), }, VnetAddons: &armappplatform.AppVNetAddons{ PublicEndpoint: to.Ptr(true), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AppResource = armappplatform.AppResource{ // Name: to.Ptr("myapp"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Identity: &armappplatform.ManagedIdentityProperties{ // Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("principalid"), // TenantID: to.Ptr("tenantid"), // UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId1"), // PrincipalID: to.Ptr("principalId1"), // }, // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId2"), // PrincipalID: to.Ptr("principalId2"), // }, // }, // }, // Location: to.Ptr("eastus"), // Properties: &armappplatform.AppResourceProperties{ // CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ // { // CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ // Type: to.Ptr(armappplatform.TypeAzureFileVolume), // MountOptions: []*string{ // }, // MountPath: to.Ptr("/mypath1/mypath2"), // ShareName: to.Ptr("myFileShare"), // }, // StorageID: to.Ptr("myASCStorageID"), // }}, // EnableEndToEndTLS: to.Ptr(false), // Fqdn: to.Ptr("myapp.private.mydomain.com"), // HTTPSOnly: to.Ptr(false), // PersistentDisk: &armappplatform.PersistentDisk{ // MountPath: to.Ptr("/mypersistentdisk"), // SizeInGB: to.Ptr[int32](2), // UsedInGB: to.Ptr[int32](1), // }, // ProvisioningState: to.Ptr(armappplatform.AppResourceProvisioningStateSucceeded), // Public: to.Ptr(true), // TemporaryDisk: &armappplatform.TemporaryDisk{ // MountPath: to.Ptr("/mytemporarydisk"), // SizeInGB: to.Ptr[int32](2), // }, // URL: to.Ptr("myapp.myservice.private.azuremicroservices.io"), // VnetAddons: &armappplatform.AppVNetAddons{ // PublicEndpoint: to.Ptr(true), // PublicEndpointURL: to.Ptr("myapp.myservice.azuremicroservices.io"), // }, // }, // } }
Output:
func (*AppsClient) Get ¶
func (client *AppsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, appName string, options *AppsClientGetOptions) (AppsClientGetResponse, error)
Get - Get an App and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- options - AppsClientGetOptions contains the optional parameters for the AppsClient.Get method.
Example (AppsGet) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAppsClient().Get(ctx, "myResourceGroup", "myservice", "myapp", &armappplatform.AppsClientGetOptions{SyncStatus: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AppResource = armappplatform.AppResource{ // Name: to.Ptr("myapp"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Identity: &armappplatform.ManagedIdentityProperties{ // Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("principalid"), // TenantID: to.Ptr("tenantid"), // UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId1"), // PrincipalID: to.Ptr("principalId1"), // }, // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId2"), // PrincipalID: to.Ptr("principalId2"), // }, // }, // }, // Location: to.Ptr("eastus"), // Properties: &armappplatform.AppResourceProperties{ // CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ // { // CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ // Type: to.Ptr(armappplatform.TypeAzureFileVolume), // MountOptions: []*string{ // to.Ptr("uid=0"), // to.Ptr("gid=0"), // to.Ptr("dir_mode=0777"), // to.Ptr("file_mode=0777")}, // MountPath: to.Ptr("/mypath1/mypath2"), // ShareName: to.Ptr("myFileShare"), // }, // StorageID: to.Ptr("myASCStorageID"), // }}, // EnableEndToEndTLS: to.Ptr(false), // Fqdn: to.Ptr("myapp.mydomain.com"), // HTTPSOnly: to.Ptr(false), // LoadedCertificates: []*armappplatform.LoadedCertificate{ // { // LoadTrustStore: to.Ptr(false), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert1"), // }, // { // LoadTrustStore: to.Ptr(true), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert2"), // }}, // PersistentDisk: &armappplatform.PersistentDisk{ // MountPath: to.Ptr("/mypersistentdisk"), // SizeInGB: to.Ptr[int32](2), // UsedInGB: to.Ptr[int32](1), // }, // ProvisioningState: to.Ptr(armappplatform.AppResourceProvisioningStateSucceeded), // Public: to.Ptr(true), // TemporaryDisk: &armappplatform.TemporaryDisk{ // MountPath: to.Ptr("/mytemporarydisk"), // SizeInGB: to.Ptr[int32](2), // }, // URL: to.Ptr("myapp.myservice.azuremicroservices.io"), // }, // } }
Output:
Example (AppsGetVNetInjection) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_Get_VNetInjection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAppsClient().Get(ctx, "myResourceGroup", "myservice", "myapp", &armappplatform.AppsClientGetOptions{SyncStatus: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AppResource = armappplatform.AppResource{ // Name: to.Ptr("myapp"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Identity: &armappplatform.ManagedIdentityProperties{ // Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("principalid"), // TenantID: to.Ptr("tenantid"), // UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId1"), // PrincipalID: to.Ptr("principalId1"), // }, // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId2"), // PrincipalID: to.Ptr("principalId2"), // }, // }, // }, // Location: to.Ptr("eastus"), // Properties: &armappplatform.AppResourceProperties{ // CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ // { // CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ // Type: to.Ptr(armappplatform.TypeAzureFileVolume), // MountOptions: []*string{ // to.Ptr("uid=0"), // to.Ptr("gid=0"), // to.Ptr("dir_mode=0777"), // to.Ptr("file_mode=0777")}, // MountPath: to.Ptr("/mypath1/mypath2"), // ShareName: to.Ptr("myFileShare"), // }, // StorageID: to.Ptr("myASCStorageID"), // }}, // EnableEndToEndTLS: to.Ptr(false), // Fqdn: to.Ptr("myapp.private.mydomain.com"), // HTTPSOnly: to.Ptr(false), // LoadedCertificates: []*armappplatform.LoadedCertificate{ // { // LoadTrustStore: to.Ptr(false), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert1"), // }, // { // LoadTrustStore: to.Ptr(true), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert2"), // }}, // PersistentDisk: &armappplatform.PersistentDisk{ // MountPath: to.Ptr("/mypersistentdisk"), // SizeInGB: to.Ptr[int32](2), // UsedInGB: to.Ptr[int32](1), // }, // ProvisioningState: to.Ptr(armappplatform.AppResourceProvisioningStateSucceeded), // Public: to.Ptr(true), // TemporaryDisk: &armappplatform.TemporaryDisk{ // MountPath: to.Ptr("/mytemporarydisk"), // SizeInGB: to.Ptr[int32](2), // }, // URL: to.Ptr("myapp.myservice.private.azuremicroservices.io"), // VnetAddons: &armappplatform.AppVNetAddons{ // PublicEndpoint: to.Ptr(true), // PublicEndpointURL: to.Ptr("myapp.myservice.azuremicroservices.io"), // }, // }, // } }
Output:
func (*AppsClient) GetResourceUploadURL ¶
func (client *AppsClient) GetResourceUploadURL(ctx context.Context, resourceGroupName string, serviceName string, appName string, options *AppsClientGetResourceUploadURLOptions) (AppsClientGetResourceUploadURLResponse, error)
GetResourceUploadURL - Get an resource upload URL for an App, which may be artifacts or source archive. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- options - AppsClientGetResourceUploadURLOptions contains the optional parameters for the AppsClient.GetResourceUploadURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_GetResourceUploadUrl.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAppsClient().GetResourceUploadURL(ctx, "myResourceGroup", "myservice", "myapp", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ResourceUploadDefinition = armappplatform.ResourceUploadDefinition{ // RelativePath: to.Ptr("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20190801-3ed9f4a2-986b-4bbd-b833-a42dccb2f777"), // UploadURL: to.Ptr("https://springcloudstorageaccount.file.core.windows.net/bd172614181f42e2853f6fd90029cda8/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20190801-3ed9f4a2-986b-4bbd-b833-a42dccb2f777?sv=2018-03-28&sr=f&sig=SampleSignature&se=2019-08-01T10%3A42%3A21Z&sp=w"), // } }
Output:
func (*AppsClient) NewListPager ¶ added in v0.5.0
func (client *AppsClient) NewListPager(resourceGroupName string, serviceName string, options *AppsClientListOptions) *runtime.Pager[AppsClientListResponse]
NewListPager - Handles requests to list all resources in a Service.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - AppsClientListOptions contains the optional parameters for the AppsClient.NewListPager method.
Example (AppsList) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewAppsClient().NewListPager("myResourceGroup", "myservice", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AppResourceCollection = armappplatform.AppResourceCollection{ // Value: []*armappplatform.AppResource{ // { // Name: to.Ptr("myapp"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Identity: &armappplatform.ManagedIdentityProperties{ // Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("principalid"), // TenantID: to.Ptr("tenantid"), // UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId1"), // PrincipalID: to.Ptr("principalId1"), // }, // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId2"), // PrincipalID: to.Ptr("principalId2"), // }, // }, // }, // Location: to.Ptr("eastus"), // Properties: &armappplatform.AppResourceProperties{ // CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ // { // CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ // Type: to.Ptr(armappplatform.TypeAzureFileVolume), // MountOptions: []*string{ // to.Ptr("uid=0"), // to.Ptr("gid=0"), // to.Ptr("dir_mode=0777"), // to.Ptr("file_mode=0777")}, // MountPath: to.Ptr("/mypath1/mypath2"), // ShareName: to.Ptr("myFileShare"), // }, // StorageID: to.Ptr("myASCStorageID"), // }}, // EnableEndToEndTLS: to.Ptr(false), // Fqdn: to.Ptr("myapp.mydomain.com"), // HTTPSOnly: to.Ptr(false), // LoadedCertificates: []*armappplatform.LoadedCertificate{ // { // LoadTrustStore: to.Ptr(false), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert1"), // }, // { // LoadTrustStore: to.Ptr(true), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert2"), // }}, // PersistentDisk: &armappplatform.PersistentDisk{ // MountPath: to.Ptr("/mypersistentdisk"), // SizeInGB: to.Ptr[int32](2), // UsedInGB: to.Ptr[int32](1), // }, // ProvisioningState: to.Ptr(armappplatform.AppResourceProvisioningStateSucceeded), // Public: to.Ptr(true), // TemporaryDisk: &armappplatform.TemporaryDisk{ // MountPath: to.Ptr("/mytemporarydisk"), // SizeInGB: to.Ptr[int32](2), // }, // URL: to.Ptr("myapp.myservice.azuremicroservices.io"), // }, // }}, // } } }
Output:
Example (AppsListVNetInjection) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_List_VNetInjection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewAppsClient().NewListPager("myResourceGroup", "myservice", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AppResourceCollection = armappplatform.AppResourceCollection{ // Value: []*armappplatform.AppResource{ // { // Name: to.Ptr("myapp"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Identity: &armappplatform.ManagedIdentityProperties{ // Type: to.Ptr(armappplatform.ManagedIdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("principalid"), // TenantID: to.Ptr("tenantid"), // UserAssignedIdentities: map[string]*armappplatform.UserAssignedManagedIdentity{ // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId1"), // PrincipalID: to.Ptr("principalId1"), // }, // "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": &armappplatform.UserAssignedManagedIdentity{ // ClientID: to.Ptr("clientId2"), // PrincipalID: to.Ptr("principalId2"), // }, // }, // }, // Location: to.Ptr("eastus"), // Properties: &armappplatform.AppResourceProperties{ // CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ // { // CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ // Type: to.Ptr(armappplatform.TypeAzureFileVolume), // MountOptions: []*string{ // to.Ptr("uid=0"), // to.Ptr("gid=0"), // to.Ptr("dir_mode=0777"), // to.Ptr("file_mode=0777")}, // MountPath: to.Ptr("/mypath1/mypath2"), // ShareName: to.Ptr("myFileShare"), // }, // StorageID: to.Ptr("myASCStorageID"), // }}, // EnableEndToEndTLS: to.Ptr(false), // Fqdn: to.Ptr("myapp.mydomain.com"), // HTTPSOnly: to.Ptr(false), // LoadedCertificates: []*armappplatform.LoadedCertificate{ // { // LoadTrustStore: to.Ptr(false), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert1"), // }, // { // LoadTrustStore: to.Ptr(true), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert2"), // }}, // PersistentDisk: &armappplatform.PersistentDisk{ // MountPath: to.Ptr("/mypersistentdisk"), // SizeInGB: to.Ptr[int32](2), // UsedInGB: to.Ptr[int32](1), // }, // ProvisioningState: to.Ptr(armappplatform.AppResourceProvisioningStateSucceeded), // Public: to.Ptr(true), // TemporaryDisk: &armappplatform.TemporaryDisk{ // MountPath: to.Ptr("/mytemporarydisk"), // SizeInGB: to.Ptr[int32](2), // }, // URL: to.Ptr("myapp.myservice.private.azuremicroservices.io"), // VnetAddons: &armappplatform.AppVNetAddons{ // PublicEndpoint: to.Ptr(true), // PublicEndpointURL: to.Ptr("myapp.myservice.azuremicroservices.io"), // }, // }, // }}, // } } }
Output:
func (*AppsClient) ValidateDomain ¶
func (client *AppsClient) ValidateDomain(ctx context.Context, resourceGroupName string, serviceName string, appName string, validatePayload CustomDomainValidatePayload, options *AppsClientValidateDomainOptions) (AppsClientValidateDomainResponse, error)
ValidateDomain - Check the resource name is valid as well as not in use. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- validatePayload - Custom domain payload to be validated
- options - AppsClientValidateDomainOptions contains the optional parameters for the AppsClient.ValidateDomain method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Apps_ValidateDomain.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAppsClient().ValidateDomain(ctx, "myResourceGroup", "myservice", "myapp", armappplatform.CustomDomainValidatePayload{ Name: to.Ptr("mydomain.io"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CustomDomainValidateResult = armappplatform.CustomDomainValidateResult{ // IsValid: to.Ptr(false), // Message: to.Ptr("Certificate is invalid, please check if it is a self signed cert or if it contains a suitable dns name"), // } }
Output:
type AppsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type AppsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AppsClientBeginCreateOrUpdateOptions contains the optional parameters for the AppsClient.BeginCreateOrUpdate method.
type AppsClientBeginDeleteOptions ¶ added in v0.3.0
type AppsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AppsClientBeginDeleteOptions contains the optional parameters for the AppsClient.BeginDelete method.
type AppsClientBeginSetActiveDeploymentsOptions ¶ added in v0.3.0
type AppsClientBeginSetActiveDeploymentsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AppsClientBeginSetActiveDeploymentsOptions contains the optional parameters for the AppsClient.BeginSetActiveDeployments method.
type AppsClientBeginUpdateOptions ¶ added in v0.3.0
type AppsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AppsClientBeginUpdateOptions contains the optional parameters for the AppsClient.BeginUpdate method.
type AppsClientCreateOrUpdateResponse ¶ added in v0.3.0
type AppsClientCreateOrUpdateResponse struct {
AppResource
}
AppsClientCreateOrUpdateResponse contains the response from method AppsClient.BeginCreateOrUpdate.
type AppsClientDeleteResponse ¶ added in v0.3.0
type AppsClientDeleteResponse struct { }
AppsClientDeleteResponse contains the response from method AppsClient.BeginDelete.
type AppsClientGetOptions ¶ added in v0.3.0
type AppsClientGetOptions struct { // Indicates whether sync status SyncStatus *string }
AppsClientGetOptions contains the optional parameters for the AppsClient.Get method.
type AppsClientGetResourceUploadURLOptions ¶ added in v0.3.0
type AppsClientGetResourceUploadURLOptions struct { }
AppsClientGetResourceUploadURLOptions contains the optional parameters for the AppsClient.GetResourceUploadURL method.
type AppsClientGetResourceUploadURLResponse ¶ added in v0.3.0
type AppsClientGetResourceUploadURLResponse struct {
ResourceUploadDefinition
}
AppsClientGetResourceUploadURLResponse contains the response from method AppsClient.GetResourceUploadURL.
type AppsClientGetResponse ¶ added in v0.3.0
type AppsClientGetResponse struct {
AppResource
}
AppsClientGetResponse contains the response from method AppsClient.Get.
type AppsClientListOptions ¶ added in v0.3.0
type AppsClientListOptions struct { }
AppsClientListOptions contains the optional parameters for the AppsClient.NewListPager method.
type AppsClientListResponse ¶ added in v0.3.0
type AppsClientListResponse struct {
AppResourceCollection
}
AppsClientListResponse contains the response from method AppsClient.NewListPager.
type AppsClientSetActiveDeploymentsResponse ¶ added in v0.3.0
type AppsClientSetActiveDeploymentsResponse struct {
AppResource
}
AppsClientSetActiveDeploymentsResponse contains the response from method AppsClient.BeginSetActiveDeployments.
type AppsClientUpdateResponse ¶ added in v0.3.0
type AppsClientUpdateResponse struct {
AppResource
}
AppsClientUpdateResponse contains the response from method AppsClient.BeginUpdate.
type AppsClientValidateDomainOptions ¶ added in v0.3.0
type AppsClientValidateDomainOptions struct { }
AppsClientValidateDomainOptions contains the optional parameters for the AppsClient.ValidateDomain method.
type AppsClientValidateDomainResponse ¶ added in v0.3.0
type AppsClientValidateDomainResponse struct {
CustomDomainValidateResult
}
AppsClientValidateDomainResponse contains the response from method AppsClient.ValidateDomain.
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.
func (*AvailableOperations) UnmarshalJSON ¶ added in v1.1.0
func (a *AvailableOperations) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailableOperations.
type AvailableRuntimeVersions ¶
type AvailableRuntimeVersions struct { // READ-ONLY; A list of all supported runtime versions. Value []*SupportedRuntimeVersion `json:"value,omitempty" azure:"ro"` }
func (AvailableRuntimeVersions) MarshalJSON ¶
func (a AvailableRuntimeVersions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailableRuntimeVersions.
func (*AvailableRuntimeVersions) UnmarshalJSON ¶ added in v1.1.0
func (a *AvailableRuntimeVersions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailableRuntimeVersions.
type AzureFileVolume ¶ added in v0.2.0
type AzureFileVolume struct { // REQUIRED; The mount path of the persistent disk. MountPath *string `json:"mountPath,omitempty"` ShareName *string `json:"shareName,omitempty"` // REQUIRED; The type of the underlying resource to mount as a persistent disk. Type *Type `json:"type,omitempty"` // These are the mount options for a persistent disk. MountOptions []*string `json:"mountOptions,omitempty"` // Indicates whether the persistent disk is a readOnly one. ReadOnly *bool `json:"readOnly,omitempty"` }
AzureFileVolume - The properties of the Azure File volume. Azure File shares are mounted as volumes.
func (*AzureFileVolume) GetCustomPersistentDiskProperties ¶ added in v0.3.0
func (a *AzureFileVolume) GetCustomPersistentDiskProperties() *CustomPersistentDiskProperties
GetCustomPersistentDiskProperties implements the CustomPersistentDiskPropertiesClassification interface for type AzureFileVolume.
func (AzureFileVolume) MarshalJSON ¶ added in v0.2.0
func (a AzureFileVolume) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFileVolume.
func (*AzureFileVolume) UnmarshalJSON ¶ added in v0.2.0
func (a *AzureFileVolume) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureFileVolume.
type BackendProtocol ¶
type BackendProtocol string
BackendProtocol - How ingress should communicate with this app backend service.
const ( BackendProtocolDefault BackendProtocol = "Default" BackendProtocolGRPC BackendProtocol = "GRPC" )
func PossibleBackendProtocolValues ¶
func PossibleBackendProtocolValues() []BackendProtocol
PossibleBackendProtocolValues returns the possible values for the BackendProtocol const type.
type BindingResource ¶
type BindingResource struct { // Properties of the Binding resource Properties *BindingResourceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
BindingResource - Binding resource payload
func (BindingResource) MarshalJSON ¶
func (b BindingResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BindingResource.
func (*BindingResource) UnmarshalJSON ¶ added in v0.2.0
func (b *BindingResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BindingResource.
type BindingResourceCollection ¶
type BindingResourceCollection 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 Binding resources Value []*BindingResource `json:"value,omitempty"` }
BindingResourceCollection - Object that includes an array of Binding resources and a possible link for next set
func (BindingResourceCollection) MarshalJSON ¶
func (b BindingResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BindingResourceCollection.
func (*BindingResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (b *BindingResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BindingResourceCollection.
type BindingResourceProperties ¶
type BindingResourceProperties struct { // Binding parameters of the Binding resource BindingParameters map[string]any `json:"bindingParameters,omitempty"` // The key of the bound resource Key *string `json:"key,omitempty"` // The Azure resource id of the bound resource ResourceID *string `json:"resourceId,omitempty"` // READ-ONLY; Creation time of the Binding resource CreatedAt *string `json:"createdAt,omitempty" azure:"ro"` // READ-ONLY; The generated Spring Boot property file for this binding. The secret will be deducted. GeneratedProperties *string `json:"generatedProperties,omitempty" azure:"ro"` // READ-ONLY; The name of the bound resource ResourceName *string `json:"resourceName,omitempty" azure:"ro"` // READ-ONLY; The standard Azure resource type of the bound resource ResourceType *string `json:"resourceType,omitempty" azure:"ro"` // READ-ONLY; Update time of the Binding resource UpdatedAt *string `json:"updatedAt,omitempty" azure:"ro"` }
BindingResourceProperties - Binding resource properties payload
func (BindingResourceProperties) MarshalJSON ¶
func (b BindingResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BindingResourceProperties.
func (*BindingResourceProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BindingResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BindingResourceProperties.
type BindingType ¶ added in v0.3.0
type BindingType string
BindingType - Buildpack Binding Type
const ( BindingTypeApacheSkyWalking BindingType = "ApacheSkyWalking" BindingTypeAppDynamics BindingType = "AppDynamics" BindingTypeApplicationInsights BindingType = "ApplicationInsights" BindingTypeCACertificates BindingType = "CACertificates" BindingTypeDynatrace BindingType = "Dynatrace" BindingTypeElasticAPM BindingType = "ElasticAPM" BindingTypeNewRelic BindingType = "NewRelic" )
func PossibleBindingTypeValues ¶ added in v0.3.0
func PossibleBindingTypeValues() []BindingType
PossibleBindingTypeValues returns the possible values for the BindingType const type.
type BindingsClient ¶
type BindingsClient struct {
// contains filtered or unexported fields
}
BindingsClient contains the methods for the Bindings group. Don't use this type directly, use NewBindingsClient() instead.
func NewBindingsClient ¶
func NewBindingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BindingsClient, error)
NewBindingsClient creates a new instance of BindingsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BindingsClient) BeginCreateOrUpdate ¶
func (client *BindingsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, bindingName string, bindingResource BindingResource, options *BindingsClientBeginCreateOrUpdateOptions) (*runtime.Poller[BindingsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a new Binding or update an exiting Binding. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- bindingName - The name of the Binding resource.
- bindingResource - Parameters for the create or update operation
- options - BindingsClientBeginCreateOrUpdateOptions contains the optional parameters for the BindingsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Bindings_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBindingsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "myapp", "mybinding", armappplatform.BindingResource{ Properties: &armappplatform.BindingResourceProperties{ BindingParameters: map[string]any{ "apiType": "SQL", "databaseName": "db1", }, Key: to.Ptr("xxxx"), ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BindingResource = armappplatform.BindingResource{ // Name: to.Ptr("mybinding"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/bindings"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/bindings/mybinding"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BindingResourceProperties{ // BindingParameters: map[string]any{ // "apiType": "SQL", // "databaseName": "db1", // }, // CreatedAt: to.Ptr("2019-01-01T12:34:56.000Z"), // GeneratedProperties: to.Ptr("<connection-string>"), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1"), // ResourceName: to.Ptr("my-cosmosdb-1"), // ResourceType: to.Ptr("Microsoft.DocumentDB"), // UpdatedAt: to.Ptr("2019-01-01T12:34:56.000Z"), // }, // } }
Output:
func (*BindingsClient) BeginDelete ¶
func (client *BindingsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, appName string, bindingName string, options *BindingsClientBeginDeleteOptions) (*runtime.Poller[BindingsClientDeleteResponse], error)
BeginDelete - Operation to delete a Binding. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- bindingName - The name of the Binding resource.
- options - BindingsClientBeginDeleteOptions contains the optional parameters for the BindingsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Bindings_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBindingsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "myapp", "mybinding", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*BindingsClient) BeginUpdate ¶
func (client *BindingsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, bindingName string, bindingResource BindingResource, options *BindingsClientBeginUpdateOptions) (*runtime.Poller[BindingsClientUpdateResponse], error)
BeginUpdate - Operation to update an exiting Binding. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- bindingName - The name of the Binding resource.
- bindingResource - Parameters for the update operation
- options - BindingsClientBeginUpdateOptions contains the optional parameters for the BindingsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Bindings_Update.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBindingsClient().BeginUpdate(ctx, "myResourceGroup", "myservice", "myapp", "mybinding", armappplatform.BindingResource{ Properties: &armappplatform.BindingResourceProperties{ BindingParameters: map[string]any{ "apiType": "SQL", "databaseName": "db1", }, Key: to.Ptr("xxxx"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BindingResource = armappplatform.BindingResource{ // Name: to.Ptr("mybinding"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/bindings"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/bindings/mybinding"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BindingResourceProperties{ // BindingParameters: map[string]any{ // "apiType": "SQL", // "databaseName": "db1", // }, // CreatedAt: to.Ptr("2019-01-01T12:34:56.000Z"), // GeneratedProperties: to.Ptr("<connection-string>"), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1"), // ResourceName: to.Ptr("my-cosmosdb-1"), // ResourceType: to.Ptr("Microsoft.DocumentDB"), // UpdatedAt: to.Ptr("2019-01-01T12:34:56.000Z"), // }, // } }
Output:
func (*BindingsClient) Get ¶
func (client *BindingsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, appName string, bindingName string, options *BindingsClientGetOptions) (BindingsClientGetResponse, error)
Get - Get a Binding and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- bindingName - The name of the Binding resource.
- options - BindingsClientGetOptions contains the optional parameters for the BindingsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Bindings_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBindingsClient().Get(ctx, "myResourceGroup", "myservice", "myapp", "mybinding", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BindingResource = armappplatform.BindingResource{ // Name: to.Ptr("mybinding"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/bindings"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/bindings/mybinding"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BindingResourceProperties{ // BindingParameters: map[string]any{ // "apiType": "SQL", // "databaseName": "db1", // }, // CreatedAt: to.Ptr("2019-01-01T12:34:56.000Z"), // GeneratedProperties: to.Ptr("<connection-string>"), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1"), // ResourceName: to.Ptr("my-cosmosdb-1"), // ResourceType: to.Ptr("Microsoft.DocumentDB"), // UpdatedAt: to.Ptr("2019-01-01T12:34:56.000Z"), // }, // } }
Output:
func (*BindingsClient) NewListPager ¶ added in v0.5.0
func (client *BindingsClient) NewListPager(resourceGroupName string, serviceName string, appName string, options *BindingsClientListOptions) *runtime.Pager[BindingsClientListResponse]
NewListPager - Handles requests to list all resources in an App.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- options - BindingsClientListOptions contains the optional parameters for the BindingsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Bindings_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBindingsClient().NewListPager("myResourceGroup", "myservice", "myapp", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.BindingResourceCollection = armappplatform.BindingResourceCollection{ // Value: []*armappplatform.BindingResource{ // { // Name: to.Ptr("mybinding"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/bindings"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/bindings/mybinding"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BindingResourceProperties{ // BindingParameters: map[string]any{ // "apiType": "SQL", // "databaseName": "db1", // }, // CreatedAt: to.Ptr("2019-01-01T12:34:56.000Z"), // GeneratedProperties: to.Ptr("<connection-string>"), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1"), // ResourceName: to.Ptr("my-cosmosdb-1"), // ResourceType: to.Ptr("Microsoft.DocumentDB"), // UpdatedAt: to.Ptr("2019-01-01T12:34:56.000Z"), // }, // }}, // } } }
Output:
type BindingsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type BindingsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BindingsClientBeginCreateOrUpdateOptions contains the optional parameters for the BindingsClient.BeginCreateOrUpdate method.
type BindingsClientBeginDeleteOptions ¶ added in v0.3.0
type BindingsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BindingsClientBeginDeleteOptions contains the optional parameters for the BindingsClient.BeginDelete method.
type BindingsClientBeginUpdateOptions ¶ added in v0.3.0
type BindingsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BindingsClientBeginUpdateOptions contains the optional parameters for the BindingsClient.BeginUpdate method.
type BindingsClientCreateOrUpdateResponse ¶ added in v0.3.0
type BindingsClientCreateOrUpdateResponse struct {
BindingResource
}
BindingsClientCreateOrUpdateResponse contains the response from method BindingsClient.BeginCreateOrUpdate.
type BindingsClientDeleteResponse ¶ added in v0.3.0
type BindingsClientDeleteResponse struct { }
BindingsClientDeleteResponse contains the response from method BindingsClient.BeginDelete.
type BindingsClientGetOptions ¶ added in v0.3.0
type BindingsClientGetOptions struct { }
BindingsClientGetOptions contains the optional parameters for the BindingsClient.Get method.
type BindingsClientGetResponse ¶ added in v0.3.0
type BindingsClientGetResponse struct {
BindingResource
}
BindingsClientGetResponse contains the response from method BindingsClient.Get.
type BindingsClientListOptions ¶ added in v0.3.0
type BindingsClientListOptions struct { }
BindingsClientListOptions contains the optional parameters for the BindingsClient.NewListPager method.
type BindingsClientListResponse ¶ added in v0.3.0
type BindingsClientListResponse struct {
BindingResourceCollection
}
BindingsClientListResponse contains the response from method BindingsClient.NewListPager.
type BindingsClientUpdateResponse ¶ added in v0.3.0
type BindingsClientUpdateResponse struct {
BindingResource
}
BindingsClientUpdateResponse contains the response from method BindingsClient.BeginUpdate.
type Build ¶ added in v0.3.0
type Build struct { // Properties of the build resource Properties *BuildProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
Build resource payload
func (Build) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Build.
func (*Build) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Build.
type BuildCollection ¶ added in v0.3.0
type BuildCollection 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 Build resources Value []*Build `json:"value,omitempty"` }
BuildCollection - Object that includes an array of Build resources and a possible link for next set
func (BuildCollection) MarshalJSON ¶ added in v0.3.0
func (b BuildCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildCollection.
func (*BuildCollection) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildCollection.
type BuildProperties ¶ added in v0.3.0
type BuildProperties struct { // The resource id of agent pool AgentPool *string `json:"agentPool,omitempty"` // The resource id of builder to build the source code Builder *string `json:"builder,omitempty"` // The environment variables for this build Env map[string]*string `json:"env,omitempty"` // The relative path of source code RelativePath *string `json:"relativePath,omitempty"` // The customized build resource for this build ResourceRequests *BuildResourceRequests `json:"resourceRequests,omitempty"` // READ-ONLY; Provisioning state of the KPack build result ProvisioningState *BuildProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The build result triggered by this build TriggeredBuildResult *TriggeredBuildResult `json:"triggeredBuildResult,omitempty" azure:"ro"` }
BuildProperties - Build resource properties payload
func (BuildProperties) MarshalJSON ¶ added in v0.3.0
func (b BuildProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildProperties.
func (*BuildProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildProperties.
type BuildProvisioningState ¶ added in v0.3.0
type BuildProvisioningState string
BuildProvisioningState - Provisioning state of the KPack build result
const ( BuildProvisioningStateCreating BuildProvisioningState = "Creating" BuildProvisioningStateDeleting BuildProvisioningState = "Deleting" BuildProvisioningStateFailed BuildProvisioningState = "Failed" BuildProvisioningStateSucceeded BuildProvisioningState = "Succeeded" BuildProvisioningStateUpdating BuildProvisioningState = "Updating" )
func PossibleBuildProvisioningStateValues ¶ added in v0.3.0
func PossibleBuildProvisioningStateValues() []BuildProvisioningState
PossibleBuildProvisioningStateValues returns the possible values for the BuildProvisioningState const type.
type BuildResourceRequests ¶
type BuildResourceRequests struct { // Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m. The default value is 1, this should // not exceed build service agent pool cpu size. CPU *string `json:"cpu,omitempty"` // Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi. The default value is 2Gi, this // should not exceed build service agent pool memory size. Memory *string `json:"memory,omitempty"` }
BuildResourceRequests - Resource request payload of Build Resource.
func (BuildResourceRequests) MarshalJSON ¶
func (b BuildResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildResourceRequests.
func (*BuildResourceRequests) UnmarshalJSON ¶
func (b *BuildResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildResourceRequests.
type BuildResult ¶ added in v0.3.0
type BuildResult struct { // Properties of the build result resource Properties *BuildResultProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
BuildResult - Build result resource payload
func (BuildResult) MarshalJSON ¶ added in v1.1.0
func (b BuildResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildResult.
func (*BuildResult) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildResult.
type BuildResultCollection ¶ added in v0.3.0
type BuildResultCollection 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 Build result resources Value []*BuildResult `json:"value,omitempty"` }
BuildResultCollection - Object that includes an array of Build result resources and a possible link for next set
func (BuildResultCollection) MarshalJSON ¶ added in v0.3.0
func (b BuildResultCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildResultCollection.
func (*BuildResultCollection) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildResultCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildResultCollection.
type BuildResultLog ¶ added in v0.3.0
type BuildResultLog struct { // The public download URL of this build result log BlobURL *string `json:"blobUrl,omitempty"` }
BuildResultLog - Build result log resource properties payload
func (BuildResultLog) MarshalJSON ¶ added in v1.1.0
func (b BuildResultLog) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildResultLog.
func (*BuildResultLog) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildResultLog) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildResultLog.
type BuildResultProperties ¶ added in v0.3.0
type BuildResultProperties struct { // The build pod name which can be used to get the build log streaming. BuildPodName *string `json:"buildPodName,omitempty"` // Error when build is failed. Error *Error `json:"error,omitempty"` // The name of this build result Name *string `json:"name,omitempty"` // READ-ONLY; All of the build stage (init-container and container) resources in build pod. BuildStages []*BuildStageProperties `json:"buildStages,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the KPack build result ProvisioningState *BuildResultProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
BuildResultProperties - Build result resource properties payload
func (BuildResultProperties) MarshalJSON ¶ added in v0.3.0
func (b BuildResultProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildResultProperties.
func (*BuildResultProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildResultProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildResultProperties.
type BuildResultProvisioningState ¶ added in v0.3.0
type BuildResultProvisioningState string
BuildResultProvisioningState - Provisioning state of the KPack build result
const ( BuildResultProvisioningStateBuilding BuildResultProvisioningState = "Building" BuildResultProvisioningStateDeleting BuildResultProvisioningState = "Deleting" BuildResultProvisioningStateFailed BuildResultProvisioningState = "Failed" BuildResultProvisioningStateQueuing BuildResultProvisioningState = "Queuing" BuildResultProvisioningStateSucceeded BuildResultProvisioningState = "Succeeded" )
func PossibleBuildResultProvisioningStateValues ¶ added in v0.3.0
func PossibleBuildResultProvisioningStateValues() []BuildResultProvisioningState
PossibleBuildResultProvisioningStateValues returns the possible values for the BuildResultProvisioningState const type.
type BuildResultUserSourceInfo ¶ added in v0.3.0
type BuildResultUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // Resource id of an existing succeeded build result under the same Spring instance. BuildResultID *string `json:"buildResultId,omitempty"` // Version of the source Version *string `json:"version,omitempty"` }
BuildResultUserSourceInfo - Reference to a build result
func (*BuildResultUserSourceInfo) GetUserSourceInfo ¶ added in v0.3.0
func (b *BuildResultUserSourceInfo) GetUserSourceInfo() *UserSourceInfo
GetUserSourceInfo implements the UserSourceInfoClassification interface for type BuildResultUserSourceInfo.
func (BuildResultUserSourceInfo) MarshalJSON ¶ added in v0.3.0
func (b BuildResultUserSourceInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildResultUserSourceInfo.
func (*BuildResultUserSourceInfo) UnmarshalJSON ¶ added in v0.3.0
func (b *BuildResultUserSourceInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildResultUserSourceInfo.
type BuildService ¶ added in v0.3.0
type BuildService struct { // Properties of the build resource Properties *BuildServiceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
BuildService - Build service resource payload
func (BuildService) MarshalJSON ¶ added in v1.1.0
func (b BuildService) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildService.
func (*BuildService) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildService) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildService.
type BuildServiceAgentPoolClient ¶ added in v0.3.0
type BuildServiceAgentPoolClient struct {
// contains filtered or unexported fields
}
BuildServiceAgentPoolClient contains the methods for the BuildServiceAgentPool group. Don't use this type directly, use NewBuildServiceAgentPoolClient() instead.
func NewBuildServiceAgentPoolClient ¶ added in v0.3.0
func NewBuildServiceAgentPoolClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BuildServiceAgentPoolClient, error)
NewBuildServiceAgentPoolClient creates a new instance of BuildServiceAgentPoolClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BuildServiceAgentPoolClient) BeginUpdatePut ¶ added in v0.3.0
func (client *BuildServiceAgentPoolClient) BeginUpdatePut(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, agentPoolName string, agentPoolResource BuildServiceAgentPoolResource, options *BuildServiceAgentPoolClientBeginUpdatePutOptions) (*runtime.Poller[BuildServiceAgentPoolClientUpdatePutResponse], error)
BeginUpdatePut - Create or update build service agent pool. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- agentPoolName - The name of the build service agent pool resource.
- agentPoolResource - Parameters for the update operation
- options - BuildServiceAgentPoolClientBeginUpdatePutOptions contains the optional parameters for the BuildServiceAgentPoolClient.BeginUpdatePut method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildServiceAgentPool_UpdatePut.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBuildServiceAgentPoolClient().BeginUpdatePut(ctx, "myResourceGroup", "myservice", "default", "default", armappplatform.BuildServiceAgentPoolResource{ Properties: &armappplatform.BuildServiceAgentPoolProperties{ PoolSize: &armappplatform.BuildServiceAgentPoolSizeProperties{ Name: to.Ptr("S3"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BuildServiceAgentPoolResource = armappplatform.BuildServiceAgentPoolResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/agentPools"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/agentPools/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildServiceAgentPoolProperties{ // PoolSize: &armappplatform.BuildServiceAgentPoolSizeProperties{ // Name: to.Ptr("S3"), // CPU: to.Ptr("4"), // Memory: to.Ptr("8Gi"), // }, // ProvisioningState: to.Ptr("Succeeded"), // }, // } }
Output:
func (*BuildServiceAgentPoolClient) Get ¶ added in v0.3.0
func (client *BuildServiceAgentPoolClient) Get(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, agentPoolName string, options *BuildServiceAgentPoolClientGetOptions) (BuildServiceAgentPoolClientGetResponse, error)
Get - Get build service agent pool. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- agentPoolName - The name of the build service agent pool resource.
- options - BuildServiceAgentPoolClientGetOptions contains the optional parameters for the BuildServiceAgentPoolClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildServiceAgentPool_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceAgentPoolClient().Get(ctx, "myResourceGroup", "myservice", "default", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BuildServiceAgentPoolResource = armappplatform.BuildServiceAgentPoolResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/agentPools"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/agentPools/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildServiceAgentPoolProperties{ // PoolSize: &armappplatform.BuildServiceAgentPoolSizeProperties{ // Name: to.Ptr("S3"), // CPU: to.Ptr("4"), // Memory: to.Ptr("8Gi"), // }, // ProvisioningState: to.Ptr("Succeeded"), // }, // } }
Output:
func (*BuildServiceAgentPoolClient) NewListPager ¶ added in v0.5.0
func (client *BuildServiceAgentPoolClient) NewListPager(resourceGroupName string, serviceName string, buildServiceName string, options *BuildServiceAgentPoolClientListOptions) *runtime.Pager[BuildServiceAgentPoolClientListResponse]
NewListPager - List build service agent pool.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- options - BuildServiceAgentPoolClientListOptions contains the optional parameters for the BuildServiceAgentPoolClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildServiceAgentPool_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBuildServiceAgentPoolClient().NewListPager("myResourceGroup", "myservice", "default", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.BuildServiceAgentPoolResourceCollection = armappplatform.BuildServiceAgentPoolResourceCollection{ // Value: []*armappplatform.BuildServiceAgentPoolResource{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/agentPools"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/agentPools/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildServiceAgentPoolProperties{ // PoolSize: &armappplatform.BuildServiceAgentPoolSizeProperties{ // Name: to.Ptr("S3"), // CPU: to.Ptr("4"), // Memory: to.Ptr("8Gi"), // }, // ProvisioningState: to.Ptr("Succeeded"), // }, // }}, // } } }
Output:
type BuildServiceAgentPoolClientBeginUpdatePutOptions ¶ added in v0.3.0
type BuildServiceAgentPoolClientBeginUpdatePutOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BuildServiceAgentPoolClientBeginUpdatePutOptions contains the optional parameters for the BuildServiceAgentPoolClient.BeginUpdatePut method.
type BuildServiceAgentPoolClientGetOptions ¶ added in v0.3.0
type BuildServiceAgentPoolClientGetOptions struct { }
BuildServiceAgentPoolClientGetOptions contains the optional parameters for the BuildServiceAgentPoolClient.Get method.
type BuildServiceAgentPoolClientGetResponse ¶ added in v0.3.0
type BuildServiceAgentPoolClientGetResponse struct {
BuildServiceAgentPoolResource
}
BuildServiceAgentPoolClientGetResponse contains the response from method BuildServiceAgentPoolClient.Get.
type BuildServiceAgentPoolClientListOptions ¶ added in v0.3.0
type BuildServiceAgentPoolClientListOptions struct { }
BuildServiceAgentPoolClientListOptions contains the optional parameters for the BuildServiceAgentPoolClient.NewListPager method.
type BuildServiceAgentPoolClientListResponse ¶ added in v0.3.0
type BuildServiceAgentPoolClientListResponse struct {
BuildServiceAgentPoolResourceCollection
}
BuildServiceAgentPoolClientListResponse contains the response from method BuildServiceAgentPoolClient.NewListPager.
type BuildServiceAgentPoolClientUpdatePutResponse ¶ added in v0.3.0
type BuildServiceAgentPoolClientUpdatePutResponse struct {
BuildServiceAgentPoolResource
}
BuildServiceAgentPoolClientUpdatePutResponse contains the response from method BuildServiceAgentPoolClient.BeginUpdatePut.
type BuildServiceAgentPoolProperties ¶ added in v0.3.0
type BuildServiceAgentPoolProperties struct { // build service agent pool size properties PoolSize *BuildServiceAgentPoolSizeProperties `json:"poolSize,omitempty"` // READ-ONLY; Provisioning state of the build service agent pool ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
BuildServiceAgentPoolProperties - Build service agent pool properties
func (BuildServiceAgentPoolProperties) MarshalJSON ¶ added in v1.1.0
func (b BuildServiceAgentPoolProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildServiceAgentPoolProperties.
func (*BuildServiceAgentPoolProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildServiceAgentPoolProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildServiceAgentPoolProperties.
type BuildServiceAgentPoolResource ¶ added in v0.3.0
type BuildServiceAgentPoolResource struct { // build service agent pool properties Properties *BuildServiceAgentPoolProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
BuildServiceAgentPoolResource - The build service agent pool resource
func (BuildServiceAgentPoolResource) MarshalJSON ¶ added in v1.1.0
func (b BuildServiceAgentPoolResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildServiceAgentPoolResource.
func (*BuildServiceAgentPoolResource) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildServiceAgentPoolResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildServiceAgentPoolResource.
type BuildServiceAgentPoolResourceCollection ¶ added in v0.3.0
type BuildServiceAgentPoolResourceCollection 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 build service agent pool resource Value []*BuildServiceAgentPoolResource `json:"value,omitempty"` }
BuildServiceAgentPoolResourceCollection - Object that includes an array of build service agent pool resources and a possible link for next set
func (BuildServiceAgentPoolResourceCollection) MarshalJSON ¶ added in v0.3.0
func (b BuildServiceAgentPoolResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildServiceAgentPoolResourceCollection.
func (*BuildServiceAgentPoolResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildServiceAgentPoolResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildServiceAgentPoolResourceCollection.
type BuildServiceAgentPoolSizeProperties ¶ added in v0.3.0
type BuildServiceAgentPoolSizeProperties struct { // The name of build service agent pool size Name *string `json:"name,omitempty"` // READ-ONLY; The cpu property of build service agent pool size CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; The memory property of build service agent pool size Memory *string `json:"memory,omitempty" azure:"ro"` }
BuildServiceAgentPoolSizeProperties - Build service agent pool size properties
func (BuildServiceAgentPoolSizeProperties) MarshalJSON ¶ added in v1.1.0
func (b BuildServiceAgentPoolSizeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildServiceAgentPoolSizeProperties.
func (*BuildServiceAgentPoolSizeProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildServiceAgentPoolSizeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildServiceAgentPoolSizeProperties.
type BuildServiceBuilderClient ¶ added in v0.3.0
type BuildServiceBuilderClient struct {
// contains filtered or unexported fields
}
BuildServiceBuilderClient contains the methods for the BuildServiceBuilder group. Don't use this type directly, use NewBuildServiceBuilderClient() instead.
func NewBuildServiceBuilderClient ¶ added in v0.3.0
func NewBuildServiceBuilderClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BuildServiceBuilderClient, error)
NewBuildServiceBuilderClient creates a new instance of BuildServiceBuilderClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BuildServiceBuilderClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *BuildServiceBuilderClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, builderResource BuilderResource, options *BuildServiceBuilderClientBeginCreateOrUpdateOptions) (*runtime.Poller[BuildServiceBuilderClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a KPack builder. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- builderName - The name of the builder resource.
- builderResource - The target builder for the create or update operation
- options - BuildServiceBuilderClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildServiceBuilderClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildServiceBuilder_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBuildServiceBuilderClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", "mybuilder", armappplatform.BuilderResource{ Properties: &armappplatform.BuilderProperties{ BuildpackGroups: []*armappplatform.BuildpacksGroupProperties{ { Name: to.Ptr("mix"), Buildpacks: []*armappplatform.BuildpackProperties{ { ID: to.Ptr("tanzu-buildpacks/java-azure"), }}, }}, Stack: &armappplatform.StackProperties{ ID: to.Ptr("io.buildpacks.stacks.bionic"), Version: to.Ptr("base"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BuilderResource = armappplatform.BuilderResource{ // Name: to.Ptr("mybuilder"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builders"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/mybuilder"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuilderProperties{ // BuildpackGroups: []*armappplatform.BuildpacksGroupProperties{ // { // Name: to.Ptr("mix"), // Buildpacks: []*armappplatform.BuildpackProperties{ // { // ID: to.Ptr("tanzu-buildpacks/java-azure"), // }, // { // ID: to.Ptr("tanzu-buildpacks/dotnet-core"), // }}, // }}, // ProvisioningState: to.Ptr(armappplatform.BuilderProvisioningStateSucceeded), // Stack: &armappplatform.StackProperties{ // ID: to.Ptr("io.buildpacks.stacks.bionic"), // Version: to.Ptr("base"), // }, // }, // } }
Output:
func (*BuildServiceBuilderClient) BeginDelete ¶ added in v0.3.0
func (client *BuildServiceBuilderClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, options *BuildServiceBuilderClientBeginDeleteOptions) (*runtime.Poller[BuildServiceBuilderClientDeleteResponse], error)
BeginDelete - Delete a KPack builder. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- builderName - The name of the builder resource.
- options - BuildServiceBuilderClientBeginDeleteOptions contains the optional parameters for the BuildServiceBuilderClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildServiceBuilder_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBuildServiceBuilderClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", "mybuilder", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*BuildServiceBuilderClient) Get ¶ added in v0.3.0
func (client *BuildServiceBuilderClient) Get(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, options *BuildServiceBuilderClientGetOptions) (BuildServiceBuilderClientGetResponse, error)
Get - Get a KPack builder. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- builderName - The name of the builder resource.
- options - BuildServiceBuilderClientGetOptions contains the optional parameters for the BuildServiceBuilderClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildServiceBuilder_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceBuilderClient().Get(ctx, "myResourceGroup", "myservice", "default", "mybuilder", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BuilderResource = armappplatform.BuilderResource{ // Name: to.Ptr("mybuilder"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builders"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/mybuilder"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuilderProperties{ // BuildpackGroups: []*armappplatform.BuildpacksGroupProperties{ // { // Name: to.Ptr("mix"), // Buildpacks: []*armappplatform.BuildpackProperties{ // { // ID: to.Ptr("tanzu-buildpacks/java-azure"), // }}, // }}, // ProvisioningState: to.Ptr(armappplatform.BuilderProvisioningStateSucceeded), // Stack: &armappplatform.StackProperties{ // ID: to.Ptr("io.buildpacks.stacks.bionic"), // Version: to.Ptr("base"), // }, // }, // } }
Output:
func (*BuildServiceBuilderClient) ListDeployments ¶
func (client *BuildServiceBuilderClient) ListDeployments(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, options *BuildServiceBuilderClientListDeploymentsOptions) (BuildServiceBuilderClientListDeploymentsResponse, error)
ListDeployments - List deployments that are using the builder. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- builderName - The name of the builder resource.
- options - BuildServiceBuilderClientListDeploymentsOptions contains the optional parameters for the BuildServiceBuilderClient.ListDeployments method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildServiceBuilder_ListDeployments.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceBuilderClient().ListDeployments(ctx, "myResourceGroup", "myservice", "default", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DeploymentList = armappplatform.DeploymentList{ // Deployments: []*string{ // to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/test/deployments/default"), // to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/test/deployments/green")}, // } }
Output:
func (*BuildServiceBuilderClient) NewListPager ¶ added in v0.5.0
func (client *BuildServiceBuilderClient) NewListPager(resourceGroupName string, serviceName string, buildServiceName string, options *BuildServiceBuilderClientListOptions) *runtime.Pager[BuildServiceBuilderClientListResponse]
NewListPager - List KPack builders result.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- options - BuildServiceBuilderClientListOptions contains the optional parameters for the BuildServiceBuilderClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildServiceBuilder_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBuildServiceBuilderClient().NewListPager("myResourceGroup", "myservice", "default", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.BuilderResourceCollection = armappplatform.BuilderResourceCollection{ // Value: []*armappplatform.BuilderResource{ // { // Name: to.Ptr("mybuilder"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builders"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/mybuilder"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuilderProperties{ // BuildpackGroups: []*armappplatform.BuildpacksGroupProperties{ // { // Name: to.Ptr("mix"), // Buildpacks: []*armappplatform.BuildpackProperties{ // { // ID: to.Ptr("tanzu-buildpacks/java-azure"), // }}, // }}, // ProvisioningState: to.Ptr(armappplatform.BuilderProvisioningStateSucceeded), // Stack: &armappplatform.StackProperties{ // ID: to.Ptr("io.buildpacks.stacks.bionic"), // Version: to.Ptr("base"), // }, // }, // }}, // } } }
Output:
type BuildServiceBuilderClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type BuildServiceBuilderClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BuildServiceBuilderClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildServiceBuilderClient.BeginCreateOrUpdate method.
type BuildServiceBuilderClientBeginDeleteOptions ¶ added in v0.3.0
type BuildServiceBuilderClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BuildServiceBuilderClientBeginDeleteOptions contains the optional parameters for the BuildServiceBuilderClient.BeginDelete method.
type BuildServiceBuilderClientCreateOrUpdateResponse ¶ added in v0.3.0
type BuildServiceBuilderClientCreateOrUpdateResponse struct {
BuilderResource
}
BuildServiceBuilderClientCreateOrUpdateResponse contains the response from method BuildServiceBuilderClient.BeginCreateOrUpdate.
type BuildServiceBuilderClientDeleteResponse ¶ added in v0.3.0
type BuildServiceBuilderClientDeleteResponse struct { }
BuildServiceBuilderClientDeleteResponse contains the response from method BuildServiceBuilderClient.BeginDelete.
type BuildServiceBuilderClientGetOptions ¶ added in v0.3.0
type BuildServiceBuilderClientGetOptions struct { }
BuildServiceBuilderClientGetOptions contains the optional parameters for the BuildServiceBuilderClient.Get method.
type BuildServiceBuilderClientGetResponse ¶ added in v0.3.0
type BuildServiceBuilderClientGetResponse struct {
BuilderResource
}
BuildServiceBuilderClientGetResponse contains the response from method BuildServiceBuilderClient.Get.
type BuildServiceBuilderClientListDeploymentsOptions ¶
type BuildServiceBuilderClientListDeploymentsOptions struct { }
BuildServiceBuilderClientListDeploymentsOptions contains the optional parameters for the BuildServiceBuilderClient.ListDeployments method.
type BuildServiceBuilderClientListDeploymentsResponse ¶
type BuildServiceBuilderClientListDeploymentsResponse struct {
DeploymentList
}
BuildServiceBuilderClientListDeploymentsResponse contains the response from method BuildServiceBuilderClient.ListDeployments.
type BuildServiceBuilderClientListOptions ¶ added in v0.3.0
type BuildServiceBuilderClientListOptions struct { }
BuildServiceBuilderClientListOptions contains the optional parameters for the BuildServiceBuilderClient.NewListPager method.
type BuildServiceBuilderClientListResponse ¶ added in v0.3.0
type BuildServiceBuilderClientListResponse struct {
BuilderResourceCollection
}
BuildServiceBuilderClientListResponse contains the response from method BuildServiceBuilderClient.NewListPager.
type BuildServiceClient ¶ added in v0.3.0
type BuildServiceClient struct {
// contains filtered or unexported fields
}
BuildServiceClient contains the methods for the BuildService group. Don't use this type directly, use NewBuildServiceClient() instead.
func NewBuildServiceClient ¶ added in v0.3.0
func NewBuildServiceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BuildServiceClient, error)
NewBuildServiceClient creates a new instance of BuildServiceClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BuildServiceClient) CreateOrUpdateBuild ¶ added in v0.3.0
func (client *BuildServiceClient) CreateOrUpdateBuild(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, buildName string, buildParam Build, options *BuildServiceClientCreateOrUpdateBuildOptions) (BuildServiceClientCreateOrUpdateBuildResponse, error)
CreateOrUpdateBuild - Create or update a KPack build. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- buildName - The name of the build resource.
- buildParam - Parameters for the create or update operation
- options - BuildServiceClientCreateOrUpdateBuildOptions contains the optional parameters for the BuildServiceClient.CreateOrUpdateBuild method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_CreateOrUpdateBuild.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceClient().CreateOrUpdateBuild(ctx, "myResourceGroup", "myservice", "default", "mybuild", armappplatform.Build{ Properties: &armappplatform.BuildProperties{ AgentPool: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/agentPools/default"), Builder: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/default"), Env: map[string]*string{ "environmentVariable": to.Ptr("test"), }, RelativePath: to.Ptr("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20210601-3ed9f4a2-986b-4bbd-b833-a42dccb2f777"), ResourceRequests: &armappplatform.BuildResourceRequests{ CPU: to.Ptr("1"), Memory: to.Ptr("2Gi"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Build = armappplatform.Build{ // Name: to.Ptr("mybuild"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builds"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builds/mybuild"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildProperties{ // AgentPool: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/agentPools/default"), // Builder: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/default"), // Env: map[string]*string{ // "environmentVariable": to.Ptr("test"), // }, // ProvisioningState: to.Ptr(armappplatform.BuildProvisioningStateSucceeded), // RelativePath: to.Ptr("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20210601-3ed9f4a2-986b-4bbd-b833-a42dccb2f777"), // ResourceRequests: &armappplatform.BuildResourceRequests{ // CPU: to.Ptr("1"), // Memory: to.Ptr("2Gi"), // }, // }, // } }
Output:
func (*BuildServiceClient) GetBuild ¶ added in v0.3.0
func (client *BuildServiceClient) GetBuild(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, buildName string, options *BuildServiceClientGetBuildOptions) (BuildServiceClientGetBuildResponse, error)
GetBuild - Get a KPack build. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- buildName - The name of the build resource.
- options - BuildServiceClientGetBuildOptions contains the optional parameters for the BuildServiceClient.GetBuild method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_GetBuild.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceClient().GetBuild(ctx, "myResourceGroup", "myservice", "default", "mybuild", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Build = armappplatform.Build{ // Name: to.Ptr("123"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builds/results"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builds/mybuild/results/123"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildProperties{ // AgentPool: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/agentPools/default"), // Builder: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/default"), // Env: map[string]*string{ // "environmentVariable": to.Ptr("test"), // }, // ProvisioningState: to.Ptr(armappplatform.BuildProvisioningStateSucceeded), // RelativePath: to.Ptr("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20210601-3ed9f4a2-986b-4bbd-b833-a42dccb2f777"), // ResourceRequests: &armappplatform.BuildResourceRequests{ // CPU: to.Ptr("1"), // Memory: to.Ptr("2Gi"), // }, // }, // } }
Output:
func (*BuildServiceClient) GetBuildResult ¶ added in v0.3.0
func (client *BuildServiceClient) GetBuildResult(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, buildName string, buildResultName string, options *BuildServiceClientGetBuildResultOptions) (BuildServiceClientGetBuildResultResponse, error)
GetBuildResult - Get a KPack build result. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- buildName - The name of the build resource.
- buildResultName - The name of the build result resource.
- options - BuildServiceClientGetBuildResultOptions contains the optional parameters for the BuildServiceClient.GetBuildResult method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_GetBuildResult.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceClient().GetBuildResult(ctx, "myResourceGroup", "myservice", "default", "mybuild", "123", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BuildResult = armappplatform.BuildResult{ // Name: to.Ptr("123"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builds/results"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builds/mybuild/results/123"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildResultProperties{ // Name: to.Ptr("123"), // BuildPodName: to.Ptr("mybuild-default-1"), // BuildStages: []*armappplatform.BuildStageProperties{ // { // Name: to.Ptr("prepare"), // ExitCode: to.Ptr("0"), // Reason: to.Ptr("Completed"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateSucceeded), // }, // { // Name: to.Ptr("detect"), // ExitCode: to.Ptr("0"), // Reason: to.Ptr("Completed"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateSucceeded), // }, // { // Name: to.Ptr("analyze"), // ExitCode: to.Ptr("0"), // Reason: to.Ptr("Completed"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateSucceeded), // }, // { // Name: to.Ptr("restore"), // ExitCode: to.Ptr("0"), // Reason: to.Ptr("Completed"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateSucceeded), // }, // { // Name: to.Ptr("build"), // ExitCode: to.Ptr("51"), // Reason: to.Ptr("Error"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateFailed), // }, // { // Name: to.Ptr("export"), // ExitCode: to.Ptr("-1"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateNotStarted), // }}, // Error: &armappplatform.Error{ // Code: to.Ptr("51"), // Message: to.Ptr("Build failed in stage build with reason OOMKilled, please refer to https://aka.ms/buildexitcode"), // }, // ProvisioningState: to.Ptr(armappplatform.BuildResultProvisioningStateSucceeded), // }, // } }
Output:
func (*BuildServiceClient) GetBuildResultLog ¶ added in v0.3.0
func (client *BuildServiceClient) GetBuildResultLog(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, buildName string, buildResultName string, options *BuildServiceClientGetBuildResultLogOptions) (BuildServiceClientGetBuildResultLogResponse, error)
GetBuildResultLog - Get a KPack build result log download URL. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- buildName - The name of the build resource.
- buildResultName - The name of the build result resource.
- options - BuildServiceClientGetBuildResultLogOptions contains the optional parameters for the BuildServiceClient.GetBuildResultLog method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_GetBuildResultLog.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceClient().GetBuildResultLog(ctx, "myResourceGroup", "myservice", "default", "mybuild", "123", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BuildResultLog = armappplatform.BuildResultLog{ // BlobURL: to.Ptr("https://sample-storage-account-name.blob.core.windows.net/sample-log-blob-file?readonly-sas-token"), // } }
Output:
func (*BuildServiceClient) GetBuildService ¶ added in v0.3.0
func (client *BuildServiceClient) GetBuildService(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, options *BuildServiceClientGetBuildServiceOptions) (BuildServiceClientGetBuildServiceResponse, error)
GetBuildService - Get a build service resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- options - BuildServiceClientGetBuildServiceOptions contains the optional parameters for the BuildServiceClient.GetBuildService method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_GetBuildService.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceClient().GetBuildService(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BuildService = armappplatform.BuildService{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildServiceProperties{ // KPackVersion: to.Ptr("0.3.1"), // ProvisioningState: to.Ptr(armappplatform.BuildServiceProvisioningStateSucceeded), // ResourceRequests: &armappplatform.BuildServicePropertiesResourceRequests{ // CPU: to.Ptr("200m"), // Memory: to.Ptr("4Gi"), // }, // }, // } }
Output:
func (*BuildServiceClient) GetResourceUploadURL ¶ added in v0.3.0
func (client *BuildServiceClient) GetResourceUploadURL(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, options *BuildServiceClientGetResourceUploadURLOptions) (BuildServiceClientGetResourceUploadURLResponse, error)
GetResourceUploadURL - Get an resource upload URL for build service, which may be artifacts or source archive. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- options - BuildServiceClientGetResourceUploadURLOptions contains the optional parameters for the BuildServiceClient.GetResourceUploadURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_GetResourceUploadUrl.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceClient().GetResourceUploadURL(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ResourceUploadDefinition = armappplatform.ResourceUploadDefinition{ // RelativePath: to.Ptr("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20210601-3ed9f4a2-986b-4bbd-b833-a42dccb2f777"), // UploadURL: to.Ptr("https://springcloudstorageaccount.file.core.windows.net/bd172614181f42e2853f6fd90029cda8/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20210601-3ed9f4a2-986b-4bbd-b833-a42dccb2f777?sv=2021-06-01&sr=f&sig=SampleSignature&se=2021-06-01T10%3A42%3A21Z&sp=w"), // } }
Output:
func (*BuildServiceClient) GetSupportedBuildpack ¶ added in v0.3.0
func (client *BuildServiceClient) GetSupportedBuildpack(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, buildpackName string, options *BuildServiceClientGetSupportedBuildpackOptions) (BuildServiceClientGetSupportedBuildpackResponse, error)
GetSupportedBuildpack - Get the supported buildpack resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- buildpackName - The name of the buildpack resource.
- options - BuildServiceClientGetSupportedBuildpackOptions contains the optional parameters for the BuildServiceClient.GetSupportedBuildpack method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_GetSupportedBuildpack.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceClient().GetSupportedBuildpack(ctx, "myResourceGroup", "myservice", "default", "tanzu-buildpacks-java-azure", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.SupportedBuildpackResource = armappplatform.SupportedBuildpackResource{ // Name: to.Ptr("tanzu-buildpacks-java-azure"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/supportedBuildpacks"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/supportedBuildpacks/tanzu-buildpacks-java-azure"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.SupportedBuildpackResourceProperties{ // BuildpackID: to.Ptr("tanzu-buildpacks/java-azure"), // }, // } }
Output:
func (*BuildServiceClient) GetSupportedStack ¶ added in v0.3.0
func (client *BuildServiceClient) GetSupportedStack(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, stackName string, options *BuildServiceClientGetSupportedStackOptions) (BuildServiceClientGetSupportedStackResponse, error)
GetSupportedStack - Get the supported stack resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- stackName - The name of the stack resource.
- options - BuildServiceClientGetSupportedStackOptions contains the optional parameters for the BuildServiceClient.GetSupportedStack method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_GetSupportedStack.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceClient().GetSupportedStack(ctx, "myResourceGroup", "myservice", "default", "io.buildpacks.stacks.bionic-base", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.SupportedStackResource = armappplatform.SupportedStackResource{ // Name: to.Ptr("io.buildpacks.stacks.bionic-base"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/supportedStacks"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/supportedBuildpacks/io.buildpacks.stacks.bionic-base"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.SupportedStackResourceProperties{ // StackID: to.Ptr("io.buildpacks.stacks.bionic"), // Version: to.Ptr("base"), // }, // } }
Output:
func (*BuildServiceClient) ListSupportedBuildpacks ¶ added in v0.3.0
func (client *BuildServiceClient) ListSupportedBuildpacks(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, options *BuildServiceClientListSupportedBuildpacksOptions) (BuildServiceClientListSupportedBuildpacksResponse, error)
ListSupportedBuildpacks - Get all supported buildpacks. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- options - BuildServiceClientListSupportedBuildpacksOptions contains the optional parameters for the BuildServiceClient.ListSupportedBuildpacks method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_ListSupportedBuildpacks.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceClient().ListSupportedBuildpacks(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.SupportedBuildpacksCollection = armappplatform.SupportedBuildpacksCollection{ // Value: []*armappplatform.SupportedBuildpackResource{ // { // Name: to.Ptr("tanzu-buildpacks-java-azure"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/supportedBuildpacks"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/supportedBuildpacks/tanzu-buildpacks-java-azure"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.SupportedBuildpackResourceProperties{ // BuildpackID: to.Ptr("tanzu-buildpacks/java-azure"), // }, // }}, // } }
Output:
func (*BuildServiceClient) ListSupportedStacks ¶ added in v0.3.0
func (client *BuildServiceClient) ListSupportedStacks(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, options *BuildServiceClientListSupportedStacksOptions) (BuildServiceClientListSupportedStacksResponse, error)
ListSupportedStacks - Get all supported stacks. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- options - BuildServiceClientListSupportedStacksOptions contains the optional parameters for the BuildServiceClient.ListSupportedStacks method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_ListSupportedStacks.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildServiceClient().ListSupportedStacks(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.SupportedStacksCollection = armappplatform.SupportedStacksCollection{ // Value: []*armappplatform.SupportedStackResource{ // { // Name: to.Ptr("io.buildpacks.stacks.bionic-base"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/supportedStacks"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/supportedStacks/io.buildpacks.stacks.bionic-base"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.SupportedStackResourceProperties{ // StackID: to.Ptr("io.buildpacks.stacks.bionic"), // Version: to.Ptr("base"), // }, // }}, // } }
Output:
func (*BuildServiceClient) NewListBuildResultsPager ¶ added in v0.5.0
func (client *BuildServiceClient) NewListBuildResultsPager(resourceGroupName string, serviceName string, buildServiceName string, buildName string, options *BuildServiceClientListBuildResultsOptions) *runtime.Pager[BuildServiceClientListBuildResultsResponse]
NewListBuildResultsPager - List KPack build results.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- buildName - The name of the build resource.
- options - BuildServiceClientListBuildResultsOptions contains the optional parameters for the BuildServiceClient.NewListBuildResultsPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_ListBuildResults.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBuildServiceClient().NewListBuildResultsPager("myResourceGroup", "myservice", "default", "mybuild", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.BuildResultCollection = armappplatform.BuildResultCollection{ // Value: []*armappplatform.BuildResult{ // { // Name: to.Ptr("123"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builds/results"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builds/mybuild/results/123"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildResultProperties{ // Name: to.Ptr("123"), // BuildPodName: to.Ptr("mybuild-default-1"), // BuildStages: []*armappplatform.BuildStageProperties{ // { // Name: to.Ptr("prepare"), // ExitCode: to.Ptr("0"), // Reason: to.Ptr("Completed"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateSucceeded), // }, // { // Name: to.Ptr("detect"), // ExitCode: to.Ptr("0"), // Reason: to.Ptr("Completed"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateSucceeded), // }, // { // Name: to.Ptr("analyze"), // ExitCode: to.Ptr("0"), // Reason: to.Ptr("Completed"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateSucceeded), // }, // { // Name: to.Ptr("restore"), // ExitCode: to.Ptr("0"), // Reason: to.Ptr("Completed"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateSucceeded), // }, // { // Name: to.Ptr("build"), // ExitCode: to.Ptr("51"), // Reason: to.Ptr("Error"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateFailed), // }, // { // Name: to.Ptr("export"), // ExitCode: to.Ptr("-1"), // Status: to.Ptr(armappplatform.KPackBuildStageProvisioningStateNotStarted), // }}, // Error: &armappplatform.Error{ // Code: to.Ptr("51"), // Message: to.Ptr("Build failed in stage build with reason OOMKilled, please refer to https://aka.ms/buildexitcode"), // }, // ProvisioningState: to.Ptr(armappplatform.BuildResultProvisioningStateSucceeded), // }, // }}, // } } }
Output:
func (*BuildServiceClient) NewListBuildServicesPager ¶ added in v0.5.0
func (client *BuildServiceClient) NewListBuildServicesPager(resourceGroupName string, serviceName string, options *BuildServiceClientListBuildServicesOptions) *runtime.Pager[BuildServiceClientListBuildServicesResponse]
NewListBuildServicesPager - List build services resource.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - BuildServiceClientListBuildServicesOptions contains the optional parameters for the BuildServiceClient.NewListBuildServicesPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_ListBuildServices.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBuildServiceClient().NewListBuildServicesPager("myResourceGroup", "myservice", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.BuildServiceCollection = armappplatform.BuildServiceCollection{ // Value: []*armappplatform.BuildService{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildServiceProperties{ // KPackVersion: to.Ptr("0.3.1"), // ProvisioningState: to.Ptr(armappplatform.BuildServiceProvisioningStateSucceeded), // ResourceRequests: &armappplatform.BuildServicePropertiesResourceRequests{ // CPU: to.Ptr("200m"), // Memory: to.Ptr("4Gi"), // }, // }, // }}, // } } }
Output:
func (*BuildServiceClient) NewListBuildsPager ¶ added in v0.5.0
func (client *BuildServiceClient) NewListBuildsPager(resourceGroupName string, serviceName string, buildServiceName string, options *BuildServiceClientListBuildsOptions) *runtime.Pager[BuildServiceClientListBuildsResponse]
NewListBuildsPager - List KPack builds.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- options - BuildServiceClientListBuildsOptions contains the optional parameters for the BuildServiceClient.NewListBuildsPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildService_ListBuilds.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBuildServiceClient().NewListBuildsPager("myResourceGroup", "myservice", "default", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.BuildCollection = armappplatform.BuildCollection{ // Value: []*armappplatform.Build{ // { // Name: to.Ptr("myBuild"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builds"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builds/myBuild"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildProperties{ // AgentPool: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/agentPools/default"), // Builder: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/default"), // Env: map[string]*string{ // "environmentVariable": to.Ptr("test"), // }, // ProvisioningState: to.Ptr(armappplatform.BuildProvisioningStateSucceeded), // RelativePath: to.Ptr("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20210601-3ed9f4a2-986b-4bbd-b833-a42dccb2f777"), // ResourceRequests: &armappplatform.BuildResourceRequests{ // CPU: to.Ptr("1"), // Memory: to.Ptr("2Gi"), // }, // }, // }}, // } } }
Output:
type BuildServiceClientCreateOrUpdateBuildOptions ¶ added in v0.3.0
type BuildServiceClientCreateOrUpdateBuildOptions struct { }
BuildServiceClientCreateOrUpdateBuildOptions contains the optional parameters for the BuildServiceClient.CreateOrUpdateBuild method.
type BuildServiceClientCreateOrUpdateBuildResponse ¶ added in v0.3.0
type BuildServiceClientCreateOrUpdateBuildResponse struct {
Build
}
BuildServiceClientCreateOrUpdateBuildResponse contains the response from method BuildServiceClient.CreateOrUpdateBuild.
type BuildServiceClientGetBuildOptions ¶ added in v0.3.0
type BuildServiceClientGetBuildOptions struct { }
BuildServiceClientGetBuildOptions contains the optional parameters for the BuildServiceClient.GetBuild method.
type BuildServiceClientGetBuildResponse ¶ added in v0.3.0
type BuildServiceClientGetBuildResponse struct {
Build
}
BuildServiceClientGetBuildResponse contains the response from method BuildServiceClient.GetBuild.
type BuildServiceClientGetBuildResultLogOptions ¶ added in v0.3.0
type BuildServiceClientGetBuildResultLogOptions struct { }
BuildServiceClientGetBuildResultLogOptions contains the optional parameters for the BuildServiceClient.GetBuildResultLog method.
type BuildServiceClientGetBuildResultLogResponse ¶ added in v0.3.0
type BuildServiceClientGetBuildResultLogResponse struct {
BuildResultLog
}
BuildServiceClientGetBuildResultLogResponse contains the response from method BuildServiceClient.GetBuildResultLog.
type BuildServiceClientGetBuildResultOptions ¶ added in v0.3.0
type BuildServiceClientGetBuildResultOptions struct { }
BuildServiceClientGetBuildResultOptions contains the optional parameters for the BuildServiceClient.GetBuildResult method.
type BuildServiceClientGetBuildResultResponse ¶ added in v0.3.0
type BuildServiceClientGetBuildResultResponse struct {
BuildResult
}
BuildServiceClientGetBuildResultResponse contains the response from method BuildServiceClient.GetBuildResult.
type BuildServiceClientGetBuildServiceOptions ¶ added in v0.3.0
type BuildServiceClientGetBuildServiceOptions struct { }
BuildServiceClientGetBuildServiceOptions contains the optional parameters for the BuildServiceClient.GetBuildService method.
type BuildServiceClientGetBuildServiceResponse ¶ added in v0.3.0
type BuildServiceClientGetBuildServiceResponse struct {
BuildService
}
BuildServiceClientGetBuildServiceResponse contains the response from method BuildServiceClient.GetBuildService.
type BuildServiceClientGetResourceUploadURLOptions ¶ added in v0.3.0
type BuildServiceClientGetResourceUploadURLOptions struct { }
BuildServiceClientGetResourceUploadURLOptions contains the optional parameters for the BuildServiceClient.GetResourceUploadURL method.
type BuildServiceClientGetResourceUploadURLResponse ¶ added in v0.3.0
type BuildServiceClientGetResourceUploadURLResponse struct {
ResourceUploadDefinition
}
BuildServiceClientGetResourceUploadURLResponse contains the response from method BuildServiceClient.GetResourceUploadURL.
type BuildServiceClientGetSupportedBuildpackOptions ¶ added in v0.3.0
type BuildServiceClientGetSupportedBuildpackOptions struct { }
BuildServiceClientGetSupportedBuildpackOptions contains the optional parameters for the BuildServiceClient.GetSupportedBuildpack method.
type BuildServiceClientGetSupportedBuildpackResponse ¶ added in v0.3.0
type BuildServiceClientGetSupportedBuildpackResponse struct {
SupportedBuildpackResource
}
BuildServiceClientGetSupportedBuildpackResponse contains the response from method BuildServiceClient.GetSupportedBuildpack.
type BuildServiceClientGetSupportedStackOptions ¶ added in v0.3.0
type BuildServiceClientGetSupportedStackOptions struct { }
BuildServiceClientGetSupportedStackOptions contains the optional parameters for the BuildServiceClient.GetSupportedStack method.
type BuildServiceClientGetSupportedStackResponse ¶ added in v0.3.0
type BuildServiceClientGetSupportedStackResponse struct {
SupportedStackResource
}
BuildServiceClientGetSupportedStackResponse contains the response from method BuildServiceClient.GetSupportedStack.
type BuildServiceClientListBuildResultsOptions ¶ added in v0.3.0
type BuildServiceClientListBuildResultsOptions struct { }
BuildServiceClientListBuildResultsOptions contains the optional parameters for the BuildServiceClient.NewListBuildResultsPager method.
type BuildServiceClientListBuildResultsResponse ¶ added in v0.3.0
type BuildServiceClientListBuildResultsResponse struct {
BuildResultCollection
}
BuildServiceClientListBuildResultsResponse contains the response from method BuildServiceClient.NewListBuildResultsPager.
type BuildServiceClientListBuildServicesOptions ¶ added in v0.3.0
type BuildServiceClientListBuildServicesOptions struct { }
BuildServiceClientListBuildServicesOptions contains the optional parameters for the BuildServiceClient.NewListBuildServicesPager method.
type BuildServiceClientListBuildServicesResponse ¶ added in v0.3.0
type BuildServiceClientListBuildServicesResponse struct {
BuildServiceCollection
}
BuildServiceClientListBuildServicesResponse contains the response from method BuildServiceClient.NewListBuildServicesPager.
type BuildServiceClientListBuildsOptions ¶ added in v0.3.0
type BuildServiceClientListBuildsOptions struct { }
BuildServiceClientListBuildsOptions contains the optional parameters for the BuildServiceClient.NewListBuildsPager method.
type BuildServiceClientListBuildsResponse ¶ added in v0.3.0
type BuildServiceClientListBuildsResponse struct {
BuildCollection
}
BuildServiceClientListBuildsResponse contains the response from method BuildServiceClient.NewListBuildsPager.
type BuildServiceClientListSupportedBuildpacksOptions ¶ added in v0.3.0
type BuildServiceClientListSupportedBuildpacksOptions struct { }
BuildServiceClientListSupportedBuildpacksOptions contains the optional parameters for the BuildServiceClient.ListSupportedBuildpacks method.
type BuildServiceClientListSupportedBuildpacksResponse ¶ added in v0.3.0
type BuildServiceClientListSupportedBuildpacksResponse struct {
SupportedBuildpacksCollection
}
BuildServiceClientListSupportedBuildpacksResponse contains the response from method BuildServiceClient.ListSupportedBuildpacks.
type BuildServiceClientListSupportedStacksOptions ¶ added in v0.3.0
type BuildServiceClientListSupportedStacksOptions struct { }
BuildServiceClientListSupportedStacksOptions contains the optional parameters for the BuildServiceClient.ListSupportedStacks method.
type BuildServiceClientListSupportedStacksResponse ¶ added in v0.3.0
type BuildServiceClientListSupportedStacksResponse struct {
SupportedStacksCollection
}
BuildServiceClientListSupportedStacksResponse contains the response from method BuildServiceClient.ListSupportedStacks.
type BuildServiceCollection ¶ added in v0.3.0
type BuildServiceCollection 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 Build service resources Value []*BuildService `json:"value,omitempty"` }
BuildServiceCollection - Object that includes an array of Build service resources and a possible link for next set
func (BuildServiceCollection) MarshalJSON ¶ added in v0.3.0
func (b BuildServiceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildServiceCollection.
func (*BuildServiceCollection) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildServiceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildServiceCollection.
type BuildServiceProperties ¶ added in v0.3.0
type BuildServiceProperties struct { // The installed KPack version in this build service. KPackVersion *string `json:"kPackVersion,omitempty"` // The runtime resource configuration of this build service. ResourceRequests *BuildServicePropertiesResourceRequests `json:"resourceRequests,omitempty"` // READ-ONLY; Provisioning state of the KPack build result ProvisioningState *BuildServiceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
BuildServiceProperties - Build service resource properties payload
func (BuildServiceProperties) MarshalJSON ¶ added in v1.1.0
func (b BuildServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildServiceProperties.
func (*BuildServiceProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildServiceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildServiceProperties.
type BuildServicePropertiesResourceRequests ¶ added in v0.3.0
type BuildServicePropertiesResourceRequests struct { // READ-ONLY; vCPU allocated to the entire build service node pool. CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to the entire build service node pool. Memory *string `json:"memory,omitempty" azure:"ro"` }
BuildServicePropertiesResourceRequests - The runtime resource configuration of this build service.
func (BuildServicePropertiesResourceRequests) MarshalJSON ¶ added in v1.1.0
func (b BuildServicePropertiesResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildServicePropertiesResourceRequests.
func (*BuildServicePropertiesResourceRequests) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildServicePropertiesResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildServicePropertiesResourceRequests.
type BuildServiceProvisioningState ¶ added in v0.3.0
type BuildServiceProvisioningState string
BuildServiceProvisioningState - Provisioning state of the KPack build result
const ( BuildServiceProvisioningStateCreating BuildServiceProvisioningState = "Creating" BuildServiceProvisioningStateDeleting BuildServiceProvisioningState = "Deleting" BuildServiceProvisioningStateFailed BuildServiceProvisioningState = "Failed" BuildServiceProvisioningStateSucceeded BuildServiceProvisioningState = "Succeeded" BuildServiceProvisioningStateUpdating BuildServiceProvisioningState = "Updating" )
func PossibleBuildServiceProvisioningStateValues ¶ added in v0.3.0
func PossibleBuildServiceProvisioningStateValues() []BuildServiceProvisioningState
PossibleBuildServiceProvisioningStateValues returns the possible values for the BuildServiceProvisioningState const type.
type BuildStageProperties ¶ added in v0.3.0
type BuildStageProperties struct { // READ-ONLY; The exit code of this build init container. ExitCode *string `json:"exitCode,omitempty" azure:"ro"` // READ-ONLY; The name of this build stage resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The reason of this build init container. Reason *string `json:"reason,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of this build stage resource. Status *KPackBuildStageProvisioningState `json:"status,omitempty" azure:"ro"` }
BuildStageProperties - The build stage (init-container and container) resources in build pod.
func (BuildStageProperties) MarshalJSON ¶ added in v1.1.0
func (b BuildStageProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildStageProperties.
func (*BuildStageProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildStageProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildStageProperties.
type BuilderProperties ¶ added in v0.3.0
type BuilderProperties struct { // Builder buildpack groups. BuildpackGroups []*BuildpacksGroupProperties `json:"buildpackGroups,omitempty"` // Builder cluster stack property. Stack *StackProperties `json:"stack,omitempty"` // READ-ONLY; Builder provision status. ProvisioningState *BuilderProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
BuilderProperties - KPack Builder properties payload
func (BuilderProperties) MarshalJSON ¶ added in v0.3.0
func (b BuilderProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuilderProperties.
func (*BuilderProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuilderProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuilderProperties.
type BuilderProvisioningState ¶ added in v0.3.0
type BuilderProvisioningState string
BuilderProvisioningState - Builder provision status.
const ( BuilderProvisioningStateCreating BuilderProvisioningState = "Creating" BuilderProvisioningStateDeleting BuilderProvisioningState = "Deleting" BuilderProvisioningStateFailed BuilderProvisioningState = "Failed" BuilderProvisioningStateSucceeded BuilderProvisioningState = "Succeeded" BuilderProvisioningStateUpdating BuilderProvisioningState = "Updating" )
func PossibleBuilderProvisioningStateValues ¶ added in v0.3.0
func PossibleBuilderProvisioningStateValues() []BuilderProvisioningState
PossibleBuilderProvisioningStateValues returns the possible values for the BuilderProvisioningState const type.
type BuilderResource ¶ added in v0.3.0
type BuilderResource struct { // Property of the Builder resource. Properties *BuilderProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
BuilderResource - KPack Builder resource
func (BuilderResource) MarshalJSON ¶ added in v1.1.0
func (b BuilderResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuilderResource.
func (*BuilderResource) UnmarshalJSON ¶ added in v1.1.0
func (b *BuilderResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuilderResource.
type BuilderResourceCollection ¶ added in v0.3.0
type BuilderResourceCollection 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 Builder resources Value []*BuilderResource `json:"value,omitempty"` }
BuilderResourceCollection - Object that includes an array of Builder resources and a possible link for next set
func (BuilderResourceCollection) MarshalJSON ¶ added in v0.3.0
func (b BuilderResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuilderResourceCollection.
func (*BuilderResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (b *BuilderResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuilderResourceCollection.
type BuildpackBindingClient ¶ added in v0.3.0
type BuildpackBindingClient struct {
// contains filtered or unexported fields
}
BuildpackBindingClient contains the methods for the BuildpackBinding group. Don't use this type directly, use NewBuildpackBindingClient() instead.
func NewBuildpackBindingClient ¶ added in v0.3.0
func NewBuildpackBindingClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BuildpackBindingClient, error)
NewBuildpackBindingClient creates a new instance of BuildpackBindingClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BuildpackBindingClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *BuildpackBindingClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, buildpackBindingName string, buildpackBinding BuildpackBindingResource, options *BuildpackBindingClientBeginCreateOrUpdateOptions) (*runtime.Poller[BuildpackBindingClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a buildpack binding. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- builderName - The name of the builder resource.
- buildpackBindingName - The name of the Buildpack Binding Name
- buildpackBinding - The target buildpack binding for the create or update operation
- options - BuildpackBindingClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildpackBindingClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildpackBinding_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBuildpackBindingClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", "default", "myBuildpackBinding", armappplatform.BuildpackBindingResource{ Properties: &armappplatform.BuildpackBindingProperties{ BindingType: to.Ptr(armappplatform.BindingTypeApplicationInsights), LaunchProperties: &armappplatform.BuildpackBindingLaunchProperties{ Properties: map[string]*string{ "abc": to.Ptr("def"), "any-string": to.Ptr("any-string"), "sampling-rate": to.Ptr("12.0"), }, Secrets: map[string]*string{ "connection-string": to.Ptr("XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX"), }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BuildpackBindingResource = armappplatform.BuildpackBindingResource{ // Name: to.Ptr("myBuildpackBinding"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/default/buildpackBindings/myBuildpackBinding"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildpackBindingProperties{ // BindingType: to.Ptr(armappplatform.BindingTypeApplicationInsights), // LaunchProperties: &armappplatform.BuildpackBindingLaunchProperties{ // Properties: map[string]*string{ // "abc": to.Ptr("def"), // "any-string": to.Ptr("any-string"), // "sampling-rate": to.Ptr("12.0"), // }, // Secrets: map[string]*string{ // "connection-string": to.Ptr("*"), // }, // }, // }, // } }
Output:
func (*BuildpackBindingClient) BeginDelete ¶ added in v0.3.0
func (client *BuildpackBindingClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, buildpackBindingName string, options *BuildpackBindingClientBeginDeleteOptions) (*runtime.Poller[BuildpackBindingClientDeleteResponse], error)
BeginDelete - Operation to delete a Buildpack Binding If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- builderName - The name of the builder resource.
- buildpackBindingName - The name of the Buildpack Binding Name
- options - BuildpackBindingClientBeginDeleteOptions contains the optional parameters for the BuildpackBindingClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildpackBinding_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBuildpackBindingClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", "default", "myBuildpackBinding", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*BuildpackBindingClient) Get ¶ added in v0.3.0
func (client *BuildpackBindingClient) Get(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, buildpackBindingName string, options *BuildpackBindingClientGetOptions) (BuildpackBindingClientGetResponse, error)
Get - Get a buildpack binding by name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- builderName - The name of the builder resource.
- buildpackBindingName - The name of the Buildpack Binding Name
- options - BuildpackBindingClientGetOptions contains the optional parameters for the BuildpackBindingClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildpackBinding_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBuildpackBindingClient().Get(ctx, "myResourceGroup", "myservice", "default", "default", "myBuildpackBinding", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BuildpackBindingResource = armappplatform.BuildpackBindingResource{ // Name: to.Ptr("myBuildpackBinding"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/default/buildpackBindings/myBuildpackBinding"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildpackBindingProperties{ // BindingType: to.Ptr(armappplatform.BindingTypeApplicationInsights), // LaunchProperties: &armappplatform.BuildpackBindingLaunchProperties{ // Properties: map[string]*string{ // "abc": to.Ptr("def"), // "any-string": to.Ptr("any-string"), // "sampling-rate": to.Ptr("12.0"), // }, // Secrets: map[string]*string{ // "connection-string": to.Ptr("*"), // }, // }, // }, // } }
Output:
func (*BuildpackBindingClient) NewListPager ¶ added in v0.5.0
func (client *BuildpackBindingClient) NewListPager(resourceGroupName string, serviceName string, buildServiceName string, builderName string, options *BuildpackBindingClientListOptions) *runtime.Pager[BuildpackBindingClientListResponse]
NewListPager - Handles requests to list all buildpack bindings in a builder.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- buildServiceName - The name of the build service resource.
- builderName - The name of the builder resource.
- options - BuildpackBindingClientListOptions contains the optional parameters for the BuildpackBindingClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/BuildpackBinding_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBuildpackBindingClient().NewListPager("myResourceGroup", "myservice", "default", "default", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.BuildpackBindingResourceCollection = armappplatform.BuildpackBindingResourceCollection{ // Value: []*armappplatform.BuildpackBindingResource{ // { // Name: to.Ptr("myBuildpackBinding"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/default/buildpackBindings/myBuildpackBinding"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.BuildpackBindingProperties{ // BindingType: to.Ptr(armappplatform.BindingTypeApplicationInsights), // LaunchProperties: &armappplatform.BuildpackBindingLaunchProperties{ // Properties: map[string]*string{ // "abc": to.Ptr("def"), // "any-string": to.Ptr("any-string"), // "sampling-rate": to.Ptr("12.0"), // }, // Secrets: map[string]*string{ // "connection-string": to.Ptr("*"), // }, // }, // }, // }}, // } } }
Output:
type BuildpackBindingClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type BuildpackBindingClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BuildpackBindingClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildpackBindingClient.BeginCreateOrUpdate method.
type BuildpackBindingClientBeginDeleteOptions ¶ added in v0.3.0
type BuildpackBindingClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BuildpackBindingClientBeginDeleteOptions contains the optional parameters for the BuildpackBindingClient.BeginDelete method.
type BuildpackBindingClientCreateOrUpdateResponse ¶ added in v0.3.0
type BuildpackBindingClientCreateOrUpdateResponse struct {
BuildpackBindingResource
}
BuildpackBindingClientCreateOrUpdateResponse contains the response from method BuildpackBindingClient.BeginCreateOrUpdate.
type BuildpackBindingClientDeleteResponse ¶ added in v0.3.0
type BuildpackBindingClientDeleteResponse struct { }
BuildpackBindingClientDeleteResponse contains the response from method BuildpackBindingClient.BeginDelete.
type BuildpackBindingClientGetOptions ¶ added in v0.3.0
type BuildpackBindingClientGetOptions struct { }
BuildpackBindingClientGetOptions contains the optional parameters for the BuildpackBindingClient.Get method.
type BuildpackBindingClientGetResponse ¶ added in v0.3.0
type BuildpackBindingClientGetResponse struct {
BuildpackBindingResource
}
BuildpackBindingClientGetResponse contains the response from method BuildpackBindingClient.Get.
type BuildpackBindingClientListOptions ¶ added in v0.3.0
type BuildpackBindingClientListOptions struct { }
BuildpackBindingClientListOptions contains the optional parameters for the BuildpackBindingClient.NewListPager method.
type BuildpackBindingClientListResponse ¶ added in v0.3.0
type BuildpackBindingClientListResponse struct {
BuildpackBindingResourceCollection
}
BuildpackBindingClientListResponse contains the response from method BuildpackBindingClient.NewListPager.
type BuildpackBindingLaunchProperties ¶ added in v0.3.0
type BuildpackBindingLaunchProperties struct { // Non-sensitive properties for launchProperties Properties map[string]*string `json:"properties,omitempty"` // Sensitive properties for launchProperties Secrets map[string]*string `json:"secrets,omitempty"` }
BuildpackBindingLaunchProperties - Buildpack Binding Launch Properties
func (BuildpackBindingLaunchProperties) MarshalJSON ¶ added in v0.3.0
func (b BuildpackBindingLaunchProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildpackBindingLaunchProperties.
func (*BuildpackBindingLaunchProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildpackBindingLaunchProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildpackBindingLaunchProperties.
type BuildpackBindingProperties ¶ added in v0.3.0
type BuildpackBindingProperties struct { // Buildpack Binding Type BindingType *BindingType `json:"bindingType,omitempty"` // The object describes the buildpack binding launch properties LaunchProperties *BuildpackBindingLaunchProperties `json:"launchProperties,omitempty"` // READ-ONLY; State of the Buildpack Binding. ProvisioningState *BuildpackBindingProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
BuildpackBindingProperties - Properties of a buildpack binding
func (BuildpackBindingProperties) MarshalJSON ¶ added in v1.1.0
func (b BuildpackBindingProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildpackBindingProperties.
func (*BuildpackBindingProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildpackBindingProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildpackBindingProperties.
type BuildpackBindingProvisioningState ¶ added in v0.3.0
type BuildpackBindingProvisioningState string
BuildpackBindingProvisioningState - State of the Buildpack Binding.
const ( BuildpackBindingProvisioningStateCreating BuildpackBindingProvisioningState = "Creating" BuildpackBindingProvisioningStateDeleting BuildpackBindingProvisioningState = "Deleting" BuildpackBindingProvisioningStateFailed BuildpackBindingProvisioningState = "Failed" BuildpackBindingProvisioningStateSucceeded BuildpackBindingProvisioningState = "Succeeded" BuildpackBindingProvisioningStateUpdating BuildpackBindingProvisioningState = "Updating" )
func PossibleBuildpackBindingProvisioningStateValues ¶ added in v0.3.0
func PossibleBuildpackBindingProvisioningStateValues() []BuildpackBindingProvisioningState
PossibleBuildpackBindingProvisioningStateValues returns the possible values for the BuildpackBindingProvisioningState const type.
type BuildpackBindingResource ¶ added in v0.3.0
type BuildpackBindingResource struct { // Properties of a buildpack binding Properties *BuildpackBindingProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
BuildpackBindingResource - Buildpack Binding Resource object
func (BuildpackBindingResource) MarshalJSON ¶ added in v1.1.0
func (b BuildpackBindingResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildpackBindingResource.
func (*BuildpackBindingResource) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildpackBindingResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildpackBindingResource.
type BuildpackBindingResourceCollection ¶ added in v0.3.0
type BuildpackBindingResourceCollection 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 BuildpackBinding resources Value []*BuildpackBindingResource `json:"value,omitempty"` }
BuildpackBindingResourceCollection - Object that includes an array of BuildpackBinding resources and a possible link for next set
func (BuildpackBindingResourceCollection) MarshalJSON ¶ added in v0.3.0
func (b BuildpackBindingResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildpackBindingResourceCollection.
func (*BuildpackBindingResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildpackBindingResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildpackBindingResourceCollection.
type BuildpackProperties ¶ added in v0.3.0
type BuildpackProperties struct { // Id of the buildpack ID *string `json:"id,omitempty"` }
BuildpackProperties - Buildpack properties payload
func (BuildpackProperties) MarshalJSON ¶ added in v1.1.0
func (b BuildpackProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildpackProperties.
func (*BuildpackProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildpackProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildpackProperties.
type BuildpacksGroupProperties ¶ added in v0.3.0
type BuildpacksGroupProperties struct { // Buildpacks in the buildpack group Buildpacks []*BuildpackProperties `json:"buildpacks,omitempty"` // Buildpack group name Name *string `json:"name,omitempty"` }
BuildpacksGroupProperties - Buildpack group properties of the Builder
func (BuildpacksGroupProperties) MarshalJSON ¶ added in v0.3.0
func (b BuildpacksGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BuildpacksGroupProperties.
func (*BuildpacksGroupProperties) UnmarshalJSON ¶ added in v1.1.0
func (b *BuildpacksGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BuildpacksGroupProperties.
type CertificateProperties ¶
type CertificateProperties struct { // REQUIRED; The type of the certificate source. Type *string `json:"type,omitempty"` // READ-ONLY; The activate date of certificate. ActivateDate *string `json:"activateDate,omitempty" azure:"ro"` // READ-ONLY; The domain list of certificate. DNSNames []*string `json:"dnsNames,omitempty" azure:"ro"` // READ-ONLY; The expiration date of certificate. ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` // READ-ONLY; The issue date of certificate. IssuedDate *string `json:"issuedDate,omitempty" azure:"ro"` // READ-ONLY; The issuer of certificate. Issuer *string `json:"issuer,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the Certificate ProvisioningState *CertificateResourceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The subject name of certificate. SubjectName *string `json:"subjectName,omitempty" azure:"ro"` // READ-ONLY; The thumbprint of certificate. Thumbprint *string `json:"thumbprint,omitempty" azure:"ro"` }
CertificateProperties - Certificate resource payload.
func (*CertificateProperties) GetCertificateProperties ¶ added in v0.2.0
func (c *CertificateProperties) GetCertificateProperties() *CertificateProperties
GetCertificateProperties implements the CertificatePropertiesClassification interface for type CertificateProperties.
func (CertificateProperties) MarshalJSON ¶
func (c CertificateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CertificateProperties.
func (*CertificateProperties) UnmarshalJSON ¶ added in v0.2.0
func (c *CertificateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CertificateProperties.
type CertificatePropertiesClassification ¶ added in v0.2.0
type CertificatePropertiesClassification interface { // GetCertificateProperties returns the CertificateProperties content of the underlying type. GetCertificateProperties() *CertificateProperties }
CertificatePropertiesClassification provides polymorphic access to related types. Call the interface's GetCertificateProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *CertificateProperties, *ContentCertificateProperties, *KeyVaultCertificateProperties
type CertificateResource ¶
type CertificateResource struct { // Properties of the certificate resource payload. Properties CertificatePropertiesClassification `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
CertificateResource - Certificate resource payload.
func (CertificateResource) MarshalJSON ¶
func (c CertificateResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CertificateResource.
func (*CertificateResource) UnmarshalJSON ¶ added in v0.2.0
func (c *CertificateResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CertificateResource.
type CertificateResourceCollection ¶
type CertificateResourceCollection struct { // The link to next page of certificate list. NextLink *string `json:"nextLink,omitempty"` // The certificate resources list. Value []*CertificateResource `json:"value,omitempty"` }
CertificateResourceCollection - Collection compose of certificate resources list and a possible link for next page.
func (CertificateResourceCollection) MarshalJSON ¶
func (c CertificateResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CertificateResourceCollection.
func (*CertificateResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (c *CertificateResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CertificateResourceCollection.
type CertificateResourceProvisioningState ¶
type CertificateResourceProvisioningState string
CertificateResourceProvisioningState - Provisioning state of the Certificate
const ( CertificateResourceProvisioningStateCreating CertificateResourceProvisioningState = "Creating" CertificateResourceProvisioningStateDeleting CertificateResourceProvisioningState = "Deleting" CertificateResourceProvisioningStateFailed CertificateResourceProvisioningState = "Failed" CertificateResourceProvisioningStateSucceeded CertificateResourceProvisioningState = "Succeeded" CertificateResourceProvisioningStateUpdating CertificateResourceProvisioningState = "Updating" )
func PossibleCertificateResourceProvisioningStateValues ¶
func PossibleCertificateResourceProvisioningStateValues() []CertificateResourceProvisioningState
PossibleCertificateResourceProvisioningStateValues returns the possible values for the CertificateResourceProvisioningState 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 - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*CertificatesClient) BeginCreateOrUpdate ¶
func (client *CertificatesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, certificateName string, certificateResource CertificateResource, options *CertificatesClientBeginCreateOrUpdateOptions) (*runtime.Poller[CertificatesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update certificate resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- certificateName - The name of the certificate resource.
- certificateResource - Parameters for the create or update operation
- options - CertificatesClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificatesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Certificates_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewCertificatesClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "mycertificate", armappplatform.CertificateResource{ Properties: &armappplatform.KeyVaultCertificateProperties{ Type: to.Ptr("KeyVaultCertificate"), CertVersion: to.Ptr("08a219d06d874795a96db47e06fbb01e"), KeyVaultCertName: to.Ptr("mycert"), VaultURI: to.Ptr("https://myvault.vault.azure.net"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CertificateResource = armappplatform.CertificateResource{ // Name: to.Ptr("mycertificate"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/certificates"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycertificate"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.KeyVaultCertificateProperties{ // Type: to.Ptr("KeyVaultCertificate"), // ActivateDate: to.Ptr("2019-02-22T07:40:42Z"), // DNSNames: []*string{ // to.Ptr("mydomain.com"), // to.Ptr("mydomain.net"), // to.Ptr("mydomain.io")}, // ExpirationDate: to.Ptr("2019-02-21T07:40:42Z"), // IssuedDate: to.Ptr("2019-02-20T07:40:42Z"), // Issuer: to.Ptr("mydomain.com"), // SubjectName: to.Ptr("mysubjectname"), // Thumbprint: to.Ptr("934367bf1c97033f877db0f15cb1b586957d3133"), // CertVersion: to.Ptr("08a219d06d874795a96db47e06fbb01e"), // ExcludePrivateKey: to.Ptr(false), // KeyVaultCertName: to.Ptr("mycert"), // VaultURI: to.Ptr("https://myvault.vault.azure.net"), // }, // } }
Output:
func (*CertificatesClient) BeginDelete ¶
func (client *CertificatesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, certificateName string, options *CertificatesClientBeginDeleteOptions) (*runtime.Poller[CertificatesClientDeleteResponse], error)
BeginDelete - Delete the certificate resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- certificateName - The name of the certificate resource.
- options - CertificatesClientBeginDeleteOptions contains the optional parameters for the CertificatesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Certificates_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewCertificatesClient().BeginDelete(ctx, "myResourceGroup", "myservice", "mycertificate", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*CertificatesClient) Get ¶
func (client *CertificatesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, certificateName string, options *CertificatesClientGetOptions) (CertificatesClientGetResponse, error)
Get - Get the certificate resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- certificateName - The name of the certificate resource.
- options - CertificatesClientGetOptions contains the optional parameters for the CertificatesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Certificates_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewCertificatesClient().Get(ctx, "myResourceGroup", "myservice", "mycertificate", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CertificateResource = armappplatform.CertificateResource{ // Name: to.Ptr("mycertificate"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/certificates"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycertificate"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.KeyVaultCertificateProperties{ // Type: to.Ptr("KeyVaultCertificate"), // ActivateDate: to.Ptr("2019-02-22T07:40:42Z"), // DNSNames: []*string{ // to.Ptr("mydomain.com"), // to.Ptr("mydomain.net"), // to.Ptr("mydomain.io")}, // ExpirationDate: to.Ptr("2019-02-21T07:40:42Z"), // IssuedDate: to.Ptr("2019-02-20T07:40:42Z"), // Issuer: to.Ptr("mydomain.com"), // ProvisioningState: to.Ptr(armappplatform.CertificateResourceProvisioningStateSucceeded), // SubjectName: to.Ptr("mysubjectname"), // Thumbprint: to.Ptr("934367bf1c97033f877db0f15cb1b586957d3133"), // CertVersion: to.Ptr("08a219d06d874795a96db47e06fbb01e"), // ExcludePrivateKey: to.Ptr(false), // KeyVaultCertName: to.Ptr("mycert"), // VaultURI: to.Ptr("https://myvault.vault.azure.net"), // }, // } }
Output:
func (*CertificatesClient) NewListPager ¶ added in v0.5.0
func (client *CertificatesClient) NewListPager(resourceGroupName string, serviceName string, options *CertificatesClientListOptions) *runtime.Pager[CertificatesClientListResponse]
NewListPager - List all the certificates of one user.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - CertificatesClientListOptions contains the optional parameters for the CertificatesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Certificates_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewCertificatesClient().NewListPager("myResourceGroup", "myService", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.CertificateResourceCollection = armappplatform.CertificateResourceCollection{ // Value: []*armappplatform.CertificateResource{ // { // Name: to.Ptr("mycertificate"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/certificates"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycertificate"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.KeyVaultCertificateProperties{ // Type: to.Ptr("KeyVaultCertificate"), // ActivateDate: to.Ptr("2019-02-22T07:40:42Z"), // DNSNames: []*string{ // to.Ptr("mydomain.com"), // to.Ptr("mydomain.net"), // to.Ptr("mydomain.io")}, // ExpirationDate: to.Ptr("2019-02-21T07:40:42Z"), // IssuedDate: to.Ptr("2019-02-20T07:40:42Z"), // Issuer: to.Ptr("mydomain.com"), // ProvisioningState: to.Ptr(armappplatform.CertificateResourceProvisioningStateSucceeded), // SubjectName: to.Ptr("mysubjectname"), // Thumbprint: to.Ptr("934367bf1c97033f877db0f15cb1b586957d3133"), // CertVersion: to.Ptr("08a219d06d874795a96db47e06fbb01e"), // ExcludePrivateKey: to.Ptr(false), // KeyVaultCertName: to.Ptr("mycert"), // VaultURI: to.Ptr("https://myvault.vault.azure.net"), // }, // }}, // } } }
Output:
type CertificatesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type CertificatesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CertificatesClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificatesClient.BeginCreateOrUpdate method.
type CertificatesClientBeginDeleteOptions ¶ added in v0.3.0
type CertificatesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CertificatesClientBeginDeleteOptions contains the optional parameters for the CertificatesClient.BeginDelete method.
type CertificatesClientCreateOrUpdateResponse ¶ added in v0.3.0
type CertificatesClientCreateOrUpdateResponse struct {
CertificateResource
}
CertificatesClientCreateOrUpdateResponse contains the response from method CertificatesClient.BeginCreateOrUpdate.
type CertificatesClientDeleteResponse ¶ added in v0.3.0
type CertificatesClientDeleteResponse struct { }
CertificatesClientDeleteResponse contains the response from method CertificatesClient.BeginDelete.
type CertificatesClientGetOptions ¶ added in v0.3.0
type CertificatesClientGetOptions struct { }
CertificatesClientGetOptions contains the optional parameters for the CertificatesClient.Get method.
type CertificatesClientGetResponse ¶ added in v0.3.0
type CertificatesClientGetResponse struct {
CertificateResource
}
CertificatesClientGetResponse contains the response from method CertificatesClient.Get.
type CertificatesClientListOptions ¶ added in v0.3.0
type CertificatesClientListOptions struct { }
CertificatesClientListOptions contains the optional parameters for the CertificatesClient.NewListPager method.
type CertificatesClientListResponse ¶ added in v0.3.0
type CertificatesClientListResponse struct {
CertificateResourceCollection
}
CertificatesClientListResponse contains the response from method CertificatesClient.NewListPager.
type ClientFactory ¶ added in v1.1.0
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶ added in v1.1.0
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewAPIPortalCustomDomainsClient ¶
func (c *ClientFactory) NewAPIPortalCustomDomainsClient() *APIPortalCustomDomainsClient
func (*ClientFactory) NewAPIPortalsClient ¶
func (c *ClientFactory) NewAPIPortalsClient() *APIPortalsClient
func (*ClientFactory) NewApplicationAcceleratorsClient ¶
func (c *ClientFactory) NewApplicationAcceleratorsClient() *ApplicationAcceleratorsClient
func (*ClientFactory) NewApplicationLiveViewsClient ¶
func (c *ClientFactory) NewApplicationLiveViewsClient() *ApplicationLiveViewsClient
func (*ClientFactory) NewAppsClient ¶ added in v1.1.0
func (c *ClientFactory) NewAppsClient() *AppsClient
func (*ClientFactory) NewBindingsClient ¶ added in v1.1.0
func (c *ClientFactory) NewBindingsClient() *BindingsClient
func (*ClientFactory) NewBuildServiceAgentPoolClient ¶ added in v1.1.0
func (c *ClientFactory) NewBuildServiceAgentPoolClient() *BuildServiceAgentPoolClient
func (*ClientFactory) NewBuildServiceBuilderClient ¶ added in v1.1.0
func (c *ClientFactory) NewBuildServiceBuilderClient() *BuildServiceBuilderClient
func (*ClientFactory) NewBuildServiceClient ¶ added in v1.1.0
func (c *ClientFactory) NewBuildServiceClient() *BuildServiceClient
func (*ClientFactory) NewBuildpackBindingClient ¶ added in v1.1.0
func (c *ClientFactory) NewBuildpackBindingClient() *BuildpackBindingClient
func (*ClientFactory) NewCertificatesClient ¶ added in v1.1.0
func (c *ClientFactory) NewCertificatesClient() *CertificatesClient
func (*ClientFactory) NewConfigServersClient ¶ added in v1.1.0
func (c *ClientFactory) NewConfigServersClient() *ConfigServersClient
func (*ClientFactory) NewConfigurationServicesClient ¶ added in v1.1.0
func (c *ClientFactory) NewConfigurationServicesClient() *ConfigurationServicesClient
func (*ClientFactory) NewCustomDomainsClient ¶ added in v1.1.0
func (c *ClientFactory) NewCustomDomainsClient() *CustomDomainsClient
func (*ClientFactory) NewCustomizedAcceleratorsClient ¶
func (c *ClientFactory) NewCustomizedAcceleratorsClient() *CustomizedAcceleratorsClient
func (*ClientFactory) NewDeploymentsClient ¶ added in v1.1.0
func (c *ClientFactory) NewDeploymentsClient() *DeploymentsClient
func (*ClientFactory) NewDevToolPortalsClient ¶
func (c *ClientFactory) NewDevToolPortalsClient() *DevToolPortalsClient
func (*ClientFactory) NewGatewayCustomDomainsClient ¶
func (c *ClientFactory) NewGatewayCustomDomainsClient() *GatewayCustomDomainsClient
func (*ClientFactory) NewGatewayRouteConfigsClient ¶
func (c *ClientFactory) NewGatewayRouteConfigsClient() *GatewayRouteConfigsClient
func (*ClientFactory) NewGatewaysClient ¶
func (c *ClientFactory) NewGatewaysClient() *GatewaysClient
func (*ClientFactory) NewMonitoringSettingsClient ¶ added in v1.1.0
func (c *ClientFactory) NewMonitoringSettingsClient() *MonitoringSettingsClient
func (*ClientFactory) NewOperationsClient ¶ added in v1.1.0
func (c *ClientFactory) NewOperationsClient() *OperationsClient
func (*ClientFactory) NewPredefinedAcceleratorsClient ¶
func (c *ClientFactory) NewPredefinedAcceleratorsClient() *PredefinedAcceleratorsClient
func (*ClientFactory) NewRuntimeVersionsClient ¶ added in v1.1.0
func (c *ClientFactory) NewRuntimeVersionsClient() *RuntimeVersionsClient
func (*ClientFactory) NewSKUsClient ¶ added in v1.1.0
func (c *ClientFactory) NewSKUsClient() *SKUsClient
func (*ClientFactory) NewServiceRegistriesClient ¶ added in v1.1.0
func (c *ClientFactory) NewServiceRegistriesClient() *ServiceRegistriesClient
func (*ClientFactory) NewServicesClient ¶ added in v1.1.0
func (c *ClientFactory) NewServicesClient() *ServicesClient
func (*ClientFactory) NewStoragesClient ¶
func (c *ClientFactory) NewStoragesClient() *StoragesClient
type ClusterResourceProperties ¶
type ClusterResourceProperties struct { // Purchasing 3rd party product of the Service resource. MarketplaceResource *MarketplaceResource `json:"marketplaceResource,omitempty"` // Network profile of the Service NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` // Additional Service settings in vnet injection instance VnetAddons *ServiceVNetAddons `json:"vnetAddons,omitempty"` ZoneRedundant *bool `json:"zoneRedundant,omitempty"` // READ-ONLY; Fully qualified dns name of the service instance Fqdn *string `json:"fqdn,omitempty" azure:"ro"` // READ-ONLY; Power state of the Service PowerState *PowerState `json:"powerState,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the Service ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; ServiceInstanceEntity GUID which uniquely identifies a created resource ServiceID *string `json:"serviceId,omitempty" azure:"ro"` // READ-ONLY; Version of the Service Version *int32 `json:"version,omitempty" azure:"ro"` }
ClusterResourceProperties - Service properties payload
func (ClusterResourceProperties) MarshalJSON ¶ added in v1.1.0
func (c ClusterResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClusterResourceProperties.
func (*ClusterResourceProperties) UnmarshalJSON ¶ added in v1.1.0
func (c *ClusterResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClusterResourceProperties.
type ConfigServerGitProperty ¶
type ConfigServerGitProperty struct { // REQUIRED; URI of the repository URI *string `json:"uri,omitempty"` // Public sshKey of git repository. HostKey *string `json:"hostKey,omitempty"` // SshKey algorithm of git repository. HostKeyAlgorithm *string `json:"hostKeyAlgorithm,omitempty"` // Label of the repository Label *string `json:"label,omitempty"` // Password of git repository basic auth. Password *string `json:"password,omitempty"` // Private sshKey algorithm of git repository. PrivateKey *string `json:"privateKey,omitempty"` // Repositories of git. Repositories []*GitPatternRepository `json:"repositories,omitempty"` // Searching path of the repository SearchPaths []*string `json:"searchPaths,omitempty"` // Strict host key checking or not. StrictHostKeyChecking *bool `json:"strictHostKeyChecking,omitempty"` // Username of git repository basic auth. Username *string `json:"username,omitempty"` }
ConfigServerGitProperty - Property of git.
func (ConfigServerGitProperty) MarshalJSON ¶
func (c ConfigServerGitProperty) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigServerGitProperty.
func (*ConfigServerGitProperty) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigServerGitProperty) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigServerGitProperty.
type ConfigServerProperties ¶
type ConfigServerProperties struct { // Settings of config server. ConfigServer *ConfigServerSettings `json:"configServer,omitempty"` // Error when apply config server settings. Error *Error `json:"error,omitempty"` // READ-ONLY; State of the config server. ProvisioningState *ConfigServerState `json:"provisioningState,omitempty" azure:"ro"` }
ConfigServerProperties - Config server git properties payload
func (ConfigServerProperties) MarshalJSON ¶ added in v1.1.0
func (c ConfigServerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigServerProperties.
func (*ConfigServerProperties) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigServerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigServerProperties.
type ConfigServerResource ¶
type ConfigServerResource struct { // Properties of the Config Server resource Properties *ConfigServerProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ConfigServerResource - Config Server resource
func (ConfigServerResource) MarshalJSON ¶
func (c ConfigServerResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigServerResource.
func (*ConfigServerResource) UnmarshalJSON ¶ added in v0.2.0
func (c *ConfigServerResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigServerResource.
type ConfigServerSettings ¶
type ConfigServerSettings struct { // Property of git environment. GitProperty *ConfigServerGitProperty `json:"gitProperty,omitempty"` }
ConfigServerSettings - The settings of config server.
func (ConfigServerSettings) MarshalJSON ¶ added in v1.1.0
func (c ConfigServerSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigServerSettings.
func (*ConfigServerSettings) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigServerSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigServerSettings.
type ConfigServerSettingsErrorRecord ¶
type ConfigServerSettingsErrorRecord struct { // The detail error messages of the record Messages []*string `json:"messages,omitempty"` // The name of the config server settings error record Name *string `json:"name,omitempty"` // The uri of the config server settings error record URI *string `json:"uri,omitempty"` }
ConfigServerSettingsErrorRecord - Error record of the config server settings
func (ConfigServerSettingsErrorRecord) MarshalJSON ¶
func (c ConfigServerSettingsErrorRecord) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigServerSettingsErrorRecord.
func (*ConfigServerSettingsErrorRecord) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigServerSettingsErrorRecord) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigServerSettingsErrorRecord.
type ConfigServerSettingsValidateResult ¶
type ConfigServerSettingsValidateResult struct { // The detail validation results Details []*ConfigServerSettingsErrorRecord `json:"details,omitempty"` // Indicate if the config server settings are valid IsValid *bool `json:"isValid,omitempty"` }
ConfigServerSettingsValidateResult - Validation result for config server settings
func (ConfigServerSettingsValidateResult) MarshalJSON ¶
func (c ConfigServerSettingsValidateResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigServerSettingsValidateResult.
func (*ConfigServerSettingsValidateResult) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigServerSettingsValidateResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigServerSettingsValidateResult.
type ConfigServerState ¶
type ConfigServerState string
ConfigServerState - State of the config server.
const ( ConfigServerStateDeleted ConfigServerState = "Deleted" ConfigServerStateFailed ConfigServerState = "Failed" ConfigServerStateNotAvailable ConfigServerState = "NotAvailable" ConfigServerStateSucceeded ConfigServerState = "Succeeded" ConfigServerStateUpdating ConfigServerState = "Updating" )
func PossibleConfigServerStateValues ¶
func PossibleConfigServerStateValues() []ConfigServerState
PossibleConfigServerStateValues returns the possible values for the ConfigServerState const type.
type ConfigServersClient ¶
type ConfigServersClient struct {
// contains filtered or unexported fields
}
ConfigServersClient contains the methods for the ConfigServers group. Don't use this type directly, use NewConfigServersClient() instead.
func NewConfigServersClient ¶
func NewConfigServersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConfigServersClient, error)
NewConfigServersClient creates a new instance of ConfigServersClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ConfigServersClient) BeginUpdatePatch ¶
func (client *ConfigServersClient) BeginUpdatePatch(ctx context.Context, resourceGroupName string, serviceName string, configServerResource ConfigServerResource, options *ConfigServersClientBeginUpdatePatchOptions) (*runtime.Poller[ConfigServersClientUpdatePatchResponse], error)
BeginUpdatePatch - Update the config server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- configServerResource - Parameters for the update operation
- options - ConfigServersClientBeginUpdatePatchOptions contains the optional parameters for the ConfigServersClient.BeginUpdatePatch method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ConfigServers_UpdatePatch.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewConfigServersClient().BeginUpdatePatch(ctx, "myResourceGroup", "myservice", armappplatform.ConfigServerResource{ Properties: &armappplatform.ConfigServerProperties{ ConfigServer: &armappplatform.ConfigServerSettings{ GitProperty: &armappplatform.ConfigServerGitProperty{ Label: to.Ptr("master"), SearchPaths: []*string{ to.Ptr("/")}, URI: to.Ptr("https://github.com/fake-user/fake-repository.git"), }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ConfigServerResource = armappplatform.ConfigServerResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/configServers"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configServers/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ConfigServerProperties{ // ConfigServer: &armappplatform.ConfigServerSettings{ // GitProperty: &armappplatform.ConfigServerGitProperty{ // Label: to.Ptr("master"), // SearchPaths: []*string{ // to.Ptr("/")}, // URI: to.Ptr("https://github.com/fake-user/fake-repository.git"), // }, // }, // ProvisioningState: to.Ptr(armappplatform.ConfigServerStateSucceeded), // }, // } }
Output:
func (*ConfigServersClient) BeginUpdatePut ¶
func (client *ConfigServersClient) BeginUpdatePut(ctx context.Context, resourceGroupName string, serviceName string, configServerResource ConfigServerResource, options *ConfigServersClientBeginUpdatePutOptions) (*runtime.Poller[ConfigServersClientUpdatePutResponse], error)
BeginUpdatePut - Update the config server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- configServerResource - Parameters for the update operation
- options - ConfigServersClientBeginUpdatePutOptions contains the optional parameters for the ConfigServersClient.BeginUpdatePut method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ConfigServers_UpdatePut.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewConfigServersClient().BeginUpdatePut(ctx, "myResourceGroup", "myservice", armappplatform.ConfigServerResource{ Properties: &armappplatform.ConfigServerProperties{ ConfigServer: &armappplatform.ConfigServerSettings{ GitProperty: &armappplatform.ConfigServerGitProperty{ Label: to.Ptr("master"), SearchPaths: []*string{ to.Ptr("/")}, URI: to.Ptr("https://github.com/fake-user/fake-repository.git"), }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ConfigServerResource = armappplatform.ConfigServerResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/configServers"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configServers/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ConfigServerProperties{ // ConfigServer: &armappplatform.ConfigServerSettings{ // GitProperty: &armappplatform.ConfigServerGitProperty{ // Label: to.Ptr("master"), // SearchPaths: []*string{ // to.Ptr("/")}, // URI: to.Ptr("https://github.com/fake-user/fake-repository.git"), // }, // }, // ProvisioningState: to.Ptr(armappplatform.ConfigServerStateSucceeded), // }, // } }
Output:
func (*ConfigServersClient) BeginValidate ¶
func (client *ConfigServersClient) BeginValidate(ctx context.Context, resourceGroupName string, serviceName string, configServerSettings ConfigServerSettings, options *ConfigServersClientBeginValidateOptions) (*runtime.Poller[ConfigServersClientValidateResponse], error)
BeginValidate - Check if the config server settings are valid. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- configServerSettings - Config server settings to be validated
- options - ConfigServersClientBeginValidateOptions contains the optional parameters for the ConfigServersClient.BeginValidate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ConfigServers_Validate.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewConfigServersClient().BeginValidate(ctx, "myResourceGroup", "myservice", armappplatform.ConfigServerSettings{ GitProperty: &armappplatform.ConfigServerGitProperty{ Label: to.Ptr("master"), SearchPaths: []*string{ to.Ptr("/")}, URI: to.Ptr("https://github.com/fake-user/fake-repository.git"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ConfigServerSettingsValidateResult = armappplatform.ConfigServerSettingsValidateResult{ // IsValid: to.Ptr(true), // } }
Output:
func (*ConfigServersClient) Get ¶
func (client *ConfigServersClient) Get(ctx context.Context, resourceGroupName string, serviceName string, options *ConfigServersClientGetOptions) (ConfigServersClientGetResponse, error)
Get - Get the config server and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ConfigServersClientGetOptions contains the optional parameters for the ConfigServersClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ConfigServers_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewConfigServersClient().Get(ctx, "myResourceGroup", "myservice", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ConfigServerResource = armappplatform.ConfigServerResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/configServers"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configServers/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ConfigServerProperties{ // ConfigServer: &armappplatform.ConfigServerSettings{ // GitProperty: &armappplatform.ConfigServerGitProperty{ // Label: to.Ptr("master"), // SearchPaths: []*string{ // to.Ptr("/")}, // URI: to.Ptr("https://github.com/fake-user/fake-repository.git"), // }, // }, // ProvisioningState: to.Ptr(armappplatform.ConfigServerStateSucceeded), // }, // } }
Output:
type ConfigServersClientBeginUpdatePatchOptions ¶ added in v0.3.0
type ConfigServersClientBeginUpdatePatchOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigServersClientBeginUpdatePatchOptions contains the optional parameters for the ConfigServersClient.BeginUpdatePatch method.
type ConfigServersClientBeginUpdatePutOptions ¶ added in v0.3.0
type ConfigServersClientBeginUpdatePutOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigServersClientBeginUpdatePutOptions contains the optional parameters for the ConfigServersClient.BeginUpdatePut method.
type ConfigServersClientBeginValidateOptions ¶ added in v0.3.0
type ConfigServersClientBeginValidateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigServersClientBeginValidateOptions contains the optional parameters for the ConfigServersClient.BeginValidate method.
type ConfigServersClientGetOptions ¶ added in v0.3.0
type ConfigServersClientGetOptions struct { }
ConfigServersClientGetOptions contains the optional parameters for the ConfigServersClient.Get method.
type ConfigServersClientGetResponse ¶ added in v0.3.0
type ConfigServersClientGetResponse struct {
ConfigServerResource
}
ConfigServersClientGetResponse contains the response from method ConfigServersClient.Get.
type ConfigServersClientUpdatePatchResponse ¶ added in v0.3.0
type ConfigServersClientUpdatePatchResponse struct {
ConfigServerResource
}
ConfigServersClientUpdatePatchResponse contains the response from method ConfigServersClient.BeginUpdatePatch.
type ConfigServersClientUpdatePutResponse ¶ added in v0.3.0
type ConfigServersClientUpdatePutResponse struct {
ConfigServerResource
}
ConfigServersClientUpdatePutResponse contains the response from method ConfigServersClient.BeginUpdatePut.
type ConfigServersClientValidateResponse ¶ added in v0.3.0
type ConfigServersClientValidateResponse struct {
ConfigServerSettingsValidateResult
}
ConfigServersClientValidateResponse contains the response from method ConfigServersClient.BeginValidate.
type ConfigurationServiceGitProperty ¶ added in v0.3.0
type ConfigurationServiceGitProperty struct { // Repositories of Application Configuration Service git property. Repositories []*ConfigurationServiceGitRepository `json:"repositories,omitempty"` }
ConfigurationServiceGitProperty - Property of git environment.
func (ConfigurationServiceGitProperty) MarshalJSON ¶ added in v0.3.0
func (c ConfigurationServiceGitProperty) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceGitProperty.
func (*ConfigurationServiceGitProperty) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigurationServiceGitProperty) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationServiceGitProperty.
type ConfigurationServiceGitPropertyValidateResult ¶ added in v0.3.0
type ConfigurationServiceGitPropertyValidateResult struct { // The detail validation results GitReposValidationResult []*ValidationMessages `json:"gitReposValidationResult,omitempty"` // Indicate if the configuration service settings are valid IsValid *bool `json:"isValid,omitempty"` }
ConfigurationServiceGitPropertyValidateResult - Validation result for configuration service settings
func (ConfigurationServiceGitPropertyValidateResult) MarshalJSON ¶ added in v0.3.0
func (c ConfigurationServiceGitPropertyValidateResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceGitPropertyValidateResult.
func (*ConfigurationServiceGitPropertyValidateResult) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigurationServiceGitPropertyValidateResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationServiceGitPropertyValidateResult.
type ConfigurationServiceGitRepository ¶ added in v0.3.0
type ConfigurationServiceGitRepository struct { // REQUIRED; Label of the repository Label *string `json:"label,omitempty"` // REQUIRED; Name of the repository Name *string `json:"name,omitempty"` // REQUIRED; Collection of patterns of the repository Patterns []*string `json:"patterns,omitempty"` // REQUIRED; URI of the repository URI *string `json:"uri,omitempty"` // Public sshKey of git repository. HostKey *string `json:"hostKey,omitempty"` // SshKey algorithm of git repository. HostKeyAlgorithm *string `json:"hostKeyAlgorithm,omitempty"` // Password of git repository basic auth. Password *string `json:"password,omitempty"` // Private sshKey algorithm of git repository. PrivateKey *string `json:"privateKey,omitempty"` // Searching path of the repository SearchPaths []*string `json:"searchPaths,omitempty"` // Strict host key checking or not. StrictHostKeyChecking *bool `json:"strictHostKeyChecking,omitempty"` // Username of git repository basic auth. Username *string `json:"username,omitempty"` }
ConfigurationServiceGitRepository - Git repository property payload for Application Configuration Service
func (ConfigurationServiceGitRepository) MarshalJSON ¶ added in v0.3.0
func (c ConfigurationServiceGitRepository) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceGitRepository.
func (*ConfigurationServiceGitRepository) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigurationServiceGitRepository) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationServiceGitRepository.
type ConfigurationServiceInstance ¶ added in v0.3.0
type ConfigurationServiceInstance struct { // READ-ONLY; Name of the Application Configuration Service instance Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the Application Configuration Service instance Status *string `json:"status,omitempty" azure:"ro"` }
ConfigurationServiceInstance - Collection of instances belong to the Application Configuration Service
func (ConfigurationServiceInstance) MarshalJSON ¶ added in v1.1.0
func (c ConfigurationServiceInstance) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceInstance.
func (*ConfigurationServiceInstance) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigurationServiceInstance) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationServiceInstance.
type ConfigurationServiceProperties ¶ added in v0.3.0
type ConfigurationServiceProperties struct { // The settings of Application Configuration Service. Settings *ConfigurationServiceSettings `json:"settings,omitempty"` // READ-ONLY; Collection of instances belong to Application Configuration Service. Instances []*ConfigurationServiceInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; State of the Application Configuration Service. ProvisioningState *ConfigurationServiceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The requested resource quantity for required CPU and Memory. ResourceRequests *ConfigurationServiceResourceRequests `json:"resourceRequests,omitempty" azure:"ro"` }
ConfigurationServiceProperties - Application Configuration Service properties payload
func (ConfigurationServiceProperties) MarshalJSON ¶ added in v0.3.0
func (c ConfigurationServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceProperties.
func (*ConfigurationServiceProperties) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigurationServiceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationServiceProperties.
type ConfigurationServiceProvisioningState ¶ added in v0.3.0
type ConfigurationServiceProvisioningState string
ConfigurationServiceProvisioningState - State of the Application Configuration Service.
const ( ConfigurationServiceProvisioningStateCreating ConfigurationServiceProvisioningState = "Creating" ConfigurationServiceProvisioningStateDeleting ConfigurationServiceProvisioningState = "Deleting" ConfigurationServiceProvisioningStateFailed ConfigurationServiceProvisioningState = "Failed" ConfigurationServiceProvisioningStateSucceeded ConfigurationServiceProvisioningState = "Succeeded" ConfigurationServiceProvisioningStateUpdating ConfigurationServiceProvisioningState = "Updating" )
func PossibleConfigurationServiceProvisioningStateValues ¶ added in v0.3.0
func PossibleConfigurationServiceProvisioningStateValues() []ConfigurationServiceProvisioningState
PossibleConfigurationServiceProvisioningStateValues returns the possible values for the ConfigurationServiceProvisioningState const type.
type ConfigurationServiceResource ¶ added in v0.3.0
type ConfigurationServiceResource struct { // Application Configuration Service properties payload Properties *ConfigurationServiceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ConfigurationServiceResource - Application Configuration Service resource
func (ConfigurationServiceResource) MarshalJSON ¶ added in v1.1.0
func (c ConfigurationServiceResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceResource.
func (*ConfigurationServiceResource) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigurationServiceResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationServiceResource.
type ConfigurationServiceResourceCollection ¶ added in v0.3.0
type ConfigurationServiceResourceCollection 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 configuration service resources Value []*ConfigurationServiceResource `json:"value,omitempty"` }
ConfigurationServiceResourceCollection - Object that includes an array of configuration service resources and a possible link for next set
func (ConfigurationServiceResourceCollection) MarshalJSON ¶ added in v0.3.0
func (c ConfigurationServiceResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceResourceCollection.
func (*ConfigurationServiceResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigurationServiceResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationServiceResourceCollection.
type ConfigurationServiceResourceRequests ¶ added in v0.3.0
type ConfigurationServiceResourceRequests struct { // READ-ONLY; Cpu allocated to each Application Configuration Service instance CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Instance count of the Application Configuration Service InstanceCount *int32 `json:"instanceCount,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to each Application Configuration Service instance Memory *string `json:"memory,omitempty" azure:"ro"` }
ConfigurationServiceResourceRequests - Resource request payload of Application Configuration Service
func (ConfigurationServiceResourceRequests) MarshalJSON ¶ added in v1.1.0
func (c ConfigurationServiceResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceResourceRequests.
func (*ConfigurationServiceResourceRequests) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigurationServiceResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationServiceResourceRequests.
type ConfigurationServiceSettings ¶ added in v0.3.0
type ConfigurationServiceSettings struct { // Property of git environment. GitProperty *ConfigurationServiceGitProperty `json:"gitProperty,omitempty"` }
ConfigurationServiceSettings - The settings of Application Configuration Service.
func (ConfigurationServiceSettings) MarshalJSON ¶ added in v1.1.0
func (c ConfigurationServiceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceSettings.
func (*ConfigurationServiceSettings) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigurationServiceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationServiceSettings.
type ConfigurationServiceSettingsValidateResult ¶ added in v0.3.0
type ConfigurationServiceSettingsValidateResult struct { // Validation result for configuration service settings GitPropertyValidationResult *ConfigurationServiceGitPropertyValidateResult `json:"gitPropertyValidationResult,omitempty"` }
ConfigurationServiceSettingsValidateResult - Validation result for configuration service settings
func (ConfigurationServiceSettingsValidateResult) MarshalJSON ¶ added in v1.1.0
func (c ConfigurationServiceSettingsValidateResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceSettingsValidateResult.
func (*ConfigurationServiceSettingsValidateResult) UnmarshalJSON ¶ added in v1.1.0
func (c *ConfigurationServiceSettingsValidateResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationServiceSettingsValidateResult.
type ConfigurationServicesClient ¶ added in v0.3.0
type ConfigurationServicesClient struct {
// contains filtered or unexported fields
}
ConfigurationServicesClient contains the methods for the ConfigurationServices group. Don't use this type directly, use NewConfigurationServicesClient() instead.
func NewConfigurationServicesClient ¶ added in v0.3.0
func NewConfigurationServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConfigurationServicesClient, error)
NewConfigurationServicesClient creates a new instance of ConfigurationServicesClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ConfigurationServicesClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *ConfigurationServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, configurationServiceName string, configurationServiceResource ConfigurationServiceResource, options *ConfigurationServicesClientBeginCreateOrUpdateOptions) (*runtime.Poller[ConfigurationServicesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create the default Application Configuration Service or update the existing Application Configuration Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- configurationServiceName - The name of Application Configuration Service.
- configurationServiceResource - Parameters for the update operation
- options - ConfigurationServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the ConfigurationServicesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ConfigurationServices_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewConfigurationServicesClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", armappplatform.ConfigurationServiceResource{ Properties: &armappplatform.ConfigurationServiceProperties{ Settings: &armappplatform.ConfigurationServiceSettings{ GitProperty: &armappplatform.ConfigurationServiceGitProperty{ Repositories: []*armappplatform.ConfigurationServiceGitRepository{ { Name: to.Ptr("fake"), Label: to.Ptr("master"), Patterns: []*string{ to.Ptr("app/dev")}, URI: to.Ptr("https://github.com/fake-user/fake-repository"), }}, }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ConfigurationServiceResource = armappplatform.ConfigurationServiceResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/configurationServices"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ConfigurationServiceProperties{ // Instances: []*armappplatform.ConfigurationServiceInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.ConfigurationServiceProvisioningStateSucceeded), // ResourceRequests: &armappplatform.ConfigurationServiceResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](2), // Memory: to.Ptr("1G"), // }, // Settings: &armappplatform.ConfigurationServiceSettings{ // GitProperty: &armappplatform.ConfigurationServiceGitProperty{ // Repositories: []*armappplatform.ConfigurationServiceGitRepository{ // { // Name: to.Ptr("fake"), // Label: to.Ptr("master"), // Patterns: []*string{ // to.Ptr("app/dev")}, // URI: to.Ptr("https://github.com/fake-user/fake-repository"), // }}, // }, // }, // }, // } }
Output:
func (*ConfigurationServicesClient) BeginDelete ¶ added in v0.3.0
func (client *ConfigurationServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, configurationServiceName string, options *ConfigurationServicesClientBeginDeleteOptions) (*runtime.Poller[ConfigurationServicesClientDeleteResponse], error)
BeginDelete - Disable the default Application Configuration Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- configurationServiceName - The name of Application Configuration Service.
- options - ConfigurationServicesClientBeginDeleteOptions contains the optional parameters for the ConfigurationServicesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ConfigurationServices_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewConfigurationServicesClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ConfigurationServicesClient) BeginValidate ¶ added in v0.3.0
func (client *ConfigurationServicesClient) BeginValidate(ctx context.Context, resourceGroupName string, serviceName string, configurationServiceName string, settings ConfigurationServiceSettings, options *ConfigurationServicesClientBeginValidateOptions) (*runtime.Poller[ConfigurationServicesClientValidateResponse], error)
BeginValidate - Check if the Application Configuration Service settings are valid. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- configurationServiceName - The name of Application Configuration Service.
- settings - Application Configuration Service settings to be validated
- options - ConfigurationServicesClientBeginValidateOptions contains the optional parameters for the ConfigurationServicesClient.BeginValidate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ConfigurationServices_Validate.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewConfigurationServicesClient().BeginValidate(ctx, "myResourceGroup", "myservice", "default", armappplatform.ConfigurationServiceSettings{ GitProperty: &armappplatform.ConfigurationServiceGitProperty{ Repositories: []*armappplatform.ConfigurationServiceGitRepository{ { Name: to.Ptr("fake"), Label: to.Ptr("master"), Patterns: []*string{ to.Ptr("app/dev")}, URI: to.Ptr("https://github.com/fake-user/fake-repository"), }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ConfigurationServiceSettingsValidateResult = armappplatform.ConfigurationServiceSettingsValidateResult{ // GitPropertyValidationResult: &armappplatform.ConfigurationServiceGitPropertyValidateResult{ // IsValid: to.Ptr(true), // }, // } }
Output:
func (*ConfigurationServicesClient) Get ¶ added in v0.3.0
func (client *ConfigurationServicesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, configurationServiceName string, options *ConfigurationServicesClientGetOptions) (ConfigurationServicesClientGetResponse, error)
Get - Get the Application Configuration Service and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- configurationServiceName - The name of Application Configuration Service.
- options - ConfigurationServicesClientGetOptions contains the optional parameters for the ConfigurationServicesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ConfigurationServices_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewConfigurationServicesClient().Get(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ConfigurationServiceResource = armappplatform.ConfigurationServiceResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/configurationServices"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ConfigurationServiceProperties{ // Instances: []*armappplatform.ConfigurationServiceInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.ConfigurationServiceProvisioningStateSucceeded), // ResourceRequests: &armappplatform.ConfigurationServiceResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](2), // Memory: to.Ptr("1G"), // }, // Settings: &armappplatform.ConfigurationServiceSettings{ // GitProperty: &armappplatform.ConfigurationServiceGitProperty{ // Repositories: []*armappplatform.ConfigurationServiceGitRepository{ // { // Name: to.Ptr("fake"), // Label: to.Ptr("master"), // Patterns: []*string{ // to.Ptr("app1"), // to.Ptr("app2/dev")}, // URI: to.Ptr("https://github.com/fake-user/fake-repository.git"), // }}, // }, // }, // }, // } }
Output:
func (*ConfigurationServicesClient) NewListPager ¶ added in v0.5.0
func (client *ConfigurationServicesClient) NewListPager(resourceGroupName string, serviceName string, options *ConfigurationServicesClientListOptions) *runtime.Pager[ConfigurationServicesClientListResponse]
NewListPager - Handles requests to list all resources in a Service.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ConfigurationServicesClientListOptions contains the optional parameters for the ConfigurationServicesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ConfigurationServices_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewConfigurationServicesClient().NewListPager("myResourceGroup", "myservice", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ConfigurationServiceResourceCollection = armappplatform.ConfigurationServiceResourceCollection{ // Value: []*armappplatform.ConfigurationServiceResource{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/configurationServices"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ConfigurationServiceProperties{ // Instances: []*armappplatform.ConfigurationServiceInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.ConfigurationServiceProvisioningStateSucceeded), // ResourceRequests: &armappplatform.ConfigurationServiceResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](2), // Memory: to.Ptr("1G"), // }, // Settings: &armappplatform.ConfigurationServiceSettings{ // GitProperty: &armappplatform.ConfigurationServiceGitProperty{ // Repositories: []*armappplatform.ConfigurationServiceGitRepository{ // { // Name: to.Ptr("fake"), // Label: to.Ptr("master"), // Patterns: []*string{ // to.Ptr("app1"), // to.Ptr("app2/dev")}, // URI: to.Ptr("https://github.com/fake-user/fake-repository.git"), // }}, // }, // }, // }, // }}, // } } }
Output:
type ConfigurationServicesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ConfigurationServicesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the ConfigurationServicesClient.BeginCreateOrUpdate method.
type ConfigurationServicesClientBeginDeleteOptions ¶ added in v0.3.0
type ConfigurationServicesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationServicesClientBeginDeleteOptions contains the optional parameters for the ConfigurationServicesClient.BeginDelete method.
type ConfigurationServicesClientBeginValidateOptions ¶ added in v0.3.0
type ConfigurationServicesClientBeginValidateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationServicesClientBeginValidateOptions contains the optional parameters for the ConfigurationServicesClient.BeginValidate method.
type ConfigurationServicesClientCreateOrUpdateResponse ¶ added in v0.3.0
type ConfigurationServicesClientCreateOrUpdateResponse struct {
ConfigurationServiceResource
}
ConfigurationServicesClientCreateOrUpdateResponse contains the response from method ConfigurationServicesClient.BeginCreateOrUpdate.
type ConfigurationServicesClientDeleteResponse ¶ added in v0.3.0
type ConfigurationServicesClientDeleteResponse struct { }
ConfigurationServicesClientDeleteResponse contains the response from method ConfigurationServicesClient.BeginDelete.
type ConfigurationServicesClientGetOptions ¶ added in v0.3.0
type ConfigurationServicesClientGetOptions struct { }
ConfigurationServicesClientGetOptions contains the optional parameters for the ConfigurationServicesClient.Get method.
type ConfigurationServicesClientGetResponse ¶ added in v0.3.0
type ConfigurationServicesClientGetResponse struct {
ConfigurationServiceResource
}
ConfigurationServicesClientGetResponse contains the response from method ConfigurationServicesClient.Get.
type ConfigurationServicesClientListOptions ¶ added in v0.3.0
type ConfigurationServicesClientListOptions struct { }
ConfigurationServicesClientListOptions contains the optional parameters for the ConfigurationServicesClient.NewListPager method.
type ConfigurationServicesClientListResponse ¶ added in v0.3.0
type ConfigurationServicesClientListResponse struct {
ConfigurationServiceResourceCollection
}
ConfigurationServicesClientListResponse contains the response from method ConfigurationServicesClient.NewListPager.
type ConfigurationServicesClientValidateResponse ¶ added in v0.3.0
type ConfigurationServicesClientValidateResponse struct {
ConfigurationServiceSettingsValidateResult
}
ConfigurationServicesClientValidateResponse contains the response from method ConfigurationServicesClient.BeginValidate.
type ContainerProbeSettings ¶ added in v0.3.0
type ContainerProbeSettings struct { // Indicates whether disable the liveness and readiness probe DisableProbe *bool `json:"disableProbe,omitempty"` }
ContainerProbeSettings - Container liveness and readiness probe settings
func (ContainerProbeSettings) MarshalJSON ¶
func (c ContainerProbeSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerProbeSettings.
func (*ContainerProbeSettings) UnmarshalJSON ¶
func (c *ContainerProbeSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerProbeSettings.
type ContentCertificateProperties ¶ added in v0.2.0
type ContentCertificateProperties struct { // REQUIRED; The type of the certificate source. Type *string `json:"type,omitempty"` // The content of uploaded certificate. Content *string `json:"content,omitempty"` // READ-ONLY; The activate date of certificate. ActivateDate *string `json:"activateDate,omitempty" azure:"ro"` // READ-ONLY; The domain list of certificate. DNSNames []*string `json:"dnsNames,omitempty" azure:"ro"` // READ-ONLY; The expiration date of certificate. ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` // READ-ONLY; The issue date of certificate. IssuedDate *string `json:"issuedDate,omitempty" azure:"ro"` // READ-ONLY; The issuer of certificate. Issuer *string `json:"issuer,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the Certificate ProvisioningState *CertificateResourceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The subject name of certificate. SubjectName *string `json:"subjectName,omitempty" azure:"ro"` // READ-ONLY; The thumbprint of certificate. Thumbprint *string `json:"thumbprint,omitempty" azure:"ro"` }
ContentCertificateProperties - Properties of certificate imported from key vault.
func (*ContentCertificateProperties) GetCertificateProperties ¶ added in v0.3.0
func (c *ContentCertificateProperties) GetCertificateProperties() *CertificateProperties
GetCertificateProperties implements the CertificatePropertiesClassification interface for type ContentCertificateProperties.
func (ContentCertificateProperties) MarshalJSON ¶ added in v0.2.0
func (c ContentCertificateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContentCertificateProperties.
func (*ContentCertificateProperties) UnmarshalJSON ¶ added in v0.2.0
func (c *ContentCertificateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContentCertificateProperties.
type CreatedByType ¶ added in v0.2.0
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 ¶ added in v0.2.0
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type CustomContainer ¶
type CustomContainer struct { // Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Args []*string `json:"args,omitempty"` // Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Command []*string `json:"command,omitempty"` // Container image of the custom container. This should be in the form of : without the server name of the registry ContainerImage *string `json:"containerImage,omitempty"` // Credential of the image registry ImageRegistryCredential *ImageRegistryCredential `json:"imageRegistryCredential,omitempty"` // Language framework of the container image uploaded LanguageFramework *string `json:"languageFramework,omitempty"` // The name of the registry that contains the container image Server *string `json:"server,omitempty"` }
CustomContainer - Custom container payload
func (CustomContainer) MarshalJSON ¶
func (c CustomContainer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomContainer.
func (*CustomContainer) UnmarshalJSON ¶
func (c *CustomContainer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomContainer.
type CustomContainerUserSourceInfo ¶ added in v0.3.0
type CustomContainerUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // Custom container payload CustomContainer *CustomContainer `json:"customContainer,omitempty"` // Version of the source Version *string `json:"version,omitempty"` }
CustomContainerUserSourceInfo - Custom container user source info
func (*CustomContainerUserSourceInfo) GetUserSourceInfo ¶ added in v0.3.0
func (c *CustomContainerUserSourceInfo) GetUserSourceInfo() *UserSourceInfo
GetUserSourceInfo implements the UserSourceInfoClassification interface for type CustomContainerUserSourceInfo.
func (CustomContainerUserSourceInfo) MarshalJSON ¶ added in v0.3.0
func (c CustomContainerUserSourceInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomContainerUserSourceInfo.
func (*CustomContainerUserSourceInfo) UnmarshalJSON ¶ added in v0.3.0
func (c *CustomContainerUserSourceInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomContainerUserSourceInfo.
type CustomDomainProperties ¶
type CustomDomainProperties struct { // The bound certificate name of domain. CertName *string `json:"certName,omitempty"` // The thumbprint of bound certificate. Thumbprint *string `json:"thumbprint,omitempty"` // READ-ONLY; The app name of domain. AppName *string `json:"appName,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the Domain ProvisioningState *CustomDomainResourceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
CustomDomainProperties - Custom domain of app resource payload.
func (CustomDomainProperties) MarshalJSON ¶ added in v1.1.0
func (c CustomDomainProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomDomainProperties.
func (*CustomDomainProperties) UnmarshalJSON ¶ added in v1.1.0
func (c *CustomDomainProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomDomainProperties.
type CustomDomainResource ¶
type CustomDomainResource struct { // Properties of the custom domain resource. Properties *CustomDomainProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
CustomDomainResource - Custom domain resource payload.
func (CustomDomainResource) MarshalJSON ¶
func (c CustomDomainResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomDomainResource.
func (*CustomDomainResource) UnmarshalJSON ¶ added in v0.2.0
func (c *CustomDomainResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomDomainResource.
type CustomDomainResourceCollection ¶
type CustomDomainResourceCollection struct { // The link to next page of custom domain list. NextLink *string `json:"nextLink,omitempty"` // The custom domain resources list. Value []*CustomDomainResource `json:"value,omitempty"` }
CustomDomainResourceCollection - Collection compose of a custom domain resources list and a possible link for next page.
func (CustomDomainResourceCollection) MarshalJSON ¶
func (c CustomDomainResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomDomainResourceCollection.
func (*CustomDomainResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (c *CustomDomainResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomDomainResourceCollection.
type CustomDomainResourceProvisioningState ¶
type CustomDomainResourceProvisioningState string
CustomDomainResourceProvisioningState - Provisioning state of the Domain
const ( CustomDomainResourceProvisioningStateCreating CustomDomainResourceProvisioningState = "Creating" CustomDomainResourceProvisioningStateDeleting CustomDomainResourceProvisioningState = "Deleting" CustomDomainResourceProvisioningStateFailed CustomDomainResourceProvisioningState = "Failed" CustomDomainResourceProvisioningStateSucceeded CustomDomainResourceProvisioningState = "Succeeded" CustomDomainResourceProvisioningStateUpdating CustomDomainResourceProvisioningState = "Updating" )
func PossibleCustomDomainResourceProvisioningStateValues ¶
func PossibleCustomDomainResourceProvisioningStateValues() []CustomDomainResourceProvisioningState
PossibleCustomDomainResourceProvisioningStateValues returns the possible values for the CustomDomainResourceProvisioningState const type.
type CustomDomainValidatePayload ¶
type CustomDomainValidatePayload struct { // REQUIRED; Name to be validated Name *string `json:"name,omitempty"` }
CustomDomainValidatePayload - Custom domain validate payload.
func (CustomDomainValidatePayload) MarshalJSON ¶ added in v1.1.0
func (c CustomDomainValidatePayload) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomDomainValidatePayload.
func (*CustomDomainValidatePayload) UnmarshalJSON ¶ added in v1.1.0
func (c *CustomDomainValidatePayload) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomDomainValidatePayload.
type CustomDomainValidateResult ¶
type CustomDomainValidateResult struct { // Indicates if domain name is valid. IsValid *bool `json:"isValid,omitempty"` // Message of why domain name is invalid. Message *string `json:"message,omitempty"` }
CustomDomainValidateResult - Validation result for custom domain.
func (CustomDomainValidateResult) MarshalJSON ¶ added in v1.1.0
func (c CustomDomainValidateResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomDomainValidateResult.
func (*CustomDomainValidateResult) UnmarshalJSON ¶ added in v1.1.0
func (c *CustomDomainValidateResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomDomainValidateResult.
type CustomDomainsClient ¶
type CustomDomainsClient struct {
// contains filtered or unexported fields
}
CustomDomainsClient contains the methods for the CustomDomains group. Don't use this type directly, use NewCustomDomainsClient() instead.
func NewCustomDomainsClient ¶
func NewCustomDomainsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CustomDomainsClient, error)
NewCustomDomainsClient creates a new instance of CustomDomainsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*CustomDomainsClient) BeginCreateOrUpdate ¶
func (client *CustomDomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, domainName string, domainResource CustomDomainResource, options *CustomDomainsClientBeginCreateOrUpdateOptions) (*runtime.Poller[CustomDomainsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update custom domain of one lifecycle application. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- domainName - The name of the custom domain resource.
- domainResource - Parameters for the create or update operation
- options - CustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the CustomDomainsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/CustomDomains_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewCustomDomainsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "myapp", "mydomain.com", armappplatform.CustomDomainResource{ Properties: &armappplatform.CustomDomainProperties{ CertName: to.Ptr("mycert"), Thumbprint: to.Ptr("934367bf1c97033f877db0f15cb1b586957d3133"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CustomDomainResource = armappplatform.CustomDomainResource{ // Name: to.Ptr("mydomain.com"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/domains"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/domains/mydomain.com"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.CustomDomainProperties{ // AppName: to.Ptr("myapp"), // CertName: to.Ptr("mycert"), // Thumbprint: to.Ptr("934367bf1c97033f877db0f15cb1b586957d3133"), // }, // } }
Output:
func (*CustomDomainsClient) BeginDelete ¶
func (client *CustomDomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, appName string, domainName string, options *CustomDomainsClientBeginDeleteOptions) (*runtime.Poller[CustomDomainsClientDeleteResponse], error)
BeginDelete - Delete the custom domain of one lifecycle application. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- domainName - The name of the custom domain resource.
- options - CustomDomainsClientBeginDeleteOptions contains the optional parameters for the CustomDomainsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/CustomDomains_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewCustomDomainsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "myapp", "mydomain.com", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*CustomDomainsClient) BeginUpdate ¶
func (client *CustomDomainsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, domainName string, domainResource CustomDomainResource, options *CustomDomainsClientBeginUpdateOptions) (*runtime.Poller[CustomDomainsClientUpdateResponse], error)
BeginUpdate - Update custom domain of one lifecycle application. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- domainName - The name of the custom domain resource.
- domainResource - Parameters for the create or update operation
- options - CustomDomainsClientBeginUpdateOptions contains the optional parameters for the CustomDomainsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/CustomDomains_Update.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewCustomDomainsClient().BeginUpdate(ctx, "myResourceGroup", "myservice", "myapp", "mydomain.com", armappplatform.CustomDomainResource{ Properties: &armappplatform.CustomDomainProperties{ CertName: to.Ptr("mycert"), Thumbprint: to.Ptr("934367bf1c97033f877db0f15cb1b586957d3133"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CustomDomainResource = armappplatform.CustomDomainResource{ // Name: to.Ptr("mydomain.com"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/domains"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/domains/mydomain.com"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.CustomDomainProperties{ // AppName: to.Ptr("myapp"), // CertName: to.Ptr("mycert"), // Thumbprint: to.Ptr("934367bf1c97033f877db0f15cb1b586957d3133"), // }, // } }
Output:
func (*CustomDomainsClient) Get ¶
func (client *CustomDomainsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, appName string, domainName string, options *CustomDomainsClientGetOptions) (CustomDomainsClientGetResponse, error)
Get - Get the custom domain of one lifecycle application. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- domainName - The name of the custom domain resource.
- options - CustomDomainsClientGetOptions contains the optional parameters for the CustomDomainsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/CustomDomains_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewCustomDomainsClient().Get(ctx, "myResourceGroup", "myservice", "myapp", "mydomain.com", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CustomDomainResource = armappplatform.CustomDomainResource{ // Name: to.Ptr("mydomain.com"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/domains"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/domains/mydomain.com"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.CustomDomainProperties{ // AppName: to.Ptr("myapp"), // CertName: to.Ptr("mycert"), // ProvisioningState: to.Ptr(armappplatform.CustomDomainResourceProvisioningStateSucceeded), // Thumbprint: to.Ptr("934367bf1c97033f877db0f15cb1b586957d3133"), // }, // } }
Output:
func (*CustomDomainsClient) NewListPager ¶ added in v0.5.0
func (client *CustomDomainsClient) NewListPager(resourceGroupName string, serviceName string, appName string, options *CustomDomainsClientListOptions) *runtime.Pager[CustomDomainsClientListResponse]
NewListPager - List the custom domains of one lifecycle application.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- options - CustomDomainsClientListOptions contains the optional parameters for the CustomDomainsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/CustomDomains_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewCustomDomainsClient().NewListPager("myResourceGroup", "myservice", "myapp", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.CustomDomainResourceCollection = armappplatform.CustomDomainResourceCollection{ // Value: []*armappplatform.CustomDomainResource{ // { // Name: to.Ptr("mydomain.com"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/domains"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/domains/mydomain.com"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.CustomDomainProperties{ // AppName: to.Ptr("myapp"), // CertName: to.Ptr("mycert"), // ProvisioningState: to.Ptr(armappplatform.CustomDomainResourceProvisioningStateSucceeded), // Thumbprint: to.Ptr("934367bf1c97033f877db0f15cb1b586957d3133"), // }, // }}, // } } }
Output:
type CustomDomainsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type CustomDomainsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the CustomDomainsClient.BeginCreateOrUpdate method.
type CustomDomainsClientBeginDeleteOptions ¶ added in v0.3.0
type CustomDomainsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CustomDomainsClientBeginDeleteOptions contains the optional parameters for the CustomDomainsClient.BeginDelete method.
type CustomDomainsClientBeginUpdateOptions ¶ added in v0.3.0
type CustomDomainsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CustomDomainsClientBeginUpdateOptions contains the optional parameters for the CustomDomainsClient.BeginUpdate method.
type CustomDomainsClientCreateOrUpdateResponse ¶ added in v0.3.0
type CustomDomainsClientCreateOrUpdateResponse struct {
CustomDomainResource
}
CustomDomainsClientCreateOrUpdateResponse contains the response from method CustomDomainsClient.BeginCreateOrUpdate.
type CustomDomainsClientDeleteResponse ¶ added in v0.3.0
type CustomDomainsClientDeleteResponse struct { }
CustomDomainsClientDeleteResponse contains the response from method CustomDomainsClient.BeginDelete.
type CustomDomainsClientGetOptions ¶ added in v0.3.0
type CustomDomainsClientGetOptions struct { }
CustomDomainsClientGetOptions contains the optional parameters for the CustomDomainsClient.Get method.
type CustomDomainsClientGetResponse ¶ added in v0.3.0
type CustomDomainsClientGetResponse struct {
CustomDomainResource
}
CustomDomainsClientGetResponse contains the response from method CustomDomainsClient.Get.
type CustomDomainsClientListOptions ¶ added in v0.3.0
type CustomDomainsClientListOptions struct { }
CustomDomainsClientListOptions contains the optional parameters for the CustomDomainsClient.NewListPager method.
type CustomDomainsClientListResponse ¶ added in v0.3.0
type CustomDomainsClientListResponse struct {
CustomDomainResourceCollection
}
CustomDomainsClientListResponse contains the response from method CustomDomainsClient.NewListPager.
type CustomDomainsClientUpdateResponse ¶ added in v0.3.0
type CustomDomainsClientUpdateResponse struct {
CustomDomainResource
}
CustomDomainsClientUpdateResponse contains the response from method CustomDomainsClient.BeginUpdate.
type CustomPersistentDiskProperties ¶ added in v0.2.0
type CustomPersistentDiskProperties struct { // REQUIRED; The mount path of the persistent disk. MountPath *string `json:"mountPath,omitempty"` // REQUIRED; The type of the underlying resource to mount as a persistent disk. Type *Type `json:"type,omitempty"` // These are the mount options for a persistent disk. MountOptions []*string `json:"mountOptions,omitempty"` // Indicates whether the persistent disk is a readOnly one. ReadOnly *bool `json:"readOnly,omitempty"` }
CustomPersistentDiskProperties - Custom persistent disk resource payload.
func (*CustomPersistentDiskProperties) GetCustomPersistentDiskProperties ¶ added in v0.2.0
func (c *CustomPersistentDiskProperties) GetCustomPersistentDiskProperties() *CustomPersistentDiskProperties
GetCustomPersistentDiskProperties implements the CustomPersistentDiskPropertiesClassification interface for type CustomPersistentDiskProperties.
func (CustomPersistentDiskProperties) MarshalJSON ¶ added in v0.3.0
func (c CustomPersistentDiskProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomPersistentDiskProperties.
func (*CustomPersistentDiskProperties) UnmarshalJSON ¶ added in v0.2.0
func (c *CustomPersistentDiskProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomPersistentDiskProperties.
type CustomPersistentDiskPropertiesClassification ¶ added in v0.2.0
type CustomPersistentDiskPropertiesClassification interface { // GetCustomPersistentDiskProperties returns the CustomPersistentDiskProperties content of the underlying type. GetCustomPersistentDiskProperties() *CustomPersistentDiskProperties }
CustomPersistentDiskPropertiesClassification provides polymorphic access to related types. Call the interface's GetCustomPersistentDiskProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureFileVolume, *CustomPersistentDiskProperties
type CustomPersistentDiskResource ¶ added in v0.2.0
type CustomPersistentDiskResource struct { // REQUIRED; The resource id of Azure Spring Apps Storage resource. StorageID *string `json:"storageId,omitempty"` // Properties of the custom persistent disk resource payload. CustomPersistentDiskProperties CustomPersistentDiskPropertiesClassification `json:"customPersistentDiskProperties,omitempty"` }
CustomPersistentDiskResource - Custom persistent disk resource payload.
func (CustomPersistentDiskResource) MarshalJSON ¶ added in v0.2.0
func (c CustomPersistentDiskResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomPersistentDiskResource.
func (*CustomPersistentDiskResource) UnmarshalJSON ¶ added in v0.2.0
func (c *CustomPersistentDiskResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomPersistentDiskResource.
type CustomizedAcceleratorProperties ¶
type CustomizedAcceleratorProperties struct { // REQUIRED GitRepository *AcceleratorGitRepository `json:"gitRepository,omitempty"` AcceleratorTags []*string `json:"acceleratorTags,omitempty"` Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` IconURL *string `json:"iconUrl,omitempty"` // READ-ONLY; State of the customized accelerator. ProvisioningState *CustomizedAcceleratorProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
CustomizedAcceleratorProperties - Customized accelerator properties payload
func (CustomizedAcceleratorProperties) MarshalJSON ¶
func (c CustomizedAcceleratorProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomizedAcceleratorProperties.
func (*CustomizedAcceleratorProperties) UnmarshalJSON ¶
func (c *CustomizedAcceleratorProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomizedAcceleratorProperties.
type CustomizedAcceleratorProvisioningState ¶
type CustomizedAcceleratorProvisioningState string
CustomizedAcceleratorProvisioningState - State of the customized accelerator.
const ( CustomizedAcceleratorProvisioningStateCreating CustomizedAcceleratorProvisioningState = "Creating" CustomizedAcceleratorProvisioningStateDeleting CustomizedAcceleratorProvisioningState = "Deleting" CustomizedAcceleratorProvisioningStateFailed CustomizedAcceleratorProvisioningState = "Failed" CustomizedAcceleratorProvisioningStateSucceeded CustomizedAcceleratorProvisioningState = "Succeeded" CustomizedAcceleratorProvisioningStateUpdating CustomizedAcceleratorProvisioningState = "Updating" )
func PossibleCustomizedAcceleratorProvisioningStateValues ¶
func PossibleCustomizedAcceleratorProvisioningStateValues() []CustomizedAcceleratorProvisioningState
PossibleCustomizedAcceleratorProvisioningStateValues returns the possible values for the CustomizedAcceleratorProvisioningState const type.
type CustomizedAcceleratorResource ¶
type CustomizedAcceleratorResource struct { // Customized accelerator properties payload Properties *CustomizedAcceleratorProperties `json:"properties,omitempty"` // Sku of the customized accelerator resource SKU *SKU `json:"sku,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
CustomizedAcceleratorResource - Customized accelerator resource
func (CustomizedAcceleratorResource) MarshalJSON ¶
func (c CustomizedAcceleratorResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomizedAcceleratorResource.
func (*CustomizedAcceleratorResource) UnmarshalJSON ¶
func (c *CustomizedAcceleratorResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomizedAcceleratorResource.
type CustomizedAcceleratorResourceCollection ¶
type CustomizedAcceleratorResourceCollection struct { NextLink *string `json:"nextLink,omitempty"` Value []*CustomizedAcceleratorResource `json:"value,omitempty"` }
func (CustomizedAcceleratorResourceCollection) MarshalJSON ¶
func (c CustomizedAcceleratorResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomizedAcceleratorResourceCollection.
func (*CustomizedAcceleratorResourceCollection) UnmarshalJSON ¶
func (c *CustomizedAcceleratorResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomizedAcceleratorResourceCollection.
type CustomizedAcceleratorValidateResult ¶
type CustomizedAcceleratorValidateResult struct { // The detail validation results ErrorMessage *string `json:"errorMessage,omitempty"` // State of the customized accelerator validation result State *CustomizedAcceleratorValidateResultState `json:"state,omitempty"` }
CustomizedAcceleratorValidateResult - Validation result for customized accelerator properties
func (CustomizedAcceleratorValidateResult) MarshalJSON ¶
func (c CustomizedAcceleratorValidateResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomizedAcceleratorValidateResult.
func (*CustomizedAcceleratorValidateResult) UnmarshalJSON ¶
func (c *CustomizedAcceleratorValidateResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomizedAcceleratorValidateResult.
type CustomizedAcceleratorValidateResultState ¶
type CustomizedAcceleratorValidateResultState string
CustomizedAcceleratorValidateResultState - State of the customized accelerator validation result
const ( // CustomizedAcceleratorValidateResultStateInvalid - Customized accelerator properties are invalid. CustomizedAcceleratorValidateResultStateInvalid CustomizedAcceleratorValidateResultState = "Invalid" // CustomizedAcceleratorValidateResultStateValid - Customized accelerator properties are valid. CustomizedAcceleratorValidateResultStateValid CustomizedAcceleratorValidateResultState = "Valid" )
func PossibleCustomizedAcceleratorValidateResultStateValues ¶
func PossibleCustomizedAcceleratorValidateResultStateValues() []CustomizedAcceleratorValidateResultState
PossibleCustomizedAcceleratorValidateResultStateValues returns the possible values for the CustomizedAcceleratorValidateResultState const type.
type CustomizedAcceleratorsClient ¶
type CustomizedAcceleratorsClient struct {
// contains filtered or unexported fields
}
CustomizedAcceleratorsClient contains the methods for the CustomizedAccelerators group. Don't use this type directly, use NewCustomizedAcceleratorsClient() instead.
func NewCustomizedAcceleratorsClient ¶
func NewCustomizedAcceleratorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CustomizedAcceleratorsClient, error)
NewCustomizedAcceleratorsClient creates a new instance of CustomizedAcceleratorsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*CustomizedAcceleratorsClient) BeginCreateOrUpdate ¶
func (client *CustomizedAcceleratorsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, applicationAcceleratorName string, customizedAcceleratorName string, customizedAcceleratorResource CustomizedAcceleratorResource, options *CustomizedAcceleratorsClientBeginCreateOrUpdateOptions) (*runtime.Poller[CustomizedAcceleratorsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the customized accelerator. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- customizedAcceleratorName - The name of the customized accelerator.
- customizedAcceleratorResource - The customized accelerator for the create or update operation
- options - CustomizedAcceleratorsClientBeginCreateOrUpdateOptions contains the optional parameters for the CustomizedAcceleratorsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/CustomizedAccelerators_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewCustomizedAcceleratorsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", "acc-name", armappplatform.CustomizedAcceleratorResource{ Properties: &armappplatform.CustomizedAcceleratorProperties{ Description: to.Ptr("acc-desc"), AcceleratorTags: []*string{ to.Ptr("tag-a"), to.Ptr("tag-b")}, DisplayName: to.Ptr("acc-name"), GitRepository: &armappplatform.AcceleratorGitRepository{ AuthSetting: &armappplatform.AcceleratorSSHSetting{ AuthType: to.Ptr("SSH"), HostKey: to.Ptr("git-auth-hostkey"), HostKeyAlgorithm: to.Ptr("git-auth-algorithm"), PrivateKey: to.Ptr("git-auth-privatekey"), }, Branch: to.Ptr("git-branch"), Commit: to.Ptr("12345"), GitTag: to.Ptr("git-tag"), IntervalInSeconds: to.Ptr[int32](70), URL: to.Ptr("git-url"), }, IconURL: to.Ptr("acc-icon"), }, SKU: &armappplatform.SKU{ Name: to.Ptr("E0"), Capacity: to.Ptr[int32](2), Tier: to.Ptr("Enterprise"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CustomizedAcceleratorResource = armappplatform.CustomizedAcceleratorResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationAccelerators/default/customizedAccelerators/acc-name"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.CustomizedAcceleratorProperties{ // Description: to.Ptr("acc-desc"), // AcceleratorTags: []*string{ // to.Ptr("tag-a"), // to.Ptr("tag-b")}, // DisplayName: to.Ptr("acc-name"), // GitRepository: &armappplatform.AcceleratorGitRepository{ // AuthSetting: &armappplatform.AcceleratorSSHSetting{ // AuthType: to.Ptr("SSH"), // }, // Branch: to.Ptr("git-branch"), // Commit: to.Ptr("12345"), // GitTag: to.Ptr("git-tag"), // IntervalInSeconds: to.Ptr[int32](70), // URL: to.Ptr("git-url"), // }, // IconURL: to.Ptr("acc-icon"), // ProvisioningState: to.Ptr(armappplatform.CustomizedAcceleratorProvisioningStateSucceeded), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // } }
Output:
func (*CustomizedAcceleratorsClient) BeginDelete ¶
func (client *CustomizedAcceleratorsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, applicationAcceleratorName string, customizedAcceleratorName string, options *CustomizedAcceleratorsClientBeginDeleteOptions) (*runtime.Poller[CustomizedAcceleratorsClientDeleteResponse], error)
BeginDelete - Delete the customized accelerator. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- customizedAcceleratorName - The name of the customized accelerator.
- options - CustomizedAcceleratorsClientBeginDeleteOptions contains the optional parameters for the CustomizedAcceleratorsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/CustomizedAccelerators_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewCustomizedAcceleratorsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", "acc-name", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*CustomizedAcceleratorsClient) Get ¶
func (client *CustomizedAcceleratorsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, applicationAcceleratorName string, customizedAcceleratorName string, options *CustomizedAcceleratorsClientGetOptions) (CustomizedAcceleratorsClientGetResponse, error)
Get - Get the customized accelerator. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- customizedAcceleratorName - The name of the customized accelerator.
- options - CustomizedAcceleratorsClientGetOptions contains the optional parameters for the CustomizedAcceleratorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/CustomizedAccelerators_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewCustomizedAcceleratorsClient().Get(ctx, "myResourceGroup", "myservice", "default", "acc-name", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CustomizedAcceleratorResource = armappplatform.CustomizedAcceleratorResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationAccelerators/default/customizedAccelerators/acc-name"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.CustomizedAcceleratorProperties{ // Description: to.Ptr("acc-desc"), // AcceleratorTags: []*string{ // to.Ptr("tag-a"), // to.Ptr("tag-b")}, // DisplayName: to.Ptr("acc-name"), // GitRepository: &armappplatform.AcceleratorGitRepository{ // AuthSetting: &armappplatform.AcceleratorSSHSetting{ // AuthType: to.Ptr("SSH"), // }, // Branch: to.Ptr("git-branch"), // Commit: to.Ptr("12345"), // GitTag: to.Ptr("git-tag"), // IntervalInSeconds: to.Ptr[int32](70), // URL: to.Ptr("git-url"), // }, // IconURL: to.Ptr("acc-icon"), // ProvisioningState: to.Ptr(armappplatform.CustomizedAcceleratorProvisioningStateSucceeded), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // } }
Output:
func (*CustomizedAcceleratorsClient) NewListPager ¶
func (client *CustomizedAcceleratorsClient) NewListPager(resourceGroupName string, serviceName string, applicationAcceleratorName string, options *CustomizedAcceleratorsClientListOptions) *runtime.Pager[CustomizedAcceleratorsClientListResponse]
NewListPager - Handle requests to list all customized accelerators.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- options - CustomizedAcceleratorsClientListOptions contains the optional parameters for the CustomizedAcceleratorsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/CustomizedAccelerators_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewCustomizedAcceleratorsClient().NewListPager("myResourceGroup", "myservice", "default", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.CustomizedAcceleratorResourceCollection = armappplatform.CustomizedAcceleratorResourceCollection{ // Value: []*armappplatform.CustomizedAcceleratorResource{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationAccelerators/default/customizedAccelerators"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.CustomizedAcceleratorProperties{ // Description: to.Ptr("acc-desc"), // AcceleratorTags: []*string{ // to.Ptr("tag-a"), // to.Ptr("tag-b")}, // DisplayName: to.Ptr("acc-name"), // GitRepository: &armappplatform.AcceleratorGitRepository{ // AuthSetting: &armappplatform.AcceleratorSSHSetting{ // AuthType: to.Ptr("SSH"), // }, // Branch: to.Ptr("git-branch"), // Commit: to.Ptr("12345"), // GitTag: to.Ptr("git-tag"), // IntervalInSeconds: to.Ptr[int32](70), // URL: to.Ptr("git-url"), // }, // IconURL: to.Ptr("acc-icon"), // ProvisioningState: to.Ptr(armappplatform.CustomizedAcceleratorProvisioningStateSucceeded), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // }}, // } } }
Output:
func (*CustomizedAcceleratorsClient) Validate ¶
func (client *CustomizedAcceleratorsClient) Validate(ctx context.Context, resourceGroupName string, serviceName string, applicationAcceleratorName string, customizedAcceleratorName string, properties CustomizedAcceleratorProperties, options *CustomizedAcceleratorsClientValidateOptions) (CustomizedAcceleratorsClientValidateResponse, error)
Validate - Check the customized accelerator are valid. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- customizedAcceleratorName - The name of the customized accelerator.
- properties - Customized accelerator properties to be validated
- options - CustomizedAcceleratorsClientValidateOptions contains the optional parameters for the CustomizedAcceleratorsClient.Validate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/CustomizedAccelerators_Validate.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewCustomizedAcceleratorsClient().Validate(ctx, "myResourceGroup", "myservice", "default", "acc-name", armappplatform.CustomizedAcceleratorProperties{ Description: to.Ptr("acc-desc"), AcceleratorTags: []*string{ to.Ptr("tag-a"), to.Ptr("tag-b")}, DisplayName: to.Ptr("acc-name"), GitRepository: &armappplatform.AcceleratorGitRepository{ AuthSetting: &armappplatform.AcceleratorSSHSetting{ AuthType: to.Ptr("SSH"), HostKey: to.Ptr("git-auth-hostkey"), HostKeyAlgorithm: to.Ptr("git-auth-algorithm"), PrivateKey: to.Ptr("git-auth-privatekey"), }, Branch: to.Ptr("git-branch"), Commit: to.Ptr("12345"), GitTag: to.Ptr("git-tag"), IntervalInSeconds: to.Ptr[int32](70), URL: to.Ptr("git-url"), }, IconURL: to.Ptr("acc-icon"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CustomizedAcceleratorValidateResult = armappplatform.CustomizedAcceleratorValidateResult{ // ErrorMessage: to.Ptr(""), // State: to.Ptr(armappplatform.CustomizedAcceleratorValidateResultStateValid), // } }
Output:
type CustomizedAcceleratorsClientBeginCreateOrUpdateOptions ¶
type CustomizedAcceleratorsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CustomizedAcceleratorsClientBeginCreateOrUpdateOptions contains the optional parameters for the CustomizedAcceleratorsClient.BeginCreateOrUpdate method.
type CustomizedAcceleratorsClientBeginDeleteOptions ¶
type CustomizedAcceleratorsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CustomizedAcceleratorsClientBeginDeleteOptions contains the optional parameters for the CustomizedAcceleratorsClient.BeginDelete method.
type CustomizedAcceleratorsClientCreateOrUpdateResponse ¶
type CustomizedAcceleratorsClientCreateOrUpdateResponse struct {
CustomizedAcceleratorResource
}
CustomizedAcceleratorsClientCreateOrUpdateResponse contains the response from method CustomizedAcceleratorsClient.BeginCreateOrUpdate.
type CustomizedAcceleratorsClientDeleteResponse ¶
type CustomizedAcceleratorsClientDeleteResponse struct { }
CustomizedAcceleratorsClientDeleteResponse contains the response from method CustomizedAcceleratorsClient.BeginDelete.
type CustomizedAcceleratorsClientGetOptions ¶
type CustomizedAcceleratorsClientGetOptions struct { }
CustomizedAcceleratorsClientGetOptions contains the optional parameters for the CustomizedAcceleratorsClient.Get method.
type CustomizedAcceleratorsClientGetResponse ¶
type CustomizedAcceleratorsClientGetResponse struct {
CustomizedAcceleratorResource
}
CustomizedAcceleratorsClientGetResponse contains the response from method CustomizedAcceleratorsClient.Get.
type CustomizedAcceleratorsClientListOptions ¶
type CustomizedAcceleratorsClientListOptions struct { }
CustomizedAcceleratorsClientListOptions contains the optional parameters for the CustomizedAcceleratorsClient.NewListPager method.
type CustomizedAcceleratorsClientListResponse ¶
type CustomizedAcceleratorsClientListResponse struct {
CustomizedAcceleratorResourceCollection
}
CustomizedAcceleratorsClientListResponse contains the response from method CustomizedAcceleratorsClient.NewListPager.
type CustomizedAcceleratorsClientValidateOptions ¶
type CustomizedAcceleratorsClientValidateOptions struct { }
CustomizedAcceleratorsClientValidateOptions contains the optional parameters for the CustomizedAcceleratorsClient.Validate method.
type CustomizedAcceleratorsClientValidateResponse ¶
type CustomizedAcceleratorsClientValidateResponse struct {
CustomizedAcceleratorValidateResult
}
CustomizedAcceleratorsClientValidateResponse contains the response from method CustomizedAcceleratorsClient.Validate.
type DeploymentInstance ¶
type DeploymentInstance struct { // READ-ONLY; Discovery status of the deployment instance DiscoveryStatus *string `json:"discoveryStatus,omitempty" azure:"ro"` // READ-ONLY; Name of the deployment instance Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Failed reason of the deployment instance Reason *string `json:"reason,omitempty" azure:"ro"` // READ-ONLY; Start time of the deployment instance StartTime *string `json:"startTime,omitempty" azure:"ro"` // READ-ONLY; Status of the deployment instance Status *string `json:"status,omitempty" azure:"ro"` // READ-ONLY; Availability zone information of the deployment instance Zone *string `json:"zone,omitempty" azure:"ro"` }
DeploymentInstance - Deployment instance payload
func (DeploymentInstance) MarshalJSON ¶ added in v1.1.0
func (d DeploymentInstance) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentInstance.
func (*DeploymentInstance) UnmarshalJSON ¶ added in v1.1.0
func (d *DeploymentInstance) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentInstance.
type DeploymentList ¶
type DeploymentList struct { // A list of deployment resource ids. Deployments []*string `json:"deployments,omitempty"` }
DeploymentList - A list of deployments resource ids.
func (DeploymentList) MarshalJSON ¶
func (d DeploymentList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentList.
func (*DeploymentList) UnmarshalJSON ¶
func (d *DeploymentList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentList.
type DeploymentResource ¶
type DeploymentResource struct { // Properties of the Deployment resource Properties *DeploymentResourceProperties `json:"properties,omitempty"` // Sku of the Deployment resource SKU *SKU `json:"sku,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
DeploymentResource - Deployment resource payload
func (DeploymentResource) MarshalJSON ¶
func (d DeploymentResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentResource.
func (*DeploymentResource) UnmarshalJSON ¶ added in v0.2.0
func (d *DeploymentResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentResource.
type DeploymentResourceCollection ¶
type DeploymentResourceCollection 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 Deployment resources Value []*DeploymentResource `json:"value,omitempty"` }
DeploymentResourceCollection - Object that includes an array of App resources and a possible link for next set
func (DeploymentResourceCollection) MarshalJSON ¶
func (d DeploymentResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentResourceCollection.
func (*DeploymentResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (d *DeploymentResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentResourceCollection.
type DeploymentResourceProperties ¶
type DeploymentResourceProperties struct { // Indicates whether the Deployment is active Active *bool `json:"active,omitempty"` // Deployment settings of the Deployment DeploymentSettings *DeploymentSettings `json:"deploymentSettings,omitempty"` // Uploaded source information of the deployment. Source UserSourceInfoClassification `json:"source,omitempty"` // READ-ONLY; Collection of instances belong to the Deployment Instances []*DeploymentInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the Deployment ProvisioningState *DeploymentResourceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Status of the Deployment Status *DeploymentResourceStatus `json:"status,omitempty" azure:"ro"` }
DeploymentResourceProperties - Deployment resource properties payload
func (DeploymentResourceProperties) MarshalJSON ¶
func (d DeploymentResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentResourceProperties.
func (*DeploymentResourceProperties) UnmarshalJSON ¶
func (d *DeploymentResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentResourceProperties.
type DeploymentResourceProvisioningState ¶
type DeploymentResourceProvisioningState string
DeploymentResourceProvisioningState - Provisioning state of the Deployment
const ( DeploymentResourceProvisioningStateCreating DeploymentResourceProvisioningState = "Creating" DeploymentResourceProvisioningStateFailed DeploymentResourceProvisioningState = "Failed" DeploymentResourceProvisioningStateSucceeded DeploymentResourceProvisioningState = "Succeeded" DeploymentResourceProvisioningStateUpdating DeploymentResourceProvisioningState = "Updating" )
func PossibleDeploymentResourceProvisioningStateValues ¶
func PossibleDeploymentResourceProvisioningStateValues() []DeploymentResourceProvisioningState
PossibleDeploymentResourceProvisioningStateValues returns the possible values for the DeploymentResourceProvisioningState const type.
type DeploymentResourceStatus ¶
type DeploymentResourceStatus string
DeploymentResourceStatus - Status of the Deployment
const ( DeploymentResourceStatusRunning DeploymentResourceStatus = "Running" DeploymentResourceStatusStopped DeploymentResourceStatus = "Stopped" )
func PossibleDeploymentResourceStatusValues ¶
func PossibleDeploymentResourceStatusValues() []DeploymentResourceStatus
PossibleDeploymentResourceStatusValues returns the possible values for the DeploymentResourceStatus const type.
type DeploymentSettings ¶
type DeploymentSettings struct { // Collection of addons AddonConfigs map[string]map[string]any `json:"addonConfigs,omitempty"` // Container liveness and readiness probe settings ContainerProbeSettings *ContainerProbeSettings `json:"containerProbeSettings,omitempty"` // Collection of environment variables EnvironmentVariables map[string]*string `json:"environmentVariables,omitempty"` // Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes LivenessProbe *Probe `json:"livenessProbe,omitempty"` // Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. // More info: // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes ReadinessProbe *Probe `json:"readinessProbe,omitempty"` // The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required // CPU and Memory, the old field cpu and memoryInGB will be deprecated // later. ResourceRequests *ResourceRequests `json:"resourceRequests,omitempty"` // StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until // this completes successfully. If this probe fails, the Pod will be restarted, // just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's // lifecycle, when it might take a long time to load data or warm a cache, // than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes StartupProbe *Probe `json:"startupProbe,omitempty"` // Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value // must be non-negative integer. The value zero indicates stop immediately via the // kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace // period is the duration in seconds after the processes running in the App // Instance 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. Defaults to 90 // seconds. TerminationGracePeriodSeconds *int32 `json:"terminationGracePeriodSeconds,omitempty"` }
DeploymentSettings - Deployment settings payload
func (DeploymentSettings) MarshalJSON ¶
func (d DeploymentSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentSettings.
func (*DeploymentSettings) UnmarshalJSON ¶ added in v1.1.0
func (d *DeploymentSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentSettings.
type DeploymentsClient ¶
type DeploymentsClient struct {
// contains filtered or unexported fields
}
DeploymentsClient contains the methods for the Deployments group. Don't use this type directly, use NewDeploymentsClient() instead.
func NewDeploymentsClient ¶
func NewDeploymentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeploymentsClient, error)
NewDeploymentsClient creates a new instance of DeploymentsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DeploymentsClient) BeginCreateOrUpdate ¶
func (client *DeploymentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, deploymentResource DeploymentResource, options *DeploymentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DeploymentsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a new Deployment or update an exiting Deployment. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- deploymentResource - Parameters for the create or update operation
- options - DeploymentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DeploymentsClient.BeginCreateOrUpdate method.
Example (DeploymentsCreateOrUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", armappplatform.DeploymentResource{ Properties: &armappplatform.DeploymentResourceProperties{ DeploymentSettings: &armappplatform.DeploymentSettings{ AddonConfigs: map[string]map[string]any{ "ApplicationConfigurationService": { "patterns": []any{ "mypattern", }, }, }, EnvironmentVariables: map[string]*string{ "env": to.Ptr("test"), }, LivenessProbe: &armappplatform.Probe{ DisableProbe: to.Ptr(false), FailureThreshold: to.Ptr[int32](3), InitialDelaySeconds: to.Ptr[int32](30), PeriodSeconds: to.Ptr[int32](10), ProbeAction: &armappplatform.HTTPGetAction{ Type: to.Ptr(armappplatform.ProbeActionTypeHTTPGetAction), Path: to.Ptr("/health"), Scheme: to.Ptr(armappplatform.HTTPSchemeTypeHTTP), }, }, ReadinessProbe: &armappplatform.Probe{ DisableProbe: to.Ptr(false), FailureThreshold: to.Ptr[int32](3), InitialDelaySeconds: to.Ptr[int32](30), PeriodSeconds: to.Ptr[int32](10), ProbeAction: &armappplatform.HTTPGetAction{ Type: to.Ptr(armappplatform.ProbeActionTypeHTTPGetAction), Path: to.Ptr("/health"), Scheme: to.Ptr(armappplatform.HTTPSchemeTypeHTTP), }, }, ResourceRequests: &armappplatform.ResourceRequests{ CPU: to.Ptr("1000m"), Memory: to.Ptr("3Gi"), }, TerminationGracePeriodSeconds: to.Ptr[int32](30), }, Source: &armappplatform.SourceUploadedUserSourceInfo{ Type: to.Ptr("Source"), Version: to.Ptr("1.0"), RelativePath: to.Ptr("resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc"), ArtifactSelector: to.Ptr("sub-module-1"), }, }, SKU: &armappplatform.SKU{ Name: to.Ptr("S0"), Capacity: to.Ptr[int32](1), Tier: to.Ptr("Standard"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DeploymentResource = armappplatform.DeploymentResource{ // Name: to.Ptr("mydeployment"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/deployments"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DeploymentResourceProperties{ // Active: to.Ptr(false), // DeploymentSettings: &armappplatform.DeploymentSettings{ // EnvironmentVariables: map[string]*string{ // "env": to.Ptr("test"), // }, // LivenessProbe: &armappplatform.Probe{ // DisableProbe: to.Ptr(false), // FailureThreshold: to.Ptr[int32](3), // InitialDelaySeconds: to.Ptr[int32](30), // PeriodSeconds: to.Ptr[int32](10), // ProbeAction: &armappplatform.HTTPGetAction{ // Type: to.Ptr(armappplatform.ProbeActionTypeHTTPGetAction), // Path: to.Ptr("/health"), // Scheme: to.Ptr(armappplatform.HTTPSchemeTypeHTTP), // }, // }, // ReadinessProbe: &armappplatform.Probe{ // DisableProbe: to.Ptr(false), // FailureThreshold: to.Ptr[int32](3), // InitialDelaySeconds: to.Ptr[int32](30), // PeriodSeconds: to.Ptr[int32](10), // ProbeAction: &armappplatform.HTTPGetAction{ // Type: to.Ptr(armappplatform.ProbeActionTypeHTTPGetAction), // Path: to.Ptr("/health"), // Scheme: to.Ptr(armappplatform.HTTPSchemeTypeHTTP), // }, // }, // ResourceRequests: &armappplatform.ResourceRequests{ // CPU: to.Ptr("1000m"), // Memory: to.Ptr("3Gi"), // }, // TerminationGracePeriodSeconds: to.Ptr[int32](30), // }, // Instances: []*armappplatform.DeploymentInstance{ // { // Name: to.Ptr("instance1"), // DiscoveryStatus: to.Ptr("pending"), // StartTime: to.Ptr("2020-08-26T01:55:02Z"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DeploymentResourceProvisioningStateSucceeded), // Source: &armappplatform.SourceUploadedUserSourceInfo{ // Type: to.Ptr("Source"), // Version: to.Ptr("1.0"), // RelativePath: to.Ptr("resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc"), // ArtifactSelector: to.Ptr("sub-module-1"), // }, // Status: to.Ptr(armappplatform.DeploymentResourceStatusRunning), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Capacity: to.Ptr[int32](1), // Tier: to.Ptr("Standard"), // }, // } }
Output:
Example (DeploymentsCreateOrUpdateCustomContainer) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_CreateOrUpdate_CustomContainer.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", armappplatform.DeploymentResource{ Properties: &armappplatform.DeploymentResourceProperties{ DeploymentSettings: &armappplatform.DeploymentSettings{ EnvironmentVariables: map[string]*string{ "env": to.Ptr("test"), }, LivenessProbe: &armappplatform.Probe{ DisableProbe: to.Ptr(false), FailureThreshold: to.Ptr[int32](3), InitialDelaySeconds: to.Ptr[int32](30), PeriodSeconds: to.Ptr[int32](10), ProbeAction: &armappplatform.HTTPGetAction{ Type: to.Ptr(armappplatform.ProbeActionTypeHTTPGetAction), Path: to.Ptr("/health"), Scheme: to.Ptr(armappplatform.HTTPSchemeTypeHTTP), }, }, ReadinessProbe: &armappplatform.Probe{ DisableProbe: to.Ptr(false), FailureThreshold: to.Ptr[int32](3), InitialDelaySeconds: to.Ptr[int32](30), PeriodSeconds: to.Ptr[int32](10), ProbeAction: &armappplatform.HTTPGetAction{ Type: to.Ptr(armappplatform.ProbeActionTypeHTTPGetAction), Path: to.Ptr("/health"), Scheme: to.Ptr(armappplatform.HTTPSchemeTypeHTTP), }, }, ResourceRequests: &armappplatform.ResourceRequests{ CPU: to.Ptr("1000m"), Memory: to.Ptr("3Gi"), }, TerminationGracePeriodSeconds: to.Ptr[int32](30), }, Source: &armappplatform.CustomContainerUserSourceInfo{ Type: to.Ptr("Container"), CustomContainer: &armappplatform.CustomContainer{ Args: []*string{ to.Ptr("-c"), to.Ptr("while true; do echo hello; sleep 10;done")}, Command: []*string{ to.Ptr("/bin/sh")}, ContainerImage: to.Ptr("myContainerImage:v1"), ImageRegistryCredential: &armappplatform.ImageRegistryCredential{ Password: to.Ptr("myPassword"), Username: to.Ptr("myUsername"), }, LanguageFramework: to.Ptr("springboot"), Server: to.Ptr("myacr.azurecr.io"), }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DeploymentResource = armappplatform.DeploymentResource{ // Name: to.Ptr("mydeployment"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/deployments"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DeploymentResourceProperties{ // Active: to.Ptr(false), // DeploymentSettings: &armappplatform.DeploymentSettings{ // EnvironmentVariables: map[string]*string{ // "env": to.Ptr("test"), // }, // LivenessProbe: &armappplatform.Probe{ // DisableProbe: to.Ptr(false), // FailureThreshold: to.Ptr[int32](3), // InitialDelaySeconds: to.Ptr[int32](30), // PeriodSeconds: to.Ptr[int32](10), // ProbeAction: &armappplatform.HTTPGetAction{ // Type: to.Ptr(armappplatform.ProbeActionTypeHTTPGetAction), // Path: to.Ptr("/health"), // Scheme: to.Ptr(armappplatform.HTTPSchemeTypeHTTP), // }, // }, // ReadinessProbe: &armappplatform.Probe{ // DisableProbe: to.Ptr(false), // FailureThreshold: to.Ptr[int32](3), // InitialDelaySeconds: to.Ptr[int32](30), // PeriodSeconds: to.Ptr[int32](10), // ProbeAction: &armappplatform.HTTPGetAction{ // Type: to.Ptr(armappplatform.ProbeActionTypeHTTPGetAction), // Path: to.Ptr("/health"), // Scheme: to.Ptr(armappplatform.HTTPSchemeTypeHTTP), // }, // }, // ResourceRequests: &armappplatform.ResourceRequests{ // CPU: to.Ptr("1000m"), // Memory: to.Ptr("3Gi"), // }, // TerminationGracePeriodSeconds: to.Ptr[int32](30), // }, // Instances: []*armappplatform.DeploymentInstance{ // { // Name: to.Ptr("instance1"), // DiscoveryStatus: to.Ptr("N/A"), // StartTime: to.Ptr("2020-08-26T01:55:02Z"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DeploymentResourceProvisioningStateSucceeded), // Source: &armappplatform.CustomContainerUserSourceInfo{ // Type: to.Ptr("Container"), // CustomContainer: &armappplatform.CustomContainer{ // ContainerImage: to.Ptr("myContainerImage:v1"), // ImageRegistryCredential: &armappplatform.ImageRegistryCredential{ // Password: to.Ptr(""), // Username: to.Ptr("myUsername"), // }, // LanguageFramework: to.Ptr("springboot"), // Server: to.Ptr("myacr.azurecr.io"), // }, // }, // Status: to.Ptr(armappplatform.DeploymentResourceStatusRunning), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Capacity: to.Ptr[int32](1), // Tier: to.Ptr("Standard"), // }, // } }
Output:
func (*DeploymentsClient) BeginDelete ¶
func (client *DeploymentsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientBeginDeleteOptions) (*runtime.Poller[DeploymentsClientDeleteResponse], error)
BeginDelete - Operation to delete a Deployment. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- options - DeploymentsClientBeginDeleteOptions contains the optional parameters for the DeploymentsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DeploymentsClient) BeginDisableRemoteDebugging ¶
func (client *DeploymentsClient) BeginDisableRemoteDebugging(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientBeginDisableRemoteDebuggingOptions) (*runtime.Poller[DeploymentsClientDisableRemoteDebuggingResponse], error)
BeginDisableRemoteDebugging - Disable remote debugging. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- options - DeploymentsClientBeginDisableRemoteDebuggingOptions contains the optional parameters for the DeploymentsClient.BeginDisableRemoteDebugging method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_DisableRemoteDebugging.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginDisableRemoteDebugging(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.RemoteDebugging = armappplatform.RemoteDebugging{ // Enabled: to.Ptr(false), // Port: to.Ptr[int32](5005), // } }
Output:
func (*DeploymentsClient) BeginEnableRemoteDebugging ¶
func (client *DeploymentsClient) BeginEnableRemoteDebugging(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientBeginEnableRemoteDebuggingOptions) (*runtime.Poller[DeploymentsClientEnableRemoteDebuggingResponse], error)
BeginEnableRemoteDebugging - Enable remote debugging. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- options - DeploymentsClientBeginEnableRemoteDebuggingOptions contains the optional parameters for the DeploymentsClient.BeginEnableRemoteDebugging method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_EnableRemoteDebugging.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginEnableRemoteDebugging(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", &armappplatform.DeploymentsClientBeginEnableRemoteDebuggingOptions{RemoteDebuggingPayload: &armappplatform.RemoteDebuggingPayload{}}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.RemoteDebugging = armappplatform.RemoteDebugging{ // Enabled: to.Ptr(true), // Port: to.Ptr[int32](5005), // } }
Output:
func (*DeploymentsClient) BeginGenerateHeapDump ¶ added in v0.2.0
func (client *DeploymentsClient) BeginGenerateHeapDump(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, diagnosticParameters DiagnosticParameters, options *DeploymentsClientBeginGenerateHeapDumpOptions) (*runtime.Poller[DeploymentsClientGenerateHeapDumpResponse], error)
BeginGenerateHeapDump - Generate Heap Dump If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- diagnosticParameters - Parameters for the diagnostic operation
- options - DeploymentsClientBeginGenerateHeapDumpOptions contains the optional parameters for the DeploymentsClient.BeginGenerateHeapDump method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_GenerateHeapDump.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginGenerateHeapDump(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", armappplatform.DiagnosticParameters{ AppInstance: to.Ptr("myappinstance"), FilePath: to.Ptr("/byos/diagnose"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DeploymentsClient) BeginGenerateThreadDump ¶ added in v0.2.0
func (client *DeploymentsClient) BeginGenerateThreadDump(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, diagnosticParameters DiagnosticParameters, options *DeploymentsClientBeginGenerateThreadDumpOptions) (*runtime.Poller[DeploymentsClientGenerateThreadDumpResponse], error)
BeginGenerateThreadDump - Generate Thread Dump If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- diagnosticParameters - Parameters for the diagnostic operation
- options - DeploymentsClientBeginGenerateThreadDumpOptions contains the optional parameters for the DeploymentsClient.BeginGenerateThreadDump method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_GenerateThreadDump.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginGenerateThreadDump(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", armappplatform.DiagnosticParameters{ AppInstance: to.Ptr("myappinstance"), FilePath: to.Ptr("/byos/diagnose"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DeploymentsClient) BeginRestart ¶
func (client *DeploymentsClient) BeginRestart(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientBeginRestartOptions) (*runtime.Poller[DeploymentsClientRestartResponse], error)
BeginRestart - Restart the deployment. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- options - DeploymentsClientBeginRestartOptions contains the optional parameters for the DeploymentsClient.BeginRestart method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_Restart.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginRestart(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DeploymentsClient) BeginStart ¶
func (client *DeploymentsClient) BeginStart(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientBeginStartOptions) (*runtime.Poller[DeploymentsClientStartResponse], error)
BeginStart - Start the deployment. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- options - DeploymentsClientBeginStartOptions contains the optional parameters for the DeploymentsClient.BeginStart method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_Start.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginStart(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DeploymentsClient) BeginStartJFR ¶ added in v0.2.0
func (client *DeploymentsClient) BeginStartJFR(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, diagnosticParameters DiagnosticParameters, options *DeploymentsClientBeginStartJFROptions) (*runtime.Poller[DeploymentsClientStartJFRResponse], error)
BeginStartJFR - Start JFR If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- diagnosticParameters - Parameters for the diagnostic operation
- options - DeploymentsClientBeginStartJFROptions contains the optional parameters for the DeploymentsClient.BeginStartJFR method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_StartJFR.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginStartJFR(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", armappplatform.DiagnosticParameters{ AppInstance: to.Ptr("myappinstance"), Duration: to.Ptr("60s"), FilePath: to.Ptr("/byos/diagnose"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DeploymentsClient) BeginStop ¶
func (client *DeploymentsClient) BeginStop(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientBeginStopOptions) (*runtime.Poller[DeploymentsClientStopResponse], error)
BeginStop - Stop the deployment. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- options - DeploymentsClientBeginStopOptions contains the optional parameters for the DeploymentsClient.BeginStop method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_Stop.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginStop(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DeploymentsClient) BeginUpdate ¶
func (client *DeploymentsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, deploymentResource DeploymentResource, options *DeploymentsClientBeginUpdateOptions) (*runtime.Poller[DeploymentsClientUpdateResponse], error)
BeginUpdate - Operation to update an exiting Deployment. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- deploymentResource - Parameters for the update operation
- options - DeploymentsClientBeginUpdateOptions contains the optional parameters for the DeploymentsClient.BeginUpdate method.
Example (DeploymentsUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_Update.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginUpdate(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", armappplatform.DeploymentResource{ Properties: &armappplatform.DeploymentResourceProperties{ Source: &armappplatform.SourceUploadedUserSourceInfo{ Type: to.Ptr("Source"), Version: to.Ptr("1.0"), RelativePath: to.Ptr("resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc"), ArtifactSelector: to.Ptr("sub-module-1"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DeploymentResource = armappplatform.DeploymentResource{ // Name: to.Ptr("mydeployment"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/deployments"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DeploymentResourceProperties{ // Active: to.Ptr(true), // DeploymentSettings: &armappplatform.DeploymentSettings{ // EnvironmentVariables: map[string]*string{ // "env": to.Ptr("test"), // }, // ResourceRequests: &armappplatform.ResourceRequests{ // CPU: to.Ptr("1000m"), // Memory: to.Ptr("3Gi"), // }, // }, // Instances: []*armappplatform.DeploymentInstance{ // { // Name: to.Ptr("instance1"), // DiscoveryStatus: to.Ptr("pending"), // StartTime: to.Ptr("2020-08-26T01:55:02Z"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DeploymentResourceProvisioningStateSucceeded), // Source: &armappplatform.SourceUploadedUserSourceInfo{ // Type: to.Ptr("Source"), // Version: to.Ptr("1.0"), // RelativePath: to.Ptr("resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc"), // ArtifactSelector: to.Ptr("sub-module-1"), // }, // Status: to.Ptr(armappplatform.DeploymentResourceStatusRunning), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Capacity: to.Ptr[int32](1), // Tier: to.Ptr("Standard"), // }, // } }
Output:
Example (DeploymentsUpdateCustomContainer) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_Update_CustomContainer.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDeploymentsClient().BeginUpdate(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", armappplatform.DeploymentResource{ Properties: &armappplatform.DeploymentResourceProperties{ Source: &armappplatform.CustomContainerUserSourceInfo{ Type: to.Ptr("Container"), CustomContainer: &armappplatform.CustomContainer{ Args: []*string{ to.Ptr("-c"), to.Ptr("while true; do echo hello; sleep 10;done")}, Command: []*string{ to.Ptr("/bin/sh")}, ContainerImage: to.Ptr("myNewContainerImage:v1"), ImageRegistryCredential: &armappplatform.ImageRegistryCredential{ Password: to.Ptr("<myNewPassword>"), Username: to.Ptr("myNewUsername"), }, Server: to.Ptr("mynewacr.azurecr.io"), }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DeploymentResource = armappplatform.DeploymentResource{ // Name: to.Ptr("mydeployment"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/deployments"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DeploymentResourceProperties{ // Active: to.Ptr(false), // DeploymentSettings: &armappplatform.DeploymentSettings{ // EnvironmentVariables: map[string]*string{ // "env": to.Ptr("test"), // }, // ResourceRequests: &armappplatform.ResourceRequests{ // CPU: to.Ptr("1000m"), // Memory: to.Ptr("3Gi"), // }, // }, // Instances: []*armappplatform.DeploymentInstance{ // { // Name: to.Ptr("instance1"), // DiscoveryStatus: to.Ptr("N/A"), // StartTime: to.Ptr("2020-08-26T01:55:02Z"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DeploymentResourceProvisioningStateSucceeded), // Source: &armappplatform.CustomContainerUserSourceInfo{ // Type: to.Ptr("Container"), // CustomContainer: &armappplatform.CustomContainer{ // ContainerImage: to.Ptr("myNewContainerImage:v1"), // ImageRegistryCredential: &armappplatform.ImageRegistryCredential{ // Password: to.Ptr(""), // Username: to.Ptr("myNewUsername"), // }, // Server: to.Ptr("mynewacr.azurecr.io"), // }, // }, // Status: to.Ptr(armappplatform.DeploymentResourceStatusRunning), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Capacity: to.Ptr[int32](1), // Tier: to.Ptr("Standard"), // }, // } }
Output:
func (*DeploymentsClient) Get ¶
func (client *DeploymentsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientGetOptions) (DeploymentsClientGetResponse, error)
Get - Get a Deployment and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- options - DeploymentsClientGetOptions contains the optional parameters for the DeploymentsClient.Get method.
Example (DeploymentsGet) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDeploymentsClient().Get(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DeploymentResource = armappplatform.DeploymentResource{ // Name: to.Ptr("mydeployment"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/deployments"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DeploymentResourceProperties{ // Active: to.Ptr(true), // DeploymentSettings: &armappplatform.DeploymentSettings{ // EnvironmentVariables: map[string]*string{ // "env": to.Ptr("test"), // }, // ResourceRequests: &armappplatform.ResourceRequests{ // CPU: to.Ptr("1000m"), // Memory: to.Ptr("3Gi"), // }, // }, // Instances: []*armappplatform.DeploymentInstance{ // { // Name: to.Ptr("instance1"), // DiscoveryStatus: to.Ptr("pending"), // StartTime: to.Ptr("2020-08-26T01:55:02Z"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DeploymentResourceProvisioningStateSucceeded), // Source: &armappplatform.SourceUploadedUserSourceInfo{ // Type: to.Ptr("Source"), // Version: to.Ptr("1.0"), // RelativePath: to.Ptr("resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc"), // ArtifactSelector: to.Ptr("sub-module-1"), // }, // Status: to.Ptr(armappplatform.DeploymentResourceStatusRunning), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Capacity: to.Ptr[int32](1), // Tier: to.Ptr("Standard"), // }, // } }
Output:
Example (DeploymentsGetCustomContainer) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_Get_CustomContainer.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDeploymentsClient().Get(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DeploymentResource = armappplatform.DeploymentResource{ // Name: to.Ptr("mydeployment"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/deployments"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DeploymentResourceProperties{ // Active: to.Ptr(false), // DeploymentSettings: &armappplatform.DeploymentSettings{ // EnvironmentVariables: map[string]*string{ // "env": to.Ptr("test"), // }, // ResourceRequests: &armappplatform.ResourceRequests{ // CPU: to.Ptr("1000m"), // Memory: to.Ptr("3Gi"), // }, // }, // Instances: []*armappplatform.DeploymentInstance{ // { // Name: to.Ptr("instance1"), // DiscoveryStatus: to.Ptr("N/A"), // StartTime: to.Ptr("2020-08-26T01:55:02Z"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DeploymentResourceProvisioningStateSucceeded), // Source: &armappplatform.CustomContainerUserSourceInfo{ // Type: to.Ptr("Container"), // CustomContainer: &armappplatform.CustomContainer{ // Args: []*string{ // to.Ptr("-c"), // to.Ptr("while true; do echo hello; sleep 10;done")}, // Command: []*string{ // to.Ptr("/bin/sh")}, // ContainerImage: to.Ptr("myContainerImage:v1"), // ImageRegistryCredential: &armappplatform.ImageRegistryCredential{ // Password: to.Ptr(""), // Username: to.Ptr("myUsername"), // }, // LanguageFramework: to.Ptr("springboot"), // Server: to.Ptr("myacr.azurecr.io"), // }, // }, // Status: to.Ptr(armappplatform.DeploymentResourceStatusRunning), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Capacity: to.Ptr[int32](1), // Tier: to.Ptr("Standard"), // }, // } }
Output:
func (*DeploymentsClient) GetLogFileURL ¶
func (client *DeploymentsClient) GetLogFileURL(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientGetLogFileURLOptions) (DeploymentsClientGetLogFileURLResponse, error)
GetLogFileURL - Get deployment log file URL If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- options - DeploymentsClientGetLogFileURLOptions contains the optional parameters for the DeploymentsClient.GetLogFileURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_GetLogFileUrl.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDeploymentsClient().GetLogFileURL(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.LogFileURLResponse = armappplatform.LogFileURLResponse{ // URL: to.Ptr("https://spring.blob.core.windows.net/logs/110ec0c337154d45b1f01daf2196c0bf/b58b0cb4ecdea3c65311b4ca8833fe47b6ae0a7500f87a8eb31e8379d3fe48f1-2019081312-42b7b90c-f108-4c09-b33d-1ea134f57f23?sv=2018-03-28&sr=b&sig=example-signature&se=2019-08-14T09%3A43%3A52Z&sp=r"), // } }
Output:
func (*DeploymentsClient) GetRemoteDebuggingConfig ¶
func (client *DeploymentsClient) GetRemoteDebuggingConfig(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientGetRemoteDebuggingConfigOptions) (DeploymentsClientGetRemoteDebuggingConfigResponse, error)
GetRemoteDebuggingConfig - Get remote debugging config. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- deploymentName - The name of the Deployment resource.
- options - DeploymentsClientGetRemoteDebuggingConfigOptions contains the optional parameters for the DeploymentsClient.GetRemoteDebuggingConfig method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_GetRemoteDebuggingConfig.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDeploymentsClient().GetRemoteDebuggingConfig(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.RemoteDebugging = armappplatform.RemoteDebugging{ // Enabled: to.Ptr(true), // Port: to.Ptr[int32](5005), // } }
Output:
func (*DeploymentsClient) NewListForClusterPager ¶ added in v0.5.0
func (client *DeploymentsClient) NewListForClusterPager(resourceGroupName string, serviceName string, options *DeploymentsClientListForClusterOptions) *runtime.Pager[DeploymentsClientListForClusterResponse]
NewListForClusterPager - List deployments for a certain service
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - DeploymentsClientListForClusterOptions contains the optional parameters for the DeploymentsClient.NewListForClusterPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_ListForCluster.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDeploymentsClient().NewListForClusterPager("myResourceGroup", "myservice", &armappplatform.DeploymentsClientListForClusterOptions{Version: []string{}}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DeploymentResourceCollection = armappplatform.DeploymentResourceCollection{ // Value: []*armappplatform.DeploymentResource{ // { // Name: to.Ptr("mydeployment"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/deployments"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DeploymentResourceProperties{ // Active: to.Ptr(true), // DeploymentSettings: &armappplatform.DeploymentSettings{ // EnvironmentVariables: map[string]*string{ // "env": to.Ptr("test"), // }, // ResourceRequests: &armappplatform.ResourceRequests{ // CPU: to.Ptr("1000m"), // Memory: to.Ptr("3Gi"), // }, // }, // Instances: []*armappplatform.DeploymentInstance{ // { // Name: to.Ptr("instance1"), // DiscoveryStatus: to.Ptr("pending"), // StartTime: to.Ptr("2020-08-26T01:55:02Z"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DeploymentResourceProvisioningStateSucceeded), // Source: &armappplatform.SourceUploadedUserSourceInfo{ // Type: to.Ptr("Source"), // Version: to.Ptr("1.0"), // RelativePath: to.Ptr("resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc"), // ArtifactSelector: to.Ptr("sub-module-1"), // }, // Status: to.Ptr(armappplatform.DeploymentResourceStatusRunning), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Capacity: to.Ptr[int32](1), // Tier: to.Ptr("Standard"), // }, // }}, // } } }
Output:
func (*DeploymentsClient) NewListPager ¶ added in v0.5.0
func (client *DeploymentsClient) NewListPager(resourceGroupName string, serviceName string, appName string, options *DeploymentsClientListOptions) *runtime.Pager[DeploymentsClientListResponse]
NewListPager - Handles requests to list all resources in an App.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- appName - The name of the App resource.
- options - DeploymentsClientListOptions contains the optional parameters for the DeploymentsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Deployments_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDeploymentsClient().NewListPager("myResourceGroup", "myservice", "myapp", &armappplatform.DeploymentsClientListOptions{Version: []string{}}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DeploymentResourceCollection = armappplatform.DeploymentResourceCollection{ // Value: []*armappplatform.DeploymentResource{ // { // Name: to.Ptr("mydeployment"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/apps/deployments"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DeploymentResourceProperties{ // Active: to.Ptr(true), // DeploymentSettings: &armappplatform.DeploymentSettings{ // EnvironmentVariables: map[string]*string{ // "env": to.Ptr("test"), // }, // ResourceRequests: &armappplatform.ResourceRequests{ // CPU: to.Ptr("1000m"), // Memory: to.Ptr("3Gi"), // }, // }, // Instances: []*armappplatform.DeploymentInstance{ // { // Name: to.Ptr("instance1"), // DiscoveryStatus: to.Ptr("pending"), // StartTime: to.Ptr("2020-08-26T01:55:02Z"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DeploymentResourceProvisioningStateSucceeded), // Source: &armappplatform.SourceUploadedUserSourceInfo{ // Type: to.Ptr("Source"), // Version: to.Ptr("1.0"), // RelativePath: to.Ptr("resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc"), // ArtifactSelector: to.Ptr("sub-module-1"), // }, // Status: to.Ptr(armappplatform.DeploymentResourceStatusRunning), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Capacity: to.Ptr[int32](1), // Tier: to.Ptr("Standard"), // }, // }}, // } } }
Output:
type DeploymentsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type DeploymentsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DeploymentsClient.BeginCreateOrUpdate method.
type DeploymentsClientBeginDeleteOptions ¶ added in v0.3.0
type DeploymentsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginDeleteOptions contains the optional parameters for the DeploymentsClient.BeginDelete method.
type DeploymentsClientBeginDisableRemoteDebuggingOptions ¶
type DeploymentsClientBeginDisableRemoteDebuggingOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginDisableRemoteDebuggingOptions contains the optional parameters for the DeploymentsClient.BeginDisableRemoteDebugging method.
type DeploymentsClientBeginEnableRemoteDebuggingOptions ¶
type DeploymentsClientBeginEnableRemoteDebuggingOptions struct { // Parameters for enable remote debugging RemoteDebuggingPayload *RemoteDebuggingPayload // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginEnableRemoteDebuggingOptions contains the optional parameters for the DeploymentsClient.BeginEnableRemoteDebugging method.
type DeploymentsClientBeginGenerateHeapDumpOptions ¶ added in v0.3.0
type DeploymentsClientBeginGenerateHeapDumpOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginGenerateHeapDumpOptions contains the optional parameters for the DeploymentsClient.BeginGenerateHeapDump method.
type DeploymentsClientBeginGenerateThreadDumpOptions ¶ added in v0.3.0
type DeploymentsClientBeginGenerateThreadDumpOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginGenerateThreadDumpOptions contains the optional parameters for the DeploymentsClient.BeginGenerateThreadDump method.
type DeploymentsClientBeginRestartOptions ¶ added in v0.3.0
type DeploymentsClientBeginRestartOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginRestartOptions contains the optional parameters for the DeploymentsClient.BeginRestart method.
type DeploymentsClientBeginStartJFROptions ¶ added in v0.3.0
type DeploymentsClientBeginStartJFROptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginStartJFROptions contains the optional parameters for the DeploymentsClient.BeginStartJFR method.
type DeploymentsClientBeginStartOptions ¶ added in v0.3.0
type DeploymentsClientBeginStartOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginStartOptions contains the optional parameters for the DeploymentsClient.BeginStart method.
type DeploymentsClientBeginStopOptions ¶ added in v0.3.0
type DeploymentsClientBeginStopOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginStopOptions contains the optional parameters for the DeploymentsClient.BeginStop method.
type DeploymentsClientBeginUpdateOptions ¶ added in v0.3.0
type DeploymentsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DeploymentsClientBeginUpdateOptions contains the optional parameters for the DeploymentsClient.BeginUpdate method.
type DeploymentsClientCreateOrUpdateResponse ¶ added in v0.3.0
type DeploymentsClientCreateOrUpdateResponse struct {
DeploymentResource
}
DeploymentsClientCreateOrUpdateResponse contains the response from method DeploymentsClient.BeginCreateOrUpdate.
type DeploymentsClientDeleteResponse ¶ added in v0.3.0
type DeploymentsClientDeleteResponse struct { }
DeploymentsClientDeleteResponse contains the response from method DeploymentsClient.BeginDelete.
type DeploymentsClientDisableRemoteDebuggingResponse ¶
type DeploymentsClientDisableRemoteDebuggingResponse struct {
RemoteDebugging
}
DeploymentsClientDisableRemoteDebuggingResponse contains the response from method DeploymentsClient.BeginDisableRemoteDebugging.
type DeploymentsClientEnableRemoteDebuggingResponse ¶
type DeploymentsClientEnableRemoteDebuggingResponse struct {
RemoteDebugging
}
DeploymentsClientEnableRemoteDebuggingResponse contains the response from method DeploymentsClient.BeginEnableRemoteDebugging.
type DeploymentsClientGenerateHeapDumpResponse ¶ added in v0.3.0
type DeploymentsClientGenerateHeapDumpResponse struct { }
DeploymentsClientGenerateHeapDumpResponse contains the response from method DeploymentsClient.BeginGenerateHeapDump.
type DeploymentsClientGenerateThreadDumpResponse ¶ added in v0.3.0
type DeploymentsClientGenerateThreadDumpResponse struct { }
DeploymentsClientGenerateThreadDumpResponse contains the response from method DeploymentsClient.BeginGenerateThreadDump.
type DeploymentsClientGetLogFileURLOptions ¶ added in v0.3.0
type DeploymentsClientGetLogFileURLOptions struct { }
DeploymentsClientGetLogFileURLOptions contains the optional parameters for the DeploymentsClient.GetLogFileURL method.
type DeploymentsClientGetLogFileURLResponse ¶ added in v0.3.0
type DeploymentsClientGetLogFileURLResponse struct {
LogFileURLResponse
}
DeploymentsClientGetLogFileURLResponse contains the response from method DeploymentsClient.GetLogFileURL.
type DeploymentsClientGetOptions ¶ added in v0.3.0
type DeploymentsClientGetOptions struct { }
DeploymentsClientGetOptions contains the optional parameters for the DeploymentsClient.Get method.
type DeploymentsClientGetRemoteDebuggingConfigOptions ¶
type DeploymentsClientGetRemoteDebuggingConfigOptions struct { }
DeploymentsClientGetRemoteDebuggingConfigOptions contains the optional parameters for the DeploymentsClient.GetRemoteDebuggingConfig method.
type DeploymentsClientGetRemoteDebuggingConfigResponse ¶
type DeploymentsClientGetRemoteDebuggingConfigResponse struct {
RemoteDebugging
}
DeploymentsClientGetRemoteDebuggingConfigResponse contains the response from method DeploymentsClient.GetRemoteDebuggingConfig.
type DeploymentsClientGetResponse ¶ added in v0.3.0
type DeploymentsClientGetResponse struct {
DeploymentResource
}
DeploymentsClientGetResponse contains the response from method DeploymentsClient.Get.
type DeploymentsClientListForClusterOptions ¶ added in v0.3.0
type DeploymentsClientListForClusterOptions struct { // Version of the deployments to be listed Version []string }
DeploymentsClientListForClusterOptions contains the optional parameters for the DeploymentsClient.NewListForClusterPager method.
type DeploymentsClientListForClusterResponse ¶ added in v0.3.0
type DeploymentsClientListForClusterResponse struct {
DeploymentResourceCollection
}
DeploymentsClientListForClusterResponse contains the response from method DeploymentsClient.NewListForClusterPager.
type DeploymentsClientListOptions ¶ added in v0.3.0
type DeploymentsClientListOptions struct { // Version of the deployments to be listed Version []string }
DeploymentsClientListOptions contains the optional parameters for the DeploymentsClient.NewListPager method.
type DeploymentsClientListResponse ¶ added in v0.3.0
type DeploymentsClientListResponse struct {
DeploymentResourceCollection
}
DeploymentsClientListResponse contains the response from method DeploymentsClient.NewListPager.
type DeploymentsClientRestartResponse ¶ added in v0.3.0
type DeploymentsClientRestartResponse struct { }
DeploymentsClientRestartResponse contains the response from method DeploymentsClient.BeginRestart.
type DeploymentsClientStartJFRResponse ¶ added in v0.3.0
type DeploymentsClientStartJFRResponse struct { }
DeploymentsClientStartJFRResponse contains the response from method DeploymentsClient.BeginStartJFR.
type DeploymentsClientStartResponse ¶ added in v0.3.0
type DeploymentsClientStartResponse struct { }
DeploymentsClientStartResponse contains the response from method DeploymentsClient.BeginStart.
type DeploymentsClientStopResponse ¶ added in v0.3.0
type DeploymentsClientStopResponse struct { }
DeploymentsClientStopResponse contains the response from method DeploymentsClient.BeginStop.
type DeploymentsClientUpdateResponse ¶ added in v0.3.0
type DeploymentsClientUpdateResponse struct {
DeploymentResource
}
DeploymentsClientUpdateResponse contains the response from method DeploymentsClient.BeginUpdate.
type DevToolPortalFeatureDetail ¶
type DevToolPortalFeatureDetail struct { // State of the plugin State *DevToolPortalFeatureState `json:"state,omitempty"` // READ-ONLY; Route path to visit the plugin Route *string `json:"route,omitempty" azure:"ro"` }
DevToolPortalFeatureDetail - Detail settings for Dev Tool Portal feature
func (DevToolPortalFeatureDetail) MarshalJSON ¶
func (d DevToolPortalFeatureDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevToolPortalFeatureDetail.
func (*DevToolPortalFeatureDetail) UnmarshalJSON ¶
func (d *DevToolPortalFeatureDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevToolPortalFeatureDetail.
type DevToolPortalFeatureSettings ¶
type DevToolPortalFeatureSettings struct { // Detail of Accelerator plugin ApplicationAccelerator *DevToolPortalFeatureDetail `json:"applicationAccelerator,omitempty"` // Detail of App Live View plugin ApplicationLiveView *DevToolPortalFeatureDetail `json:"applicationLiveView,omitempty"` }
DevToolPortalFeatureSettings - Settings for Dev Tool Portal
func (DevToolPortalFeatureSettings) MarshalJSON ¶
func (d DevToolPortalFeatureSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevToolPortalFeatureSettings.
func (*DevToolPortalFeatureSettings) UnmarshalJSON ¶
func (d *DevToolPortalFeatureSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevToolPortalFeatureSettings.
type DevToolPortalFeatureState ¶
type DevToolPortalFeatureState string
DevToolPortalFeatureState - State of the plugin
const ( // DevToolPortalFeatureStateDisabled - Disable the plugin in Dev Tool Portal. DevToolPortalFeatureStateDisabled DevToolPortalFeatureState = "Disabled" // DevToolPortalFeatureStateEnabled - Enable the plugin in Dev Tool Portal. DevToolPortalFeatureStateEnabled DevToolPortalFeatureState = "Enabled" )
func PossibleDevToolPortalFeatureStateValues ¶
func PossibleDevToolPortalFeatureStateValues() []DevToolPortalFeatureState
PossibleDevToolPortalFeatureStateValues returns the possible values for the DevToolPortalFeatureState const type.
type DevToolPortalInstance ¶
type DevToolPortalInstance struct { // READ-ONLY; Name of the Dev Tool Portal instance. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the Dev Tool Portal instance. It can be Pending, Running, Succeeded, Failed, Unknown. Status *string `json:"status,omitempty" azure:"ro"` }
DevToolPortalInstance - Collection of instances belong to the Dev Tool Portal.
func (DevToolPortalInstance) MarshalJSON ¶
func (d DevToolPortalInstance) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevToolPortalInstance.
func (*DevToolPortalInstance) UnmarshalJSON ¶
func (d *DevToolPortalInstance) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevToolPortalInstance.
type DevToolPortalProperties ¶
type DevToolPortalProperties struct { // Settings for Dev Tool Portal Features *DevToolPortalFeatureSettings `json:"features,omitempty"` // Indicates whether the resource exposes public endpoint Public *bool `json:"public,omitempty"` // Single sign-on related configuration SsoProperties *DevToolPortalSsoProperties `json:"ssoProperties,omitempty"` // READ-ONLY; Collection of instances belong to Dev Tool Portal. Instances []*DevToolPortalInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; State of the Dev Tool Portal. ProvisioningState *DevToolPortalProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The requested resource quantity for required CPU and Memory. ResourceRequests *DevToolPortalResourceRequests `json:"resourceRequests,omitempty" azure:"ro"` // READ-ONLY; URL of the resource, exposed when 'public' is true. URL *string `json:"url,omitempty" azure:"ro"` }
DevToolPortalProperties - Dev Tool Portal properties payload
func (DevToolPortalProperties) MarshalJSON ¶
func (d DevToolPortalProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevToolPortalProperties.
func (*DevToolPortalProperties) UnmarshalJSON ¶
func (d *DevToolPortalProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevToolPortalProperties.
type DevToolPortalProvisioningState ¶
type DevToolPortalProvisioningState string
DevToolPortalProvisioningState - State of the Dev Tool Portal.
const ( DevToolPortalProvisioningStateCanceled DevToolPortalProvisioningState = "Canceled" DevToolPortalProvisioningStateCreating DevToolPortalProvisioningState = "Creating" DevToolPortalProvisioningStateDeleting DevToolPortalProvisioningState = "Deleting" DevToolPortalProvisioningStateFailed DevToolPortalProvisioningState = "Failed" DevToolPortalProvisioningStateSucceeded DevToolPortalProvisioningState = "Succeeded" DevToolPortalProvisioningStateUpdating DevToolPortalProvisioningState = "Updating" )
func PossibleDevToolPortalProvisioningStateValues ¶
func PossibleDevToolPortalProvisioningStateValues() []DevToolPortalProvisioningState
PossibleDevToolPortalProvisioningStateValues returns the possible values for the DevToolPortalProvisioningState const type.
type DevToolPortalResource ¶
type DevToolPortalResource struct { // Dev Tool Portal properties payload Properties *DevToolPortalProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
DevToolPortalResource - Dev Tool Portal resource
func (DevToolPortalResource) MarshalJSON ¶
func (d DevToolPortalResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevToolPortalResource.
func (*DevToolPortalResource) UnmarshalJSON ¶
func (d *DevToolPortalResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevToolPortalResource.
type DevToolPortalResourceCollection ¶
type DevToolPortalResourceCollection 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 Dev Tool Portal resources Value []*DevToolPortalResource `json:"value,omitempty"` }
DevToolPortalResourceCollection - Object that includes an array of Dev Tool Portal resources and a possible link for next set
func (DevToolPortalResourceCollection) MarshalJSON ¶
func (d DevToolPortalResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevToolPortalResourceCollection.
func (*DevToolPortalResourceCollection) UnmarshalJSON ¶
func (d *DevToolPortalResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevToolPortalResourceCollection.
type DevToolPortalResourceRequests ¶
type DevToolPortalResourceRequests struct { // READ-ONLY; Cpu quantity allocated to each Dev Tool Portal instance. 1 core can be represented by 1 or 1000m CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Desired instance count of Dev Tool Portal. InstanceCount *int32 `json:"instanceCount,omitempty" azure:"ro"` // READ-ONLY; Memory quantity allocated to each Dev Tool Portal instance. 1 GB can be represented by 1Gi or 1024Mi. Memory *string `json:"memory,omitempty" azure:"ro"` }
DevToolPortalResourceRequests - The resource quantity for required CPU and Memory of Dev Tool Portal
func (DevToolPortalResourceRequests) MarshalJSON ¶
func (d DevToolPortalResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevToolPortalResourceRequests.
func (*DevToolPortalResourceRequests) UnmarshalJSON ¶
func (d *DevToolPortalResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevToolPortalResourceRequests.
type DevToolPortalSsoProperties ¶
type DevToolPortalSsoProperties struct { // The public identifier for the application ClientID *string `json:"clientId,omitempty"` // The secret known only to the application and the authorization server ClientSecret *string `json:"clientSecret,omitempty"` // The URI of a JSON file with generic OIDC provider configuration. MetadataURL *string `json:"metadataUrl,omitempty"` // It defines the specific actions applications can be allowed to do on a user's behalf Scopes []*string `json:"scopes,omitempty"` }
DevToolPortalSsoProperties - Single sign-on related configuration
func (DevToolPortalSsoProperties) MarshalJSON ¶
func (d DevToolPortalSsoProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevToolPortalSsoProperties.
func (*DevToolPortalSsoProperties) UnmarshalJSON ¶
func (d *DevToolPortalSsoProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevToolPortalSsoProperties.
type DevToolPortalsClient ¶
type DevToolPortalsClient struct {
// contains filtered or unexported fields
}
DevToolPortalsClient contains the methods for the DevToolPortals group. Don't use this type directly, use NewDevToolPortalsClient() instead.
func NewDevToolPortalsClient ¶
func NewDevToolPortalsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DevToolPortalsClient, error)
NewDevToolPortalsClient creates a new instance of DevToolPortalsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DevToolPortalsClient) BeginCreateOrUpdate ¶
func (client *DevToolPortalsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, devToolPortalName string, devToolPortalResource DevToolPortalResource, options *DevToolPortalsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DevToolPortalsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create the default Dev Tool Portal or update the existing Dev Tool Portal. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- devToolPortalName - The name of Dev Tool Portal.
- devToolPortalResource - Parameters for the create or update operation
- options - DevToolPortalsClientBeginCreateOrUpdateOptions contains the optional parameters for the DevToolPortalsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/DevToolPortals_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDevToolPortalsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", armappplatform.DevToolPortalResource{ Properties: &armappplatform.DevToolPortalProperties{ Features: &armappplatform.DevToolPortalFeatureSettings{ ApplicationAccelerator: &armappplatform.DevToolPortalFeatureDetail{ State: to.Ptr(armappplatform.DevToolPortalFeatureStateEnabled), }, ApplicationLiveView: &armappplatform.DevToolPortalFeatureDetail{ State: to.Ptr(armappplatform.DevToolPortalFeatureStateEnabled), }, }, Public: to.Ptr(true), SsoProperties: &armappplatform.DevToolPortalSsoProperties{ ClientID: to.Ptr("00000000-0000-0000-0000-000000000000"), ClientSecret: to.Ptr("xxxxx"), MetadataURL: to.Ptr("https://login.microsoft.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration"), Scopes: []*string{ to.Ptr("openid")}, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DevToolPortalResource = armappplatform.DevToolPortalResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationLiveViews"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationLiveViews/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DevToolPortalProperties{ // Features: &armappplatform.DevToolPortalFeatureSettings{ // ApplicationAccelerator: &armappplatform.DevToolPortalFeatureDetail{ // Route: to.Ptr("create"), // State: to.Ptr(armappplatform.DevToolPortalFeatureStateEnabled), // }, // ApplicationLiveView: &armappplatform.DevToolPortalFeatureDetail{ // Route: to.Ptr("appliveview"), // State: to.Ptr(armappplatform.DevToolPortalFeatureStateEnabled), // }, // }, // Instances: []*armappplatform.DevToolPortalInstance{ // { // Name: to.Ptr("app-live-view-server-name"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DevToolPortalProvisioningStateSucceeded), // Public: to.Ptr(true), // ResourceRequests: &armappplatform.DevToolPortalResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("1Gi"), // }, // SsoProperties: &armappplatform.DevToolPortalSsoProperties{ // ClientID: to.Ptr("00000000-0000-0000-0000-000000000000"), // MetadataURL: to.Ptr("https://login.microsoft.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration"), // Scopes: []*string{ // to.Ptr("openid")}, // }, // URL: to.Ptr("aaa.com"), // }, // } }
Output:
func (*DevToolPortalsClient) BeginDelete ¶
func (client *DevToolPortalsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, devToolPortalName string, options *DevToolPortalsClientBeginDeleteOptions) (*runtime.Poller[DevToolPortalsClientDeleteResponse], error)
BeginDelete - Disable the default Dev Tool Portal. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- devToolPortalName - The name of Dev Tool Portal.
- options - DevToolPortalsClientBeginDeleteOptions contains the optional parameters for the DevToolPortalsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/DevToolPortal_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDevToolPortalsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DevToolPortalsClient) Get ¶
func (client *DevToolPortalsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, devToolPortalName string, options *DevToolPortalsClientGetOptions) (DevToolPortalsClientGetResponse, error)
Get - Get the Application Live and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- devToolPortalName - The name of Dev Tool Portal.
- options - DevToolPortalsClientGetOptions contains the optional parameters for the DevToolPortalsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/DevToolPortals_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDevToolPortalsClient().Get(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DevToolPortalResource = armappplatform.DevToolPortalResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationLiveViews"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationLiveViews/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DevToolPortalProperties{ // Features: &armappplatform.DevToolPortalFeatureSettings{ // ApplicationAccelerator: &armappplatform.DevToolPortalFeatureDetail{ // Route: to.Ptr("create"), // State: to.Ptr(armappplatform.DevToolPortalFeatureStateEnabled), // }, // ApplicationLiveView: &armappplatform.DevToolPortalFeatureDetail{ // Route: to.Ptr("appliveview"), // State: to.Ptr(armappplatform.DevToolPortalFeatureStateEnabled), // }, // }, // Instances: []*armappplatform.DevToolPortalInstance{ // { // Name: to.Ptr("app-live-view-server-name"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DevToolPortalProvisioningStateSucceeded), // Public: to.Ptr(true), // ResourceRequests: &armappplatform.DevToolPortalResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("1Gi"), // }, // SsoProperties: &armappplatform.DevToolPortalSsoProperties{ // ClientID: to.Ptr("00000000-0000-0000-0000-000000000000"), // MetadataURL: to.Ptr("https://login.microsoft.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration"), // Scopes: []*string{ // to.Ptr("openid")}, // }, // URL: to.Ptr("aaa.com"), // }, // } }
Output:
func (*DevToolPortalsClient) NewListPager ¶
func (client *DevToolPortalsClient) NewListPager(resourceGroupName string, serviceName string, options *DevToolPortalsClientListOptions) *runtime.Pager[DevToolPortalsClientListResponse]
NewListPager - Handles requests to list all resources in a Service.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - DevToolPortalsClientListOptions contains the optional parameters for the DevToolPortalsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/DevToolPortals_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDevToolPortalsClient().NewListPager("myResourceGroup", "myservice", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DevToolPortalResourceCollection = armappplatform.DevToolPortalResourceCollection{ // Value: []*armappplatform.DevToolPortalResource{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationLiveViews"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationLiveViews/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.DevToolPortalProperties{ // Features: &armappplatform.DevToolPortalFeatureSettings{ // ApplicationAccelerator: &armappplatform.DevToolPortalFeatureDetail{ // Route: to.Ptr("create"), // State: to.Ptr(armappplatform.DevToolPortalFeatureStateEnabled), // }, // ApplicationLiveView: &armappplatform.DevToolPortalFeatureDetail{ // Route: to.Ptr("appliveview"), // State: to.Ptr(armappplatform.DevToolPortalFeatureStateEnabled), // }, // }, // Instances: []*armappplatform.DevToolPortalInstance{ // { // Name: to.Ptr("app-live-view-server-name"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.DevToolPortalProvisioningStateSucceeded), // Public: to.Ptr(true), // ResourceRequests: &armappplatform.DevToolPortalResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](1), // Memory: to.Ptr("1Gi"), // }, // SsoProperties: &armappplatform.DevToolPortalSsoProperties{ // ClientID: to.Ptr("00000000-0000-0000-0000-000000000000"), // MetadataURL: to.Ptr("https://login.microsoft.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration"), // Scopes: []*string{ // to.Ptr("openid")}, // }, // URL: to.Ptr("aaa.com"), // }, // }}, // } } }
Output:
type DevToolPortalsClientBeginCreateOrUpdateOptions ¶
type DevToolPortalsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DevToolPortalsClientBeginCreateOrUpdateOptions contains the optional parameters for the DevToolPortalsClient.BeginCreateOrUpdate method.
type DevToolPortalsClientBeginDeleteOptions ¶
type DevToolPortalsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DevToolPortalsClientBeginDeleteOptions contains the optional parameters for the DevToolPortalsClient.BeginDelete method.
type DevToolPortalsClientCreateOrUpdateResponse ¶
type DevToolPortalsClientCreateOrUpdateResponse struct {
DevToolPortalResource
}
DevToolPortalsClientCreateOrUpdateResponse contains the response from method DevToolPortalsClient.BeginCreateOrUpdate.
type DevToolPortalsClientDeleteResponse ¶
type DevToolPortalsClientDeleteResponse struct { }
DevToolPortalsClientDeleteResponse contains the response from method DevToolPortalsClient.BeginDelete.
type DevToolPortalsClientGetOptions ¶
type DevToolPortalsClientGetOptions struct { }
DevToolPortalsClientGetOptions contains the optional parameters for the DevToolPortalsClient.Get method.
type DevToolPortalsClientGetResponse ¶
type DevToolPortalsClientGetResponse struct {
DevToolPortalResource
}
DevToolPortalsClientGetResponse contains the response from method DevToolPortalsClient.Get.
type DevToolPortalsClientListOptions ¶
type DevToolPortalsClientListOptions struct { }
DevToolPortalsClientListOptions contains the optional parameters for the DevToolPortalsClient.NewListPager method.
type DevToolPortalsClientListResponse ¶
type DevToolPortalsClientListResponse struct {
DevToolPortalResourceCollection
}
DevToolPortalsClientListResponse contains the response from method DevToolPortalsClient.NewListPager.
type DiagnosticParameters ¶ added in v0.2.0
type DiagnosticParameters struct { // App instance name AppInstance *string `json:"appInstance,omitempty"` // Duration of your JFR. 1 min can be represented by 1m or 60s. Duration *string `json:"duration,omitempty"` // Your target file path in your own BYOS FilePath *string `json:"filePath,omitempty"` }
DiagnosticParameters - Diagnostic parameters of diagnostic operations
func (DiagnosticParameters) MarshalJSON ¶ added in v1.1.0
func (d DiagnosticParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DiagnosticParameters.
func (*DiagnosticParameters) UnmarshalJSON ¶ added in v1.1.0
func (d *DiagnosticParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticParameters.
type Error ¶
type Error struct { // The code of error. Code *string `json:"code,omitempty"` // The message of error. Message *string `json:"message,omitempty"` }
Error - The error code compose of code and message.
func (Error) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Error.
func (*Error) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Error.
type ExecAction ¶
type ExecAction struct { // REQUIRED; The type of the action to take to perform the health check. Type *ProbeActionType `json:"type,omitempty"` // Command is the command line to execute inside the container, the working directory for the command is root ('/') in the // container's filesystem. The command is not run inside a shell, so traditional // shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of // 0 is treated as live/healthy and non-zero is unhealthy. Command []*string `json:"command,omitempty"` }
ExecAction describes a "run in container" action.
func (*ExecAction) GetProbeAction ¶
func (e *ExecAction) GetProbeAction() *ProbeAction
GetProbeAction implements the ProbeActionClassification interface for type ExecAction.
func (ExecAction) MarshalJSON ¶
func (e ExecAction) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExecAction.
func (*ExecAction) UnmarshalJSON ¶
func (e *ExecAction) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ExecAction.
type GatewayAPIMetadataProperties ¶ added in v0.3.0
type GatewayAPIMetadataProperties struct { // Detailed description of the APIs available on the Gateway instance (default: Generated OpenAPI 3 document that describes // the API routes configured.) Description *string `json:"description,omitempty"` // Location of additional documentation for the APIs available on the Gateway instance Documentation *string `json:"documentation,omitempty"` // Base URL that API consumers will use to access APIs on the Gateway instance. ServerURL *string `json:"serverUrl,omitempty"` // Title describing the context of the APIs available on the Gateway instance (default: Spring Cloud Gateway for K8S) Title *string `json:"title,omitempty"` // Version of APIs available on this Gateway instance (default: unspecified). Version *string `json:"version,omitempty"` }
GatewayAPIMetadataProperties - API metadata property for Spring Cloud Gateway
func (GatewayAPIMetadataProperties) MarshalJSON ¶
func (g GatewayAPIMetadataProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayAPIMetadataProperties.
func (*GatewayAPIMetadataProperties) UnmarshalJSON ¶
func (g *GatewayAPIMetadataProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayAPIMetadataProperties.
type GatewayAPIRoute ¶ added in v0.3.0
type GatewayAPIRoute struct { // A description, will be applied to methods in the generated OpenAPI documentation. Description *string `json:"description,omitempty"` // To modify the request before sending it to the target endpoint, or the received response. Filters []*string `json:"filters,omitempty"` // Route processing order. Order *int32 `json:"order,omitempty"` // A number of conditions to evaluate a route for each request. Each predicate may be evaluated against request headers and // parameter values. All of the predicates associated with a route must evaluate // to true for the route to be matched to the request. Predicates []*string `json:"predicates,omitempty"` // Enable sso validation. SsoEnabled *bool `json:"ssoEnabled,omitempty"` // Classification tags, will be applied to methods in the generated OpenAPI documentation. Tags []*string `json:"tags,omitempty"` // A title, will be applied to methods in the generated OpenAPI documentation. Title *string `json:"title,omitempty"` // Pass currently-authenticated user's identity token to application service, default is 'false' TokenRelay *bool `json:"tokenRelay,omitempty"` // Full uri, will override appName. URI *string `json:"uri,omitempty"` }
GatewayAPIRoute - API route config of the Spring Cloud Gateway
func (GatewayAPIRoute) MarshalJSON ¶ added in v0.3.0
func (g GatewayAPIRoute) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayAPIRoute.
func (*GatewayAPIRoute) UnmarshalJSON ¶
func (g *GatewayAPIRoute) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayAPIRoute.
type GatewayCorsProperties ¶ added in v0.3.0
type GatewayCorsProperties struct { // Whether user credentials are supported on cross-site requests. Valid values: true, false. AllowCredentials *bool `json:"allowCredentials,omitempty"` // Allowed headers in cross-site requests. The special value * allows actual requests to send any header. AllowedHeaders []*string `json:"allowedHeaders,omitempty"` // Allowed HTTP methods on cross-site requests. The special value * allows all methods. If not set, GET and HEAD are allowed // by default. AllowedMethods []*string `json:"allowedMethods,omitempty"` // Allowed origins to make cross-site requests. The special value * allows all domains. AllowedOrigins []*string `json:"allowedOrigins,omitempty"` // HTTP response headers to expose for cross-site requests. ExposedHeaders []*string `json:"exposedHeaders,omitempty"` // How long, in seconds, the response from a pre-flight request can be cached by clients. MaxAge *int32 `json:"maxAge,omitempty"` }
GatewayCorsProperties - Cross-Origin Resource Sharing property
func (GatewayCorsProperties) MarshalJSON ¶ added in v0.3.0
func (g GatewayCorsProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayCorsProperties.
func (*GatewayCorsProperties) UnmarshalJSON ¶
func (g *GatewayCorsProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayCorsProperties.
type GatewayCustomDomainProperties ¶ added in v0.3.0
type GatewayCustomDomainProperties struct { // The thumbprint of bound certificate. Thumbprint *string `json:"thumbprint,omitempty"` }
GatewayCustomDomainProperties - The properties of custom domain for Spring Cloud Gateway
func (GatewayCustomDomainProperties) MarshalJSON ¶
func (g GatewayCustomDomainProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayCustomDomainProperties.
func (*GatewayCustomDomainProperties) UnmarshalJSON ¶
func (g *GatewayCustomDomainProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayCustomDomainProperties.
type GatewayCustomDomainResource ¶ added in v0.3.0
type GatewayCustomDomainResource struct { // The properties of custom domain for Spring Cloud Gateway Properties *GatewayCustomDomainProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
GatewayCustomDomainResource - Custom domain of the Spring Cloud Gateway
func (GatewayCustomDomainResource) MarshalJSON ¶
func (g GatewayCustomDomainResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayCustomDomainResource.
func (*GatewayCustomDomainResource) UnmarshalJSON ¶
func (g *GatewayCustomDomainResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayCustomDomainResource.
type GatewayCustomDomainResourceCollection ¶ added in v0.3.0
type GatewayCustomDomainResourceCollection 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 Spring Cloud Gateway custom domain resources Value []*GatewayCustomDomainResource `json:"value,omitempty"` }
GatewayCustomDomainResourceCollection - Object that includes an array of Spring Cloud Gateway custom domain resources and a possible link for next set
func (GatewayCustomDomainResourceCollection) MarshalJSON ¶ added in v0.3.0
func (g GatewayCustomDomainResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayCustomDomainResourceCollection.
func (*GatewayCustomDomainResourceCollection) UnmarshalJSON ¶
func (g *GatewayCustomDomainResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayCustomDomainResourceCollection.
type GatewayCustomDomainsClient ¶ added in v0.3.0
type GatewayCustomDomainsClient struct {
// contains filtered or unexported fields
}
GatewayCustomDomainsClient contains the methods for the GatewayCustomDomains group. Don't use this type directly, use NewGatewayCustomDomainsClient() instead.
func NewGatewayCustomDomainsClient ¶ added in v0.3.0
func NewGatewayCustomDomainsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GatewayCustomDomainsClient, error)
NewGatewayCustomDomainsClient creates a new instance of GatewayCustomDomainsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*GatewayCustomDomainsClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *GatewayCustomDomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, domainName string, gatewayCustomDomainResource GatewayCustomDomainResource, options *GatewayCustomDomainsClientBeginCreateOrUpdateOptions) (*runtime.Poller[GatewayCustomDomainsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the Spring Cloud Gateway custom domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- domainName - The name of the Spring Cloud Gateway custom domain.
- gatewayCustomDomainResource - The gateway custom domain resource for the create or update operation
- options - GatewayCustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewayCustomDomainsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/GatewayCustomDomains_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewGatewayCustomDomainsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", "myDomainName", armappplatform.GatewayCustomDomainResource{ Properties: &armappplatform.GatewayCustomDomainProperties{ Thumbprint: to.Ptr("*"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.GatewayCustomDomainResource = armappplatform.GatewayCustomDomainResource{ // Name: to.Ptr("myDomainName"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/gateways/domains"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default/domains/myDomainName"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.GatewayCustomDomainProperties{ // Thumbprint: to.Ptr("*"), // }, // } }
Output:
func (*GatewayCustomDomainsClient) BeginDelete ¶ added in v0.3.0
func (client *GatewayCustomDomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, domainName string, options *GatewayCustomDomainsClientBeginDeleteOptions) (*runtime.Poller[GatewayCustomDomainsClientDeleteResponse], error)
BeginDelete - Delete the Spring Cloud Gateway custom domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- domainName - The name of the Spring Cloud Gateway custom domain.
- options - GatewayCustomDomainsClientBeginDeleteOptions contains the optional parameters for the GatewayCustomDomainsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/GatewayCustomDomains_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewGatewayCustomDomainsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", "myDomainName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*GatewayCustomDomainsClient) Get ¶ added in v0.3.0
func (client *GatewayCustomDomainsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, domainName string, options *GatewayCustomDomainsClientGetOptions) (GatewayCustomDomainsClientGetResponse, error)
Get - Get the Spring Cloud Gateway custom domain. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- domainName - The name of the Spring Cloud Gateway custom domain.
- options - GatewayCustomDomainsClientGetOptions contains the optional parameters for the GatewayCustomDomainsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/GatewayCustomDomains_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewGatewayCustomDomainsClient().Get(ctx, "myResourceGroup", "myservice", "default", "myDomainName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.GatewayCustomDomainResource = armappplatform.GatewayCustomDomainResource{ // Name: to.Ptr("myDomainName"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/gateways/domains"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default/domains/myDomainName"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.GatewayCustomDomainProperties{ // Thumbprint: to.Ptr("*"), // }, // } }
Output:
func (*GatewayCustomDomainsClient) NewListPager ¶ added in v0.5.0
func (client *GatewayCustomDomainsClient) NewListPager(resourceGroupName string, serviceName string, gatewayName string, options *GatewayCustomDomainsClientListOptions) *runtime.Pager[GatewayCustomDomainsClientListResponse]
NewListPager - Handle requests to list all Spring Cloud Gateway custom domains.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- options - GatewayCustomDomainsClientListOptions contains the optional parameters for the GatewayCustomDomainsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/GatewayCustomDomains_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewGatewayCustomDomainsClient().NewListPager("myResourceGroup", "myservice", "default", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.GatewayCustomDomainResourceCollection = armappplatform.GatewayCustomDomainResourceCollection{ // Value: []*armappplatform.GatewayCustomDomainResource{ // { // Name: to.Ptr("myDomain"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/gateways/domains"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default/domains/myDomain"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.GatewayCustomDomainProperties{ // Thumbprint: to.Ptr("*"), // }, // }}, // } } }
Output:
type GatewayCustomDomainsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type GatewayCustomDomainsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
GatewayCustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewayCustomDomainsClient.BeginCreateOrUpdate method.
type GatewayCustomDomainsClientBeginDeleteOptions ¶ added in v0.3.0
type GatewayCustomDomainsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
GatewayCustomDomainsClientBeginDeleteOptions contains the optional parameters for the GatewayCustomDomainsClient.BeginDelete method.
type GatewayCustomDomainsClientCreateOrUpdateResponse ¶ added in v0.3.0
type GatewayCustomDomainsClientCreateOrUpdateResponse struct {
GatewayCustomDomainResource
}
GatewayCustomDomainsClientCreateOrUpdateResponse contains the response from method GatewayCustomDomainsClient.BeginCreateOrUpdate.
type GatewayCustomDomainsClientDeleteResponse ¶ added in v0.3.0
type GatewayCustomDomainsClientDeleteResponse struct { }
GatewayCustomDomainsClientDeleteResponse contains the response from method GatewayCustomDomainsClient.BeginDelete.
type GatewayCustomDomainsClientGetOptions ¶ added in v0.3.0
type GatewayCustomDomainsClientGetOptions struct { }
GatewayCustomDomainsClientGetOptions contains the optional parameters for the GatewayCustomDomainsClient.Get method.
type GatewayCustomDomainsClientGetResponse ¶ added in v0.3.0
type GatewayCustomDomainsClientGetResponse struct {
GatewayCustomDomainResource
}
GatewayCustomDomainsClientGetResponse contains the response from method GatewayCustomDomainsClient.Get.
type GatewayCustomDomainsClientListOptions ¶ added in v0.3.0
type GatewayCustomDomainsClientListOptions struct { }
GatewayCustomDomainsClientListOptions contains the optional parameters for the GatewayCustomDomainsClient.NewListPager method.
type GatewayCustomDomainsClientListResponse ¶ added in v0.3.0
type GatewayCustomDomainsClientListResponse struct {
GatewayCustomDomainResourceCollection
}
GatewayCustomDomainsClientListResponse contains the response from method GatewayCustomDomainsClient.NewListPager.
type GatewayInstance ¶ added in v0.3.0
type GatewayInstance struct { // READ-ONLY; Name of the Spring Cloud Gateway instance Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the Spring Cloud Gateway instance Status *string `json:"status,omitempty" azure:"ro"` }
GatewayInstance - Collection of instances belong to the Spring Cloud Gateway
func (GatewayInstance) MarshalJSON ¶
func (g GatewayInstance) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayInstance.
func (*GatewayInstance) UnmarshalJSON ¶
func (g *GatewayInstance) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayInstance.
type GatewayOperatorProperties ¶ added in v0.3.0
type GatewayOperatorProperties struct { // READ-ONLY; Collection of instances belong to Spring Cloud Gateway operator. Instances []*GatewayInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; The requested resource quantity for required CPU and Memory. ResourceRequests *GatewayOperatorResourceRequests `json:"resourceRequests,omitempty" azure:"ro"` }
GatewayOperatorProperties - Properties of the Spring Cloud Gateway Operator.
func (GatewayOperatorProperties) MarshalJSON ¶ added in v0.3.0
func (g GatewayOperatorProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayOperatorProperties.
func (*GatewayOperatorProperties) UnmarshalJSON ¶
func (g *GatewayOperatorProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayOperatorProperties.
type GatewayOperatorResourceRequests ¶ added in v0.3.0
type GatewayOperatorResourceRequests struct { // READ-ONLY; Cpu allocated to each Spring Cloud Gateway Operator instance. CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Instance count of the Spring Cloud Gateway Operator. InstanceCount *int32 `json:"instanceCount,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to each Spring Cloud Gateway Operator instance. Memory *string `json:"memory,omitempty" azure:"ro"` }
GatewayOperatorResourceRequests - Properties of the Spring Cloud Gateway Operator.
func (GatewayOperatorResourceRequests) MarshalJSON ¶
func (g GatewayOperatorResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayOperatorResourceRequests.
func (*GatewayOperatorResourceRequests) UnmarshalJSON ¶
func (g *GatewayOperatorResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayOperatorResourceRequests.
type GatewayProperties ¶ added in v0.3.0
type GatewayProperties struct { // API metadata property for Spring Cloud Gateway APIMetadataProperties *GatewayAPIMetadataProperties `json:"apiMetadataProperties,omitempty"` // Collection of APM type used in Spring Cloud Gateway ApmTypes []*ApmType `json:"apmTypes,omitempty"` // Cross-Origin Resource Sharing property CorsProperties *GatewayCorsProperties `json:"corsProperties,omitempty"` // Environment variables of Spring Cloud Gateway EnvironmentVariables *GatewayPropertiesEnvironmentVariables `json:"environmentVariables,omitempty"` // Indicate if only https is allowed. HTTPSOnly *bool `json:"httpsOnly,omitempty"` // Indicates whether the Spring Cloud Gateway exposes endpoint. Public *bool `json:"public,omitempty"` // The requested resource quantity for required CPU and Memory. ResourceRequests *GatewayResourceRequests `json:"resourceRequests,omitempty"` // Single sign-on related configuration SsoProperties *SsoProperties `json:"ssoProperties,omitempty"` // READ-ONLY; Collection of instances belong to Spring Cloud Gateway. Instances []*GatewayInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; Properties of the Spring Cloud Gateway Operator. OperatorProperties *GatewayOperatorProperties `json:"operatorProperties,omitempty" azure:"ro"` // READ-ONLY; State of the Spring Cloud Gateway. ProvisioningState *GatewayProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; URL of the Spring Cloud Gateway, exposed when 'public' is true. URL *string `json:"url,omitempty" azure:"ro"` }
GatewayProperties - Spring Cloud Gateway properties payload
func (GatewayProperties) MarshalJSON ¶ added in v0.3.0
func (g GatewayProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayProperties.
func (*GatewayProperties) UnmarshalJSON ¶
func (g *GatewayProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayProperties.
type GatewayPropertiesEnvironmentVariables ¶
type GatewayPropertiesEnvironmentVariables struct { // Non-sensitive properties Properties map[string]*string `json:"properties,omitempty"` // Sensitive properties Secrets map[string]*string `json:"secrets,omitempty"` }
GatewayPropertiesEnvironmentVariables - Environment variables of Spring Cloud Gateway
func (GatewayPropertiesEnvironmentVariables) MarshalJSON ¶
func (g GatewayPropertiesEnvironmentVariables) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayPropertiesEnvironmentVariables.
func (*GatewayPropertiesEnvironmentVariables) UnmarshalJSON ¶
func (g *GatewayPropertiesEnvironmentVariables) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayPropertiesEnvironmentVariables.
type GatewayProvisioningState ¶ added in v0.3.0
type GatewayProvisioningState string
GatewayProvisioningState - State of the Spring Cloud Gateway.
const ( GatewayProvisioningStateCreating GatewayProvisioningState = "Creating" GatewayProvisioningStateDeleting GatewayProvisioningState = "Deleting" GatewayProvisioningStateFailed GatewayProvisioningState = "Failed" GatewayProvisioningStateSucceeded GatewayProvisioningState = "Succeeded" GatewayProvisioningStateUpdating GatewayProvisioningState = "Updating" )
func PossibleGatewayProvisioningStateValues ¶ added in v0.3.0
func PossibleGatewayProvisioningStateValues() []GatewayProvisioningState
PossibleGatewayProvisioningStateValues returns the possible values for the GatewayProvisioningState const type.
type GatewayResource ¶ added in v0.3.0
type GatewayResource struct { // Spring Cloud Gateway properties payload Properties *GatewayProperties `json:"properties,omitempty"` // Sku of the Spring Cloud Gateway resource SKU *SKU `json:"sku,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
GatewayResource - Spring Cloud Gateway resource
func (GatewayResource) MarshalJSON ¶
func (g GatewayResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayResource.
func (*GatewayResource) UnmarshalJSON ¶
func (g *GatewayResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayResource.
type GatewayResourceCollection ¶ added in v0.3.0
type GatewayResourceCollection 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 gateway resources Value []*GatewayResource `json:"value,omitempty"` }
GatewayResourceCollection - Object that includes an array of gateway resources and a possible link for next set
func (GatewayResourceCollection) MarshalJSON ¶ added in v0.3.0
func (g GatewayResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayResourceCollection.
func (*GatewayResourceCollection) UnmarshalJSON ¶
func (g *GatewayResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayResourceCollection.
type GatewayResourceRequests ¶ added in v0.3.0
type GatewayResourceRequests struct { // Cpu allocated to each Spring Cloud Gateway instance. CPU *string `json:"cpu,omitempty"` // Memory allocated to each Spring Cloud Gateway instance. Memory *string `json:"memory,omitempty"` }
GatewayResourceRequests - Resource request payload of Spring Cloud Gateway.
func (GatewayResourceRequests) MarshalJSON ¶
func (g GatewayResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayResourceRequests.
func (*GatewayResourceRequests) UnmarshalJSON ¶
func (g *GatewayResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayResourceRequests.
type GatewayRouteConfigOpenAPIProperties ¶
type GatewayRouteConfigOpenAPIProperties struct { // The URI of OpenAPI specification. URI *string `json:"uri,omitempty"` }
GatewayRouteConfigOpenAPIProperties - OpenAPI properties of Spring Cloud Gateway route config.
func (GatewayRouteConfigOpenAPIProperties) MarshalJSON ¶
func (g GatewayRouteConfigOpenAPIProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayRouteConfigOpenAPIProperties.
func (*GatewayRouteConfigOpenAPIProperties) UnmarshalJSON ¶
func (g *GatewayRouteConfigOpenAPIProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayRouteConfigOpenAPIProperties.
type GatewayRouteConfigProperties ¶ added in v0.3.0
type GatewayRouteConfigProperties struct { // The resource Id of the Azure Spring Apps app, required unless route defines uri. AppResourceID *string `json:"appResourceId,omitempty"` // To modify the request before sending it to the target endpoint, or the received response in app level. Filters []*string `json:"filters,omitempty"` // OpenAPI properties of Spring Cloud Gateway route config. OpenAPI *GatewayRouteConfigOpenAPIProperties `json:"openApi,omitempty"` // A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request // headers and parameter values. All of the predicates associated with a route // must evaluate to true for the route to be matched to the request. Predicates []*string `json:"predicates,omitempty"` // Protocol of routed Azure Spring Apps applications. Protocol *GatewayRouteConfigProtocol `json:"protocol,omitempty"` // Array of API routes, each route contains properties such as title, uri, ssoEnabled, predicates, filters. Routes []*GatewayAPIRoute `json:"routes,omitempty"` // Enable Single Sign-On in app level. SsoEnabled *bool `json:"ssoEnabled,omitempty"` // READ-ONLY; State of the Spring Cloud Gateway route config. ProvisioningState *GatewayProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
GatewayRouteConfigProperties - API route config of the Spring Cloud Gateway
func (GatewayRouteConfigProperties) MarshalJSON ¶ added in v0.3.0
func (g GatewayRouteConfigProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayRouteConfigProperties.
func (*GatewayRouteConfigProperties) UnmarshalJSON ¶
func (g *GatewayRouteConfigProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayRouteConfigProperties.
type GatewayRouteConfigProtocol ¶
type GatewayRouteConfigProtocol string
GatewayRouteConfigProtocol - Protocol of routed Azure Spring Apps applications.
const ( GatewayRouteConfigProtocolHTTP GatewayRouteConfigProtocol = "HTTP" GatewayRouteConfigProtocolHTTPS GatewayRouteConfigProtocol = "HTTPS" )
func PossibleGatewayRouteConfigProtocolValues ¶
func PossibleGatewayRouteConfigProtocolValues() []GatewayRouteConfigProtocol
PossibleGatewayRouteConfigProtocolValues returns the possible values for the GatewayRouteConfigProtocol const type.
type GatewayRouteConfigResource ¶ added in v0.3.0
type GatewayRouteConfigResource struct { // API route config of the Spring Cloud Gateway Properties *GatewayRouteConfigProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
GatewayRouteConfigResource - Spring Cloud Gateway route config resource
func (GatewayRouteConfigResource) MarshalJSON ¶
func (g GatewayRouteConfigResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayRouteConfigResource.
func (*GatewayRouteConfigResource) UnmarshalJSON ¶
func (g *GatewayRouteConfigResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayRouteConfigResource.
type GatewayRouteConfigResourceCollection ¶ added in v0.3.0
type GatewayRouteConfigResourceCollection 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 Spring Cloud Gateway route config resources Value []*GatewayRouteConfigResource `json:"value,omitempty"` }
GatewayRouteConfigResourceCollection - Object that includes an array of Spring Cloud Gateway route config resources and a possible link for next set
func (GatewayRouteConfigResourceCollection) MarshalJSON ¶ added in v0.3.0
func (g GatewayRouteConfigResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GatewayRouteConfigResourceCollection.
func (*GatewayRouteConfigResourceCollection) UnmarshalJSON ¶
func (g *GatewayRouteConfigResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GatewayRouteConfigResourceCollection.
type GatewayRouteConfigsClient ¶ added in v0.3.0
type GatewayRouteConfigsClient struct {
// contains filtered or unexported fields
}
GatewayRouteConfigsClient contains the methods for the GatewayRouteConfigs group. Don't use this type directly, use NewGatewayRouteConfigsClient() instead.
func NewGatewayRouteConfigsClient ¶ added in v0.3.0
func NewGatewayRouteConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GatewayRouteConfigsClient, error)
NewGatewayRouteConfigsClient creates a new instance of GatewayRouteConfigsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*GatewayRouteConfigsClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *GatewayRouteConfigsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, routeConfigName string, gatewayRouteConfigResource GatewayRouteConfigResource, options *GatewayRouteConfigsClientBeginCreateOrUpdateOptions) (*runtime.Poller[GatewayRouteConfigsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- routeConfigName - The name of the Spring Cloud Gateway route config.
- gatewayRouteConfigResource - The Spring Cloud Gateway route config for the create or update operation
- options - GatewayRouteConfigsClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewayRouteConfigsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/GatewayRouteConfigs_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewGatewayRouteConfigsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", "myRouteConfig", armappplatform.GatewayRouteConfigResource{ Properties: &armappplatform.GatewayRouteConfigProperties{ AppResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myApp"), OpenAPI: &armappplatform.GatewayRouteConfigOpenAPIProperties{ URI: to.Ptr("https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"), }, Routes: []*armappplatform.GatewayAPIRoute{ { Filters: []*string{ to.Ptr("StripPrefix=2"), to.Ptr("RateLimit=1,1s")}, Predicates: []*string{ to.Ptr("Path=/api5/customer/**")}, SsoEnabled: to.Ptr(true), Title: to.Ptr("myApp route config"), }}, Protocol: to.Ptr(armappplatform.GatewayRouteConfigProtocolHTTPS), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.GatewayRouteConfigResource = armappplatform.GatewayRouteConfigResource{ // Name: to.Ptr("myRouteConfig"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/gateways/routeConfigs"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default/routeConfigs/myRouteConfig"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.GatewayRouteConfigProperties{ // AppResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myApp"), // OpenAPI: &armappplatform.GatewayRouteConfigOpenAPIProperties{ // URI: to.Ptr("https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"), // }, // ProvisioningState: to.Ptr(armappplatform.GatewayProvisioningStateSucceeded), // Routes: []*armappplatform.GatewayAPIRoute{ // { // Filters: []*string{ // to.Ptr("StripPrefix=2"), // to.Ptr("RateLimit=1,1s")}, // Predicates: []*string{ // to.Ptr("Path=/api5/customer/**")}, // SsoEnabled: to.Ptr(true), // Title: to.Ptr("myApp route config"), // }}, // Protocol: to.Ptr(armappplatform.GatewayRouteConfigProtocolHTTPS), // }, // } }
Output:
func (*GatewayRouteConfigsClient) BeginDelete ¶ added in v0.3.0
func (client *GatewayRouteConfigsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, routeConfigName string, options *GatewayRouteConfigsClientBeginDeleteOptions) (*runtime.Poller[GatewayRouteConfigsClientDeleteResponse], error)
BeginDelete - Delete the Spring Cloud Gateway route config. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- routeConfigName - The name of the Spring Cloud Gateway route config.
- options - GatewayRouteConfigsClientBeginDeleteOptions contains the optional parameters for the GatewayRouteConfigsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/GatewayRouteConfigs_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewGatewayRouteConfigsClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", "myRouteConfig", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*GatewayRouteConfigsClient) Get ¶ added in v0.3.0
func (client *GatewayRouteConfigsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, routeConfigName string, options *GatewayRouteConfigsClientGetOptions) (GatewayRouteConfigsClientGetResponse, error)
Get - Get the Spring Cloud Gateway route configs. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- routeConfigName - The name of the Spring Cloud Gateway route config.
- options - GatewayRouteConfigsClientGetOptions contains the optional parameters for the GatewayRouteConfigsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/GatewayRouteConfigs_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewGatewayRouteConfigsClient().Get(ctx, "myResourceGroup", "myservice", "default", "myRouteConfig", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.GatewayRouteConfigResource = armappplatform.GatewayRouteConfigResource{ // Name: to.Ptr("myRouteConfig"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/gateways/routeConfigs"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default/routeConfigs/myRouteConfig"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.GatewayRouteConfigProperties{ // AppResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myApp"), // OpenAPI: &armappplatform.GatewayRouteConfigOpenAPIProperties{ // URI: to.Ptr("https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"), // }, // ProvisioningState: to.Ptr(armappplatform.GatewayProvisioningStateSucceeded), // Routes: []*armappplatform.GatewayAPIRoute{ // { // Filters: []*string{ // to.Ptr("StripPrefix=2"), // to.Ptr("RateLimit=1,1s")}, // Predicates: []*string{ // to.Ptr("Path=/api5/customer/**")}, // SsoEnabled: to.Ptr(true), // Title: to.Ptr("myApp route config"), // }}, // Protocol: to.Ptr(armappplatform.GatewayRouteConfigProtocolHTTPS), // }, // } }
Output:
func (*GatewayRouteConfigsClient) NewListPager ¶ added in v0.5.0
func (client *GatewayRouteConfigsClient) NewListPager(resourceGroupName string, serviceName string, gatewayName string, options *GatewayRouteConfigsClientListOptions) *runtime.Pager[GatewayRouteConfigsClientListResponse]
NewListPager - Handle requests to list all Spring Cloud Gateway route configs.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- options - GatewayRouteConfigsClientListOptions contains the optional parameters for the GatewayRouteConfigsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/GatewayRouteConfigs_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewGatewayRouteConfigsClient().NewListPager("myResourceGroup", "myservice", "default", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.GatewayRouteConfigResourceCollection = armappplatform.GatewayRouteConfigResourceCollection{ // Value: []*armappplatform.GatewayRouteConfigResource{ // { // Name: to.Ptr("myRouteConfig"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/gateways/routeConfigs"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default/routeConfigs/myRouteConfig"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.GatewayRouteConfigProperties{ // AppResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myApp"), // OpenAPI: &armappplatform.GatewayRouteConfigOpenAPIProperties{ // URI: to.Ptr("https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"), // }, // ProvisioningState: to.Ptr(armappplatform.GatewayProvisioningStateSucceeded), // Routes: []*armappplatform.GatewayAPIRoute{ // { // Filters: []*string{ // to.Ptr("StripPrefix=2"), // to.Ptr("RateLimit=1,1s")}, // Predicates: []*string{ // to.Ptr("Path=/api5/customer/**")}, // SsoEnabled: to.Ptr(true), // Title: to.Ptr("myApp route config"), // }}, // Protocol: to.Ptr(armappplatform.GatewayRouteConfigProtocolHTTPS), // }, // }}, // } } }
Output:
type GatewayRouteConfigsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type GatewayRouteConfigsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
GatewayRouteConfigsClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewayRouteConfigsClient.BeginCreateOrUpdate method.
type GatewayRouteConfigsClientBeginDeleteOptions ¶ added in v0.3.0
type GatewayRouteConfigsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
GatewayRouteConfigsClientBeginDeleteOptions contains the optional parameters for the GatewayRouteConfigsClient.BeginDelete method.
type GatewayRouteConfigsClientCreateOrUpdateResponse ¶ added in v0.3.0
type GatewayRouteConfigsClientCreateOrUpdateResponse struct {
GatewayRouteConfigResource
}
GatewayRouteConfigsClientCreateOrUpdateResponse contains the response from method GatewayRouteConfigsClient.BeginCreateOrUpdate.
type GatewayRouteConfigsClientDeleteResponse ¶ added in v0.3.0
type GatewayRouteConfigsClientDeleteResponse struct { }
GatewayRouteConfigsClientDeleteResponse contains the response from method GatewayRouteConfigsClient.BeginDelete.
type GatewayRouteConfigsClientGetOptions ¶ added in v0.3.0
type GatewayRouteConfigsClientGetOptions struct { }
GatewayRouteConfigsClientGetOptions contains the optional parameters for the GatewayRouteConfigsClient.Get method.
type GatewayRouteConfigsClientGetResponse ¶ added in v0.3.0
type GatewayRouteConfigsClientGetResponse struct {
GatewayRouteConfigResource
}
GatewayRouteConfigsClientGetResponse contains the response from method GatewayRouteConfigsClient.Get.
type GatewayRouteConfigsClientListOptions ¶ added in v0.3.0
type GatewayRouteConfigsClientListOptions struct { }
GatewayRouteConfigsClientListOptions contains the optional parameters for the GatewayRouteConfigsClient.NewListPager method.
type GatewayRouteConfigsClientListResponse ¶ added in v0.3.0
type GatewayRouteConfigsClientListResponse struct {
GatewayRouteConfigResourceCollection
}
GatewayRouteConfigsClientListResponse contains the response from method GatewayRouteConfigsClient.NewListPager.
type GatewaysClient ¶ added in v0.3.0
type GatewaysClient struct {
// contains filtered or unexported fields
}
GatewaysClient contains the methods for the Gateways group. Don't use this type directly, use NewGatewaysClient() instead.
func NewGatewaysClient ¶ added in v0.3.0
func NewGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GatewaysClient, error)
NewGatewaysClient creates a new instance of GatewaysClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*GatewaysClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *GatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, gatewayResource GatewayResource, options *GatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[GatewaysClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- gatewayResource - The gateway for the create or update operation
- options - GatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewaysClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Gateways_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewGatewaysClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", armappplatform.GatewayResource{ Properties: &armappplatform.GatewayProperties{ Public: to.Ptr(true), ResourceRequests: &armappplatform.GatewayResourceRequests{ CPU: to.Ptr("1"), Memory: to.Ptr("1G"), }, }, SKU: &armappplatform.SKU{ Name: to.Ptr("E0"), Capacity: to.Ptr[int32](2), Tier: to.Ptr("Enterprise"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.GatewayResource = armappplatform.GatewayResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/gateways"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.GatewayProperties{ // Instances: []*armappplatform.GatewayInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // OperatorProperties: &armappplatform.GatewayOperatorProperties{ // Instances: []*armappplatform.GatewayInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ResourceRequests: &armappplatform.GatewayOperatorResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](2), // Memory: to.Ptr("1G"), // }, // }, // ProvisioningState: to.Ptr(armappplatform.GatewayProvisioningStateSucceeded), // Public: to.Ptr(true), // ResourceRequests: &armappplatform.GatewayResourceRequests{ // CPU: to.Ptr("1"), // Memory: to.Ptr("1G"), // }, // URL: to.Ptr("test-url"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // } }
Output:
func (*GatewaysClient) BeginDelete ¶ added in v0.3.0
func (client *GatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, options *GatewaysClientBeginDeleteOptions) (*runtime.Poller[GatewaysClientDeleteResponse], error)
BeginDelete - Disable the default Spring Cloud Gateway. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- options - GatewaysClientBeginDeleteOptions contains the optional parameters for the GatewaysClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Gateways_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewGatewaysClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*GatewaysClient) Get ¶ added in v0.3.0
func (client *GatewaysClient) Get(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, options *GatewaysClientGetOptions) (GatewaysClientGetResponse, error)
Get - Get the Spring Cloud Gateway and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- options - GatewaysClientGetOptions contains the optional parameters for the GatewaysClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Gateways_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewGatewaysClient().Get(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.GatewayResource = armappplatform.GatewayResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/gateways"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.GatewayProperties{ // Instances: []*armappplatform.GatewayInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // OperatorProperties: &armappplatform.GatewayOperatorProperties{ // Instances: []*armappplatform.GatewayInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ResourceRequests: &armappplatform.GatewayOperatorResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](2), // Memory: to.Ptr("1G"), // }, // }, // ProvisioningState: to.Ptr(armappplatform.GatewayProvisioningStateSucceeded), // Public: to.Ptr(true), // ResourceRequests: &armappplatform.GatewayResourceRequests{ // CPU: to.Ptr("1"), // Memory: to.Ptr("1G"), // }, // URL: to.Ptr("test-url"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // } }
Output:
func (*GatewaysClient) ListEnvSecrets ¶
func (client *GatewaysClient) ListEnvSecrets(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, options *GatewaysClientListEnvSecretsOptions) (GatewaysClientListEnvSecretsResponse, error)
ListEnvSecrets - List sensitive environment variables of Spring Cloud Gateway. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- options - GatewaysClientListEnvSecretsOptions contains the optional parameters for the GatewaysClient.ListEnvSecrets method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Gateways_ListEnvSecrets.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewGatewaysClient().ListEnvSecrets(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Value = map[string]*string{ // "key": to.Ptr("value"), // } }
Output:
func (*GatewaysClient) NewListPager ¶ added in v0.5.0
func (client *GatewaysClient) NewListPager(resourceGroupName string, serviceName string, options *GatewaysClientListOptions) *runtime.Pager[GatewaysClientListResponse]
NewListPager - Handles requests to list all resources in a Service.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - GatewaysClientListOptions contains the optional parameters for the GatewaysClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Gateways_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewGatewaysClient().NewListPager("myResourceGroup", "myservice", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.GatewayResourceCollection = armappplatform.GatewayResourceCollection{ // Value: []*armappplatform.GatewayResource{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/gateways"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.GatewayProperties{ // Instances: []*armappplatform.GatewayInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // OperatorProperties: &armappplatform.GatewayOperatorProperties{ // Instances: []*armappplatform.GatewayInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ResourceRequests: &armappplatform.GatewayOperatorResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](2), // Memory: to.Ptr("1G"), // }, // }, // ProvisioningState: to.Ptr(armappplatform.GatewayProvisioningStateSucceeded), // Public: to.Ptr(true), // ResourceRequests: &armappplatform.GatewayResourceRequests{ // CPU: to.Ptr("1"), // Memory: to.Ptr("1G"), // }, // URL: to.Ptr("test-url"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // }}, // } } }
Output:
func (*GatewaysClient) ValidateDomain ¶ added in v0.3.0
func (client *GatewaysClient) ValidateDomain(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, validatePayload CustomDomainValidatePayload, options *GatewaysClientValidateDomainOptions) (GatewaysClientValidateDomainResponse, error)
ValidateDomain - Check the domains are valid as well as not in use. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- gatewayName - The name of Spring Cloud Gateway.
- validatePayload - Custom domain payload to be validated
- options - GatewaysClientValidateDomainOptions contains the optional parameters for the GatewaysClient.ValidateDomain method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Gateways_ValidateDomain.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewGatewaysClient().ValidateDomain(ctx, "myResourceGroup", "myservice", "default", armappplatform.CustomDomainValidatePayload{ Name: to.Ptr("mydomain.io"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.CustomDomainValidateResult = armappplatform.CustomDomainValidateResult{ // IsValid: to.Ptr(false), // Message: to.Ptr("Certificate is invalid, please check if it is a self signed cert or if it contains a suitable dns name"), // } }
Output:
type GatewaysClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type GatewaysClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
GatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewaysClient.BeginCreateOrUpdate method.
type GatewaysClientBeginDeleteOptions ¶ added in v0.3.0
type GatewaysClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
GatewaysClientBeginDeleteOptions contains the optional parameters for the GatewaysClient.BeginDelete method.
type GatewaysClientCreateOrUpdateResponse ¶ added in v0.3.0
type GatewaysClientCreateOrUpdateResponse struct {
GatewayResource
}
GatewaysClientCreateOrUpdateResponse contains the response from method GatewaysClient.BeginCreateOrUpdate.
type GatewaysClientDeleteResponse ¶ added in v0.3.0
type GatewaysClientDeleteResponse struct { }
GatewaysClientDeleteResponse contains the response from method GatewaysClient.BeginDelete.
type GatewaysClientGetOptions ¶ added in v0.3.0
type GatewaysClientGetOptions struct { }
GatewaysClientGetOptions contains the optional parameters for the GatewaysClient.Get method.
type GatewaysClientGetResponse ¶ added in v0.3.0
type GatewaysClientGetResponse struct {
GatewayResource
}
GatewaysClientGetResponse contains the response from method GatewaysClient.Get.
type GatewaysClientListEnvSecretsOptions ¶
type GatewaysClientListEnvSecretsOptions struct { }
GatewaysClientListEnvSecretsOptions contains the optional parameters for the GatewaysClient.ListEnvSecrets method.
type GatewaysClientListEnvSecretsResponse ¶
type GatewaysClientListEnvSecretsResponse struct { // Sensitive properties for Spring Cloud Gateway Value map[string]*string }
GatewaysClientListEnvSecretsResponse contains the response from method GatewaysClient.ListEnvSecrets.
type GatewaysClientListOptions ¶ added in v0.3.0
type GatewaysClientListOptions struct { }
GatewaysClientListOptions contains the optional parameters for the GatewaysClient.NewListPager method.
type GatewaysClientListResponse ¶ added in v0.3.0
type GatewaysClientListResponse struct {
GatewayResourceCollection
}
GatewaysClientListResponse contains the response from method GatewaysClient.NewListPager.
type GatewaysClientValidateDomainOptions ¶ added in v0.3.0
type GatewaysClientValidateDomainOptions struct { }
GatewaysClientValidateDomainOptions contains the optional parameters for the GatewaysClient.ValidateDomain method.
type GatewaysClientValidateDomainResponse ¶ added in v0.3.0
type GatewaysClientValidateDomainResponse struct {
CustomDomainValidateResult
}
GatewaysClientValidateDomainResponse contains the response from method GatewaysClient.ValidateDomain.
type GitPatternRepository ¶
type GitPatternRepository struct { // REQUIRED; Name of the repository Name *string `json:"name,omitempty"` // REQUIRED; URI of the repository URI *string `json:"uri,omitempty"` // Public sshKey of git repository. HostKey *string `json:"hostKey,omitempty"` // SshKey algorithm of git repository. HostKeyAlgorithm *string `json:"hostKeyAlgorithm,omitempty"` // Label of the repository Label *string `json:"label,omitempty"` // Password of git repository basic auth. Password *string `json:"password,omitempty"` // Collection of pattern of the repository Pattern []*string `json:"pattern,omitempty"` // Private sshKey algorithm of git repository. PrivateKey *string `json:"privateKey,omitempty"` // Searching path of the repository SearchPaths []*string `json:"searchPaths,omitempty"` // Strict host key checking or not. StrictHostKeyChecking *bool `json:"strictHostKeyChecking,omitempty"` // Username of git repository basic auth. Username *string `json:"username,omitempty"` }
GitPatternRepository - Git repository property payload for config server
func (GitPatternRepository) MarshalJSON ¶
func (g GitPatternRepository) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GitPatternRepository.
func (*GitPatternRepository) UnmarshalJSON ¶ added in v1.1.0
func (g *GitPatternRepository) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GitPatternRepository.
type HTTPGetAction ¶
type HTTPGetAction struct { // REQUIRED; The type of the action to take to perform the health check. Type *ProbeActionType `json:"type,omitempty"` // Path to access on the HTTP server. Path *string `json:"path,omitempty"` // Scheme to use for connecting to the host. Defaults to HTTP. // Possible enum values: // * "HTTP" means that the scheme used will be http:// // * "HTTPS" means that the scheme used will be https:// Scheme *HTTPSchemeType `json:"scheme,omitempty"` }
HTTPGetAction describes an action based on HTTP Get requests.
func (*HTTPGetAction) GetProbeAction ¶
func (h *HTTPGetAction) GetProbeAction() *ProbeAction
GetProbeAction implements the ProbeActionClassification interface for type HTTPGetAction.
func (HTTPGetAction) MarshalJSON ¶
func (h HTTPGetAction) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HTTPGetAction.
func (*HTTPGetAction) UnmarshalJSON ¶
func (h *HTTPGetAction) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HTTPGetAction.
type HTTPSchemeType ¶
type HTTPSchemeType string
HTTPSchemeType - Scheme to use for connecting to the host. Defaults to HTTP. Possible enum values: * "HTTP" means that the scheme used will be http:// * "HTTPS" means that the scheme used will be https://
const ( HTTPSchemeTypeHTTP HTTPSchemeType = "HTTP" HTTPSchemeTypeHTTPS HTTPSchemeType = "HTTPS" )
func PossibleHTTPSchemeTypeValues ¶
func PossibleHTTPSchemeTypeValues() []HTTPSchemeType
PossibleHTTPSchemeTypeValues returns the possible values for the HTTPSchemeType const type.
type ImageRegistryCredential ¶
type ImageRegistryCredential struct { // The password of the image registry credential Password *string `json:"password,omitempty"` // The username of the image registry credential Username *string `json:"username,omitempty"` }
ImageRegistryCredential - Credential of the image registry
func (ImageRegistryCredential) MarshalJSON ¶
func (i ImageRegistryCredential) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageRegistryCredential.
func (*ImageRegistryCredential) UnmarshalJSON ¶
func (i *ImageRegistryCredential) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageRegistryCredential.
type IngressConfig ¶
type IngressConfig struct { // Ingress read time out in seconds. ReadTimeoutInSeconds *int32 `json:"readTimeoutInSeconds,omitempty"` }
IngressConfig - Ingress configuration payload for Azure Spring Apps resource.
func (IngressConfig) MarshalJSON ¶
func (i IngressConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IngressConfig.
func (*IngressConfig) UnmarshalJSON ¶
func (i *IngressConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IngressConfig.
type IngressSettings ¶
type IngressSettings struct { // How ingress should communicate with this app backend service. BackendProtocol *BackendProtocol `json:"backendProtocol,omitempty"` // Client-Certification Authentication. ClientAuth *IngressSettingsClientAuth `json:"clientAuth,omitempty"` // Ingress read time out in seconds. ReadTimeoutInSeconds *int32 `json:"readTimeoutInSeconds,omitempty"` // Ingress send time out in seconds. SendTimeoutInSeconds *int32 `json:"sendTimeoutInSeconds,omitempty"` // Type of the affinity, set this to Cookie to enable session affinity. SessionAffinity *SessionAffinity `json:"sessionAffinity,omitempty"` // Time in seconds until the cookie expires. SessionCookieMaxAge *int32 `json:"sessionCookieMaxAge,omitempty"` }
IngressSettings - App ingress settings payload.
func (IngressSettings) MarshalJSON ¶
func (i IngressSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IngressSettings.
func (*IngressSettings) UnmarshalJSON ¶
func (i *IngressSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IngressSettings.
type IngressSettingsClientAuth ¶
type IngressSettingsClientAuth struct { // Collection of certificate resource id. Certificates []*string `json:"certificates,omitempty"` }
IngressSettingsClientAuth - Client-Certification Authentication.
func (IngressSettingsClientAuth) MarshalJSON ¶
func (i IngressSettingsClientAuth) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IngressSettingsClientAuth.
func (*IngressSettingsClientAuth) UnmarshalJSON ¶
func (i *IngressSettingsClientAuth) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IngressSettingsClientAuth.
type JarUploadedUserSourceInfo ¶ added in v0.3.0
type JarUploadedUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // JVM parameter JvmOptions *string `json:"jvmOptions,omitempty"` // Relative path of the storage which stores the source RelativePath *string `json:"relativePath,omitempty"` // Runtime version of the Jar file RuntimeVersion *string `json:"runtimeVersion,omitempty"` // Version of the source Version *string `json:"version,omitempty"` }
JarUploadedUserSourceInfo - Uploaded Jar binary for a deployment
func (*JarUploadedUserSourceInfo) GetUploadedUserSourceInfo ¶ added in v0.3.0
func (j *JarUploadedUserSourceInfo) GetUploadedUserSourceInfo() *UploadedUserSourceInfo
GetUploadedUserSourceInfo implements the UploadedUserSourceInfoClassification interface for type JarUploadedUserSourceInfo.
func (*JarUploadedUserSourceInfo) GetUserSourceInfo ¶ added in v0.3.0
func (j *JarUploadedUserSourceInfo) GetUserSourceInfo() *UserSourceInfo
GetUserSourceInfo implements the UserSourceInfoClassification interface for type JarUploadedUserSourceInfo.
func (JarUploadedUserSourceInfo) MarshalJSON ¶ added in v0.3.0
func (j JarUploadedUserSourceInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JarUploadedUserSourceInfo.
func (*JarUploadedUserSourceInfo) UnmarshalJSON ¶ added in v0.3.0
func (j *JarUploadedUserSourceInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JarUploadedUserSourceInfo.
type KPackBuildStageProvisioningState ¶ added in v0.3.0
type KPackBuildStageProvisioningState string
KPackBuildStageProvisioningState - The provisioning state of this build stage resource.
const ( KPackBuildStageProvisioningStateFailed KPackBuildStageProvisioningState = "Failed" KPackBuildStageProvisioningStateNotStarted KPackBuildStageProvisioningState = "NotStarted" KPackBuildStageProvisioningStateRunning KPackBuildStageProvisioningState = "Running" KPackBuildStageProvisioningStateSucceeded KPackBuildStageProvisioningState = "Succeeded" )
func PossibleKPackBuildStageProvisioningStateValues ¶ added in v0.3.0
func PossibleKPackBuildStageProvisioningStateValues() []KPackBuildStageProvisioningState
PossibleKPackBuildStageProvisioningStateValues returns the possible values for the KPackBuildStageProvisioningState const type.
type KeyVaultCertificateProperties ¶ added in v0.2.0
type KeyVaultCertificateProperties struct { // REQUIRED; The certificate name of key vault. KeyVaultCertName *string `json:"keyVaultCertName,omitempty"` // REQUIRED; The type of the certificate source. Type *string `json:"type,omitempty"` // REQUIRED; The vault uri of user key vault. VaultURI *string `json:"vaultUri,omitempty"` // The certificate version of key vault. CertVersion *string `json:"certVersion,omitempty"` // Optional. If set to true, it will not import private key from key vault. ExcludePrivateKey *bool `json:"excludePrivateKey,omitempty"` // READ-ONLY; The activate date of certificate. ActivateDate *string `json:"activateDate,omitempty" azure:"ro"` // READ-ONLY; The domain list of certificate. DNSNames []*string `json:"dnsNames,omitempty" azure:"ro"` // READ-ONLY; The expiration date of certificate. ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` // READ-ONLY; The issue date of certificate. IssuedDate *string `json:"issuedDate,omitempty" azure:"ro"` // READ-ONLY; The issuer of certificate. Issuer *string `json:"issuer,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the Certificate ProvisioningState *CertificateResourceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The subject name of certificate. SubjectName *string `json:"subjectName,omitempty" azure:"ro"` // READ-ONLY; The thumbprint of certificate. Thumbprint *string `json:"thumbprint,omitempty" azure:"ro"` }
KeyVaultCertificateProperties - Properties of certificate imported from key vault.
func (*KeyVaultCertificateProperties) GetCertificateProperties ¶ added in v0.3.0
func (k *KeyVaultCertificateProperties) GetCertificateProperties() *CertificateProperties
GetCertificateProperties implements the CertificatePropertiesClassification interface for type KeyVaultCertificateProperties.
func (KeyVaultCertificateProperties) MarshalJSON ¶ added in v0.2.0
func (k KeyVaultCertificateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type KeyVaultCertificateProperties.
func (*KeyVaultCertificateProperties) UnmarshalJSON ¶ added in v0.2.0
func (k *KeyVaultCertificateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultCertificateProperties.
type LastModifiedByType ¶ added in v0.3.0
type LastModifiedByType string
LastModifiedByType - The type of identity that last modified the resource.
const ( LastModifiedByTypeApplication LastModifiedByType = "Application" LastModifiedByTypeKey LastModifiedByType = "Key" LastModifiedByTypeManagedIdentity LastModifiedByType = "ManagedIdentity" LastModifiedByTypeUser LastModifiedByType = "User" )
func PossibleLastModifiedByTypeValues ¶ added in v0.3.0
func PossibleLastModifiedByTypeValues() []LastModifiedByType
PossibleLastModifiedByTypeValues returns the possible values for the LastModifiedByType const type.
type LoadedCertificate ¶ added in v0.2.0
type LoadedCertificate struct { // REQUIRED; Resource Id of loaded certificate ResourceID *string `json:"resourceId,omitempty"` // Indicate whether the certificate will be loaded into default trust store, only work for Java runtime. LoadTrustStore *bool `json:"loadTrustStore,omitempty"` }
LoadedCertificate - Loaded certificate payload
func (LoadedCertificate) MarshalJSON ¶ added in v1.1.0
func (l LoadedCertificate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadedCertificate.
func (*LoadedCertificate) UnmarshalJSON ¶ added in v1.1.0
func (l *LoadedCertificate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LoadedCertificate.
type LogFileURLResponse ¶
type LogFileURLResponse struct { // REQUIRED; URL of the log file URL *string `json:"url,omitempty"` }
LogFileURLResponse - Log file URL payload
func (LogFileURLResponse) MarshalJSON ¶ added in v1.1.0
func (l LogFileURLResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LogFileURLResponse.
func (*LogFileURLResponse) UnmarshalJSON ¶ added in v1.1.0
func (l *LogFileURLResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LogFileURLResponse.
type LogSpecification ¶
type LogSpecification struct { // Blob duration of the log BlobDuration *string `json:"blobDuration,omitempty"` // Localized friendly display name of the log DisplayName *string `json:"displayName,omitempty"` // Name of the log Name *string `json:"name,omitempty"` }
LogSpecification - Specifications of the Log for Azure Monitoring
func (LogSpecification) MarshalJSON ¶ added in v1.1.0
func (l LogSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LogSpecification.
func (*LogSpecification) UnmarshalJSON ¶ added in v1.1.0
func (l *LogSpecification) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LogSpecification.
type ManagedIdentityProperties ¶
type ManagedIdentityProperties struct { // Principal Id of system-assigned managed identity. PrincipalID *string `json:"principalId,omitempty"` // Tenant Id of system-assigned managed identity. TenantID *string `json:"tenantId,omitempty"` // Type of the managed identity Type *ManagedIdentityType `json:"type,omitempty"` // Properties of user-assigned managed identities UserAssignedIdentities map[string]*UserAssignedManagedIdentity `json:"userAssignedIdentities,omitempty"` }
ManagedIdentityProperties - Managed identity properties retrieved from ARM request headers.
func (ManagedIdentityProperties) MarshalJSON ¶ added in v0.4.0
func (m ManagedIdentityProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedIdentityProperties.
func (*ManagedIdentityProperties) UnmarshalJSON ¶ added in v1.1.0
func (m *ManagedIdentityProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityProperties.
type ManagedIdentityType ¶
type ManagedIdentityType string
ManagedIdentityType - Type of the managed identity
const ( ManagedIdentityTypeNone ManagedIdentityType = "None" ManagedIdentityTypeSystemAssigned ManagedIdentityType = "SystemAssigned" ManagedIdentityTypeSystemAssignedUserAssigned ManagedIdentityType = "SystemAssigned,UserAssigned" ManagedIdentityTypeUserAssigned ManagedIdentityType = "UserAssigned" )
func PossibleManagedIdentityTypeValues ¶
func PossibleManagedIdentityTypeValues() []ManagedIdentityType
PossibleManagedIdentityTypeValues returns the possible values for the ManagedIdentityType const type.
type MarketplaceResource ¶
type MarketplaceResource struct { // The plan id of the 3rd Party Artifact that is being procured. Plan *string `json:"plan,omitempty"` // The 3rd Party artifact that is being procured. Product *string `json:"product,omitempty"` // The publisher id of the 3rd Party Artifact that is being bought. Publisher *string `json:"publisher,omitempty"` }
MarketplaceResource - Purchasing 3rd Party product for one Azure Spring Apps instance
func (MarketplaceResource) MarshalJSON ¶
func (m MarketplaceResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MarketplaceResource.
func (*MarketplaceResource) UnmarshalJSON ¶
func (m *MarketplaceResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MarketplaceResource.
type MetricDimension ¶
type MetricDimension struct { // Localized friendly display name of the dimension DisplayName *string `json:"displayName,omitempty"` // Name of the dimension Name *string `json:"name,omitempty"` // Whether this dimension should be included for the Shoebox export scenario ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` }
MetricDimension - Specifications of the Dimension of metrics
func (MetricDimension) MarshalJSON ¶ added in v1.1.0
func (m MetricDimension) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MetricDimension.
func (*MetricDimension) UnmarshalJSON ¶ added in v1.1.0
func (m *MetricDimension) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MetricDimension.
type MetricSpecification ¶
type MetricSpecification struct { // Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. AggregationType *string `json:"aggregationType,omitempty"` // Name of the metric category that the metric belongs to. A metric can only belong to a single category. Category *string `json:"category,omitempty"` // Dimensions of the metric Dimensions []*MetricDimension `json:"dimensions,omitempty"` // Localized friendly description of the metric DisplayDescription *string `json:"displayDescription,omitempty"` // Localized friendly display name of the metric DisplayName *string `json:"displayName,omitempty"` // Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` // Name of the metric Name *string `json:"name,omitempty"` // Name of the MDM namespace. Optional. SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` // Supported aggregation types SupportedAggregationTypes []*string `json:"supportedAggregationTypes,omitempty"` // Supported time grain types SupportedTimeGrainTypes []*string `json:"supportedTimeGrainTypes,omitempty"` // Unit that makes sense for the metric Unit *string `json:"unit,omitempty"` }
MetricSpecification - Specifications of the Metrics for Azure Monitoring
func (MetricSpecification) MarshalJSON ¶
func (m MetricSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MetricSpecification.
func (*MetricSpecification) UnmarshalJSON ¶ added in v1.1.0
func (m *MetricSpecification) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MetricSpecification.
type MonitoringSettingProperties ¶
type MonitoringSettingProperties struct { // Indicates the versions of application insight agent AppInsightsAgentVersions *ApplicationInsightsAgentVersions `json:"appInsightsAgentVersions,omitempty"` // Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings AppInsightsInstrumentationKey *string `json:"appInsightsInstrumentationKey,omitempty"` // Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0] AppInsightsSamplingRate *float64 `json:"appInsightsSamplingRate,omitempty"` // Error when apply Monitoring Setting changes. Error *Error `json:"error,omitempty"` // Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please // leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled // or not TraceEnabled *bool `json:"traceEnabled,omitempty"` // READ-ONLY; State of the Monitoring Setting. ProvisioningState *MonitoringSettingState `json:"provisioningState,omitempty" azure:"ro"` }
MonitoringSettingProperties - Monitoring Setting properties payload
func (MonitoringSettingProperties) MarshalJSON ¶ added in v1.1.0
func (m MonitoringSettingProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitoringSettingProperties.
func (*MonitoringSettingProperties) UnmarshalJSON ¶ added in v1.1.0
func (m *MonitoringSettingProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitoringSettingProperties.
type MonitoringSettingResource ¶
type MonitoringSettingResource struct { // Properties of the Monitoring Setting resource Properties *MonitoringSettingProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
MonitoringSettingResource - Monitoring Setting resource
func (MonitoringSettingResource) MarshalJSON ¶
func (m MonitoringSettingResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonitoringSettingResource.
func (*MonitoringSettingResource) UnmarshalJSON ¶ added in v0.2.0
func (m *MonitoringSettingResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonitoringSettingResource.
type MonitoringSettingState ¶
type MonitoringSettingState string
MonitoringSettingState - State of the Monitoring Setting.
const ( MonitoringSettingStateFailed MonitoringSettingState = "Failed" MonitoringSettingStateNotAvailable MonitoringSettingState = "NotAvailable" MonitoringSettingStateSucceeded MonitoringSettingState = "Succeeded" MonitoringSettingStateUpdating MonitoringSettingState = "Updating" )
func PossibleMonitoringSettingStateValues ¶
func PossibleMonitoringSettingStateValues() []MonitoringSettingState
PossibleMonitoringSettingStateValues returns the possible values for the MonitoringSettingState const type.
type MonitoringSettingsClient ¶
type MonitoringSettingsClient struct {
// contains filtered or unexported fields
}
MonitoringSettingsClient contains the methods for the MonitoringSettings group. Don't use this type directly, use NewMonitoringSettingsClient() instead.
func NewMonitoringSettingsClient ¶
func NewMonitoringSettingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MonitoringSettingsClient, error)
NewMonitoringSettingsClient creates a new instance of MonitoringSettingsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*MonitoringSettingsClient) BeginUpdatePatch ¶
func (client *MonitoringSettingsClient) BeginUpdatePatch(ctx context.Context, resourceGroupName string, serviceName string, monitoringSettingResource MonitoringSettingResource, options *MonitoringSettingsClientBeginUpdatePatchOptions) (*runtime.Poller[MonitoringSettingsClientUpdatePatchResponse], error)
BeginUpdatePatch - Update the Monitoring Setting. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- monitoringSettingResource - Parameters for the update operation
- options - MonitoringSettingsClientBeginUpdatePatchOptions contains the optional parameters for the MonitoringSettingsClient.BeginUpdatePatch method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/MonitoringSettings_UpdatePatch.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMonitoringSettingsClient().BeginUpdatePatch(ctx, "myResourceGroup", "myservice", armappplatform.MonitoringSettingResource{ Properties: &armappplatform.MonitoringSettingProperties{ AppInsightsInstrumentationKey: to.Ptr("00000000-0000-0000-0000-000000000000"), AppInsightsSamplingRate: to.Ptr[float64](10), TraceEnabled: to.Ptr(true), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MonitoringSettingResource = armappplatform.MonitoringSettingResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/monitoringSettings"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/monitoringSettings/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.MonitoringSettingProperties{ // AppInsightsAgentVersions: &armappplatform.ApplicationInsightsAgentVersions{ // Java: to.Ptr("3.0.0"), // }, // AppInsightsInstrumentationKey: to.Ptr("00000000-0000-0000-0000-000000000000"), // AppInsightsSamplingRate: to.Ptr[float64](10), // ProvisioningState: to.Ptr(armappplatform.MonitoringSettingStateSucceeded), // TraceEnabled: to.Ptr(true), // }, // } }
Output:
func (*MonitoringSettingsClient) BeginUpdatePut ¶
func (client *MonitoringSettingsClient) BeginUpdatePut(ctx context.Context, resourceGroupName string, serviceName string, monitoringSettingResource MonitoringSettingResource, options *MonitoringSettingsClientBeginUpdatePutOptions) (*runtime.Poller[MonitoringSettingsClientUpdatePutResponse], error)
BeginUpdatePut - Update the Monitoring Setting. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- monitoringSettingResource - Parameters for the update operation
- options - MonitoringSettingsClientBeginUpdatePutOptions contains the optional parameters for the MonitoringSettingsClient.BeginUpdatePut method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/MonitoringSettings_UpdatePut.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMonitoringSettingsClient().BeginUpdatePut(ctx, "myResourceGroup", "myservice", armappplatform.MonitoringSettingResource{ Properties: &armappplatform.MonitoringSettingProperties{ AppInsightsInstrumentationKey: to.Ptr("00000000-0000-0000-0000-000000000000"), AppInsightsSamplingRate: to.Ptr[float64](10), TraceEnabled: to.Ptr(true), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MonitoringSettingResource = armappplatform.MonitoringSettingResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/monitoringSettings"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/monitoringSettings/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.MonitoringSettingProperties{ // AppInsightsAgentVersions: &armappplatform.ApplicationInsightsAgentVersions{ // Java: to.Ptr("3.0.0"), // }, // AppInsightsInstrumentationKey: to.Ptr("00000000-0000-0000-0000-000000000000"), // AppInsightsSamplingRate: to.Ptr[float64](10), // ProvisioningState: to.Ptr(armappplatform.MonitoringSettingStateSucceeded), // TraceEnabled: to.Ptr(true), // }, // } }
Output:
func (*MonitoringSettingsClient) Get ¶
func (client *MonitoringSettingsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, options *MonitoringSettingsClientGetOptions) (MonitoringSettingsClientGetResponse, error)
Get - Get the Monitoring Setting and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - MonitoringSettingsClientGetOptions contains the optional parameters for the MonitoringSettingsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/MonitoringSettings_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMonitoringSettingsClient().Get(ctx, "myResourceGroup", "myservice", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MonitoringSettingResource = armappplatform.MonitoringSettingResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/monitoringSettings"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/monitoringSettings/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.MonitoringSettingProperties{ // AppInsightsAgentVersions: &armappplatform.ApplicationInsightsAgentVersions{ // Java: to.Ptr("3.0.0"), // }, // AppInsightsInstrumentationKey: to.Ptr("00000000-0000-0000-0000-000000000000"), // AppInsightsSamplingRate: to.Ptr[float64](10), // ProvisioningState: to.Ptr(armappplatform.MonitoringSettingStateSucceeded), // TraceEnabled: to.Ptr(true), // }, // } }
Output:
type MonitoringSettingsClientBeginUpdatePatchOptions ¶ added in v0.3.0
type MonitoringSettingsClientBeginUpdatePatchOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
MonitoringSettingsClientBeginUpdatePatchOptions contains the optional parameters for the MonitoringSettingsClient.BeginUpdatePatch method.
type MonitoringSettingsClientBeginUpdatePutOptions ¶ added in v0.3.0
type MonitoringSettingsClientBeginUpdatePutOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
MonitoringSettingsClientBeginUpdatePutOptions contains the optional parameters for the MonitoringSettingsClient.BeginUpdatePut method.
type MonitoringSettingsClientGetOptions ¶ added in v0.3.0
type MonitoringSettingsClientGetOptions struct { }
MonitoringSettingsClientGetOptions contains the optional parameters for the MonitoringSettingsClient.Get method.
type MonitoringSettingsClientGetResponse ¶ added in v0.3.0
type MonitoringSettingsClientGetResponse struct {
MonitoringSettingResource
}
MonitoringSettingsClientGetResponse contains the response from method MonitoringSettingsClient.Get.
type MonitoringSettingsClientUpdatePatchResponse ¶ added in v0.3.0
type MonitoringSettingsClientUpdatePatchResponse struct {
MonitoringSettingResource
}
MonitoringSettingsClientUpdatePatchResponse contains the response from method MonitoringSettingsClient.BeginUpdatePatch.
type MonitoringSettingsClientUpdatePutResponse ¶ added in v0.3.0
type MonitoringSettingsClientUpdatePutResponse struct {
MonitoringSettingResource
}
MonitoringSettingsClientUpdatePutResponse contains the response from method MonitoringSettingsClient.BeginUpdatePut.
type NameAvailability ¶
type NameAvailability struct { // Message why the name is not available Message *string `json:"message,omitempty"` // Indicates whether the name is available NameAvailable *bool `json:"nameAvailable,omitempty"` // Reason why the name is not available Reason *string `json:"reason,omitempty"` }
NameAvailability - Name availability result payload
func (NameAvailability) MarshalJSON ¶ added in v1.1.0
func (n NameAvailability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NameAvailability.
func (*NameAvailability) UnmarshalJSON ¶ added in v1.1.0
func (n *NameAvailability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NameAvailability.
type NameAvailabilityParameters ¶
type NameAvailabilityParameters struct { // REQUIRED; Name to be checked Name *string `json:"name,omitempty"` // REQUIRED; Type of the resource to check name availability Type *string `json:"type,omitempty"` }
NameAvailabilityParameters - Name availability parameters payload
func (NameAvailabilityParameters) MarshalJSON ¶ added in v1.1.0
func (n NameAvailabilityParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NameAvailabilityParameters.
func (*NameAvailabilityParameters) UnmarshalJSON ¶ added in v1.1.0
func (n *NameAvailabilityParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NameAvailabilityParameters.
type NetCoreZipUploadedUserSourceInfo ¶ added in v0.3.0
type NetCoreZipUploadedUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // The path to the .NET executable relative to zip root NetCoreMainEntryPath *string `json:"netCoreMainEntryPath,omitempty"` // Relative path of the storage which stores the source RelativePath *string `json:"relativePath,omitempty"` // Runtime version of the .Net file RuntimeVersion *string `json:"runtimeVersion,omitempty"` // Version of the source Version *string `json:"version,omitempty"` }
NetCoreZipUploadedUserSourceInfo - Uploaded Jar binary for a deployment
func (*NetCoreZipUploadedUserSourceInfo) GetUploadedUserSourceInfo ¶ added in v0.3.0
func (n *NetCoreZipUploadedUserSourceInfo) GetUploadedUserSourceInfo() *UploadedUserSourceInfo
GetUploadedUserSourceInfo implements the UploadedUserSourceInfoClassification interface for type NetCoreZipUploadedUserSourceInfo.
func (*NetCoreZipUploadedUserSourceInfo) GetUserSourceInfo ¶ added in v0.3.0
func (n *NetCoreZipUploadedUserSourceInfo) GetUserSourceInfo() *UserSourceInfo
GetUserSourceInfo implements the UserSourceInfoClassification interface for type NetCoreZipUploadedUserSourceInfo.
func (NetCoreZipUploadedUserSourceInfo) MarshalJSON ¶ added in v0.3.0
func (n NetCoreZipUploadedUserSourceInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetCoreZipUploadedUserSourceInfo.
func (*NetCoreZipUploadedUserSourceInfo) UnmarshalJSON ¶ added in v0.3.0
func (n *NetCoreZipUploadedUserSourceInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetCoreZipUploadedUserSourceInfo.
type NetworkProfile ¶
type NetworkProfile struct { // Name of the resource group containing network resources for customer apps in Azure Spring Apps AppNetworkResourceGroup *string `json:"appNetworkResourceGroup,omitempty"` // Fully qualified resource Id of the subnet to host customer apps in Azure Spring Apps AppSubnetID *string `json:"appSubnetId,omitempty"` // Ingress configuration payload for Azure Spring Apps resource. IngressConfig *IngressConfig `json:"ingressConfig,omitempty"` // The egress traffic type of Azure Spring Apps VNet instances. OutboundType *string `json:"outboundType,omitempty"` // Azure Spring Apps service reserved CIDR ServiceCidr *string `json:"serviceCidr,omitempty"` // Name of the resource group containing network resources of Azure Spring Apps Service Runtime ServiceRuntimeNetworkResourceGroup *string `json:"serviceRuntimeNetworkResourceGroup,omitempty"` // Fully qualified resource Id of the subnet to host Azure Spring Apps Service Runtime ServiceRuntimeSubnetID *string `json:"serviceRuntimeSubnetId,omitempty"` // READ-ONLY; Desired outbound IP resources for Azure Spring Apps resource. OutboundIPs *NetworkProfileOutboundIPs `json:"outboundIPs,omitempty" azure:"ro"` // READ-ONLY; Required inbound or outbound traffics for Azure Spring Apps resource. RequiredTraffics []*RequiredTraffic `json:"requiredTraffics,omitempty" azure:"ro"` }
NetworkProfile - Service network profile payload
func (NetworkProfile) MarshalJSON ¶
func (n NetworkProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkProfile.
func (*NetworkProfile) UnmarshalJSON ¶ added in v1.1.0
func (n *NetworkProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkProfile.
type NetworkProfileOutboundIPs ¶
type NetworkProfileOutboundIPs struct { // READ-ONLY; A list of public IP addresses. PublicIPs []*string `json:"publicIPs,omitempty" azure:"ro"` }
NetworkProfileOutboundIPs - Desired outbound IP resources for Azure Spring Apps resource.
func (NetworkProfileOutboundIPs) MarshalJSON ¶
func (n NetworkProfileOutboundIPs) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkProfileOutboundIPs.
func (*NetworkProfileOutboundIPs) UnmarshalJSON ¶ added in v1.1.0
func (n *NetworkProfileOutboundIPs) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkProfileOutboundIPs.
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"` // Properties of the operation Properties *OperationProperties `json:"properties,omitempty"` // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` }
OperationDetail - Operation detail payload
func (OperationDetail) MarshalJSON ¶ added in v1.1.0
func (o OperationDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDetail.
func (*OperationDetail) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDetail.
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
func (OperationDisplay) MarshalJSON ¶ added in v1.1.0
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationProperties ¶
type OperationProperties struct { // Service specifications of the operation ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` }
OperationProperties - Extra Operation properties
func (OperationProperties) MarshalJSON ¶ added in v1.1.0
func (o OperationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationProperties.
func (*OperationProperties) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationProperties.
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) NewListPager ¶ added in v0.5.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available REST API operations of the Microsoft.AppPlatform provider.
Generated from API version 2022-11-01-preview
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Operations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewOperationsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AvailableOperations = armappplatform.AvailableOperations{ // Value: []*armappplatform.OperationDetail{ // { // Name: to.Ptr("Microsoft.AppPlatform/Spring/read"), // Display: &armappplatform.OperationDisplay{ // Description: to.Ptr("Create or Update Managed Applications"), // Operation: to.Ptr("Create or Update Managed Applications"), // Provider: to.Ptr("Microsoft Azure Distributed Managed Service for Spring"), // Resource: to.Ptr("Managed Applications"), // }, // IsDataAction: to.Ptr(false), // Origin: to.Ptr("user,system"), // Properties: &armappplatform.OperationProperties{ // }, // }}, // } } }
Output:
type OperationsClientListOptions ¶ added in v0.3.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶ added in v0.3.0
type OperationsClientListResponse struct {
AvailableOperations
}
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type PersistentDisk ¶
type PersistentDisk struct { // Mount path of the persistent disk MountPath *string `json:"mountPath,omitempty"` // Size of the persistent disk in GB SizeInGB *int32 `json:"sizeInGB,omitempty"` // READ-ONLY; Size of the used persistent disk in GB UsedInGB *int32 `json:"usedInGB,omitempty" azure:"ro"` }
PersistentDisk - Persistent disk payload
func (PersistentDisk) MarshalJSON ¶ added in v1.1.0
func (p PersistentDisk) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PersistentDisk.
func (*PersistentDisk) UnmarshalJSON ¶ added in v1.1.0
func (p *PersistentDisk) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PersistentDisk.
type PowerState ¶ added in v0.2.0
type PowerState string
PowerState - Power state of the Service
const ( PowerStateRunning PowerState = "Running" PowerStateStopped PowerState = "Stopped" )
func PossiblePowerStateValues ¶ added in v0.2.0
func PossiblePowerStateValues() []PowerState
PossiblePowerStateValues returns the possible values for the PowerState const type.
type PredefinedAcceleratorProperties ¶
type PredefinedAcceleratorProperties struct { // State of the predefined accelerator. State *PredefinedAcceleratorState `json:"state,omitempty"` // READ-ONLY AcceleratorTags []*string `json:"acceleratorTags,omitempty" azure:"ro"` // READ-ONLY Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY IconURL *string `json:"iconUrl,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the predefined accelerator. ProvisioningState *PredefinedAcceleratorProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PredefinedAcceleratorProperties - Predefined accelerator properties payload
func (PredefinedAcceleratorProperties) MarshalJSON ¶
func (p PredefinedAcceleratorProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PredefinedAcceleratorProperties.
func (*PredefinedAcceleratorProperties) UnmarshalJSON ¶
func (p *PredefinedAcceleratorProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PredefinedAcceleratorProperties.
type PredefinedAcceleratorProvisioningState ¶
type PredefinedAcceleratorProvisioningState string
PredefinedAcceleratorProvisioningState - Provisioning state of the predefined accelerator.
const ( PredefinedAcceleratorProvisioningStateCreating PredefinedAcceleratorProvisioningState = "Creating" PredefinedAcceleratorProvisioningStateFailed PredefinedAcceleratorProvisioningState = "Failed" PredefinedAcceleratorProvisioningStateSucceeded PredefinedAcceleratorProvisioningState = "Succeeded" PredefinedAcceleratorProvisioningStateUpdating PredefinedAcceleratorProvisioningState = "Updating" )
func PossiblePredefinedAcceleratorProvisioningStateValues ¶
func PossiblePredefinedAcceleratorProvisioningStateValues() []PredefinedAcceleratorProvisioningState
PossiblePredefinedAcceleratorProvisioningStateValues returns the possible values for the PredefinedAcceleratorProvisioningState const type.
type PredefinedAcceleratorResource ¶
type PredefinedAcceleratorResource struct { // Predefined accelerator properties payload Properties *PredefinedAcceleratorProperties `json:"properties,omitempty"` // Sku of the predefined accelerator resource SKU *SKU `json:"sku,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
PredefinedAcceleratorResource - Predefined accelerator resource
func (PredefinedAcceleratorResource) MarshalJSON ¶
func (p PredefinedAcceleratorResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PredefinedAcceleratorResource.
func (*PredefinedAcceleratorResource) UnmarshalJSON ¶
func (p *PredefinedAcceleratorResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PredefinedAcceleratorResource.
type PredefinedAcceleratorResourceCollection ¶
type PredefinedAcceleratorResourceCollection struct { NextLink *string `json:"nextLink,omitempty"` Value []*PredefinedAcceleratorResource `json:"value,omitempty"` }
func (PredefinedAcceleratorResourceCollection) MarshalJSON ¶
func (p PredefinedAcceleratorResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PredefinedAcceleratorResourceCollection.
func (*PredefinedAcceleratorResourceCollection) UnmarshalJSON ¶
func (p *PredefinedAcceleratorResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PredefinedAcceleratorResourceCollection.
type PredefinedAcceleratorState ¶
type PredefinedAcceleratorState string
PredefinedAcceleratorState - State of the predefined accelerator.
const ( // PredefinedAcceleratorStateDisabled - Disable the predefined accelerator. PredefinedAcceleratorStateDisabled PredefinedAcceleratorState = "Disabled" // PredefinedAcceleratorStateEnabled - Enable the predefined accelerator. PredefinedAcceleratorStateEnabled PredefinedAcceleratorState = "Enabled" )
func PossiblePredefinedAcceleratorStateValues ¶
func PossiblePredefinedAcceleratorStateValues() []PredefinedAcceleratorState
PossiblePredefinedAcceleratorStateValues returns the possible values for the PredefinedAcceleratorState const type.
type PredefinedAcceleratorsClient ¶
type PredefinedAcceleratorsClient struct {
// contains filtered or unexported fields
}
PredefinedAcceleratorsClient contains the methods for the PredefinedAccelerators group. Don't use this type directly, use NewPredefinedAcceleratorsClient() instead.
func NewPredefinedAcceleratorsClient ¶
func NewPredefinedAcceleratorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PredefinedAcceleratorsClient, error)
NewPredefinedAcceleratorsClient creates a new instance of PredefinedAcceleratorsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PredefinedAcceleratorsClient) BeginDisable ¶
func (client *PredefinedAcceleratorsClient) BeginDisable(ctx context.Context, resourceGroupName string, serviceName string, applicationAcceleratorName string, predefinedAcceleratorName string, options *PredefinedAcceleratorsClientBeginDisableOptions) (*runtime.Poller[PredefinedAcceleratorsClientDisableResponse], error)
BeginDisable - Disable predefined accelerator. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- predefinedAcceleratorName - The name of the predefined accelerator.
- options - PredefinedAcceleratorsClientBeginDisableOptions contains the optional parameters for the PredefinedAcceleratorsClient.BeginDisable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/PredefinedAccelerators_Disable.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPredefinedAcceleratorsClient().BeginDisable(ctx, "myResourceGroup", "myservice", "default", "acc-name", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*PredefinedAcceleratorsClient) BeginEnable ¶
func (client *PredefinedAcceleratorsClient) BeginEnable(ctx context.Context, resourceGroupName string, serviceName string, applicationAcceleratorName string, predefinedAcceleratorName string, options *PredefinedAcceleratorsClientBeginEnableOptions) (*runtime.Poller[PredefinedAcceleratorsClientEnableResponse], error)
BeginEnable - Enable predefined accelerator. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- predefinedAcceleratorName - The name of the predefined accelerator.
- options - PredefinedAcceleratorsClientBeginEnableOptions contains the optional parameters for the PredefinedAcceleratorsClient.BeginEnable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/PredefinedAccelerators_Enable.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPredefinedAcceleratorsClient().BeginEnable(ctx, "myResourceGroup", "myservice", "default", "acc-name", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*PredefinedAcceleratorsClient) Get ¶
func (client *PredefinedAcceleratorsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, applicationAcceleratorName string, predefinedAcceleratorName string, options *PredefinedAcceleratorsClientGetOptions) (PredefinedAcceleratorsClientGetResponse, error)
Get - Get the predefined accelerator. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- predefinedAcceleratorName - The name of the predefined accelerator.
- options - PredefinedAcceleratorsClientGetOptions contains the optional parameters for the PredefinedAcceleratorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/PredefinedAccelerators_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPredefinedAcceleratorsClient().Get(ctx, "myResourceGroup", "myservice", "default", "acc-name", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.PredefinedAcceleratorResource = armappplatform.PredefinedAcceleratorResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationAccelerators/predefinedAccelerators"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationAccelerators/default/predefinedAccelerators/acc-name"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.PredefinedAcceleratorProperties{ // Description: to.Ptr("acc-desc"), // AcceleratorTags: []*string{ // to.Ptr("tag-a"), // to.Ptr("tag-b")}, // DisplayName: to.Ptr("acc-name"), // IconURL: to.Ptr("acc-icon"), // ProvisioningState: to.Ptr(armappplatform.PredefinedAcceleratorProvisioningStateSucceeded), // State: to.Ptr(armappplatform.PredefinedAcceleratorStateEnabled), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // } }
Output:
func (*PredefinedAcceleratorsClient) NewListPager ¶
func (client *PredefinedAcceleratorsClient) NewListPager(resourceGroupName string, serviceName string, applicationAcceleratorName string, options *PredefinedAcceleratorsClientListOptions) *runtime.Pager[PredefinedAcceleratorsClientListResponse]
NewListPager - Handle requests to list all predefined accelerators.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- applicationAcceleratorName - The name of the application accelerator.
- options - PredefinedAcceleratorsClientListOptions contains the optional parameters for the PredefinedAcceleratorsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/PredefinedAccelerators_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPredefinedAcceleratorsClient().NewListPager("myResourceGroup", "myservice", "default", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.PredefinedAcceleratorResourceCollection = armappplatform.PredefinedAcceleratorResourceCollection{ // Value: []*armappplatform.PredefinedAcceleratorResource{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/applicationAccelerators/predefinedAccelerators"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/applicationAccelerators/default/predefinedAccelerators"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.PredefinedAcceleratorProperties{ // Description: to.Ptr("acc-desc"), // AcceleratorTags: []*string{ // to.Ptr("tag-a"), // to.Ptr("tag-b")}, // DisplayName: to.Ptr("acc-name"), // IconURL: to.Ptr("acc-icon"), // ProvisioningState: to.Ptr(armappplatform.PredefinedAcceleratorProvisioningStateSucceeded), // State: to.Ptr(armappplatform.PredefinedAcceleratorStateEnabled), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Capacity: to.Ptr[int32](2), // Tier: to.Ptr("Enterprise"), // }, // }}, // } } }
Output:
type PredefinedAcceleratorsClientBeginDisableOptions ¶
type PredefinedAcceleratorsClientBeginDisableOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PredefinedAcceleratorsClientBeginDisableOptions contains the optional parameters for the PredefinedAcceleratorsClient.BeginDisable method.
type PredefinedAcceleratorsClientBeginEnableOptions ¶
type PredefinedAcceleratorsClientBeginEnableOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PredefinedAcceleratorsClientBeginEnableOptions contains the optional parameters for the PredefinedAcceleratorsClient.BeginEnable method.
type PredefinedAcceleratorsClientDisableResponse ¶
type PredefinedAcceleratorsClientDisableResponse struct { }
PredefinedAcceleratorsClientDisableResponse contains the response from method PredefinedAcceleratorsClient.BeginDisable.
type PredefinedAcceleratorsClientEnableResponse ¶
type PredefinedAcceleratorsClientEnableResponse struct { }
PredefinedAcceleratorsClientEnableResponse contains the response from method PredefinedAcceleratorsClient.BeginEnable.
type PredefinedAcceleratorsClientGetOptions ¶
type PredefinedAcceleratorsClientGetOptions struct { }
PredefinedAcceleratorsClientGetOptions contains the optional parameters for the PredefinedAcceleratorsClient.Get method.
type PredefinedAcceleratorsClientGetResponse ¶
type PredefinedAcceleratorsClientGetResponse struct {
PredefinedAcceleratorResource
}
PredefinedAcceleratorsClientGetResponse contains the response from method PredefinedAcceleratorsClient.Get.
type PredefinedAcceleratorsClientListOptions ¶
type PredefinedAcceleratorsClientListOptions struct { }
PredefinedAcceleratorsClientListOptions contains the optional parameters for the PredefinedAcceleratorsClient.NewListPager method.
type PredefinedAcceleratorsClientListResponse ¶
type PredefinedAcceleratorsClientListResponse struct {
PredefinedAcceleratorResourceCollection
}
PredefinedAcceleratorsClientListResponse contains the response from method PredefinedAcceleratorsClient.NewListPager.
type Probe ¶
type Probe struct { // REQUIRED; Indicate whether the probe is disabled. DisableProbe *bool `json:"disableProbe,omitempty"` // Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1. FailureThreshold *int32 `json:"failureThreshold,omitempty"` // Number of seconds after the App Instance has started before probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"` // How often (in seconds) to perform the probe. Minimum value is 1. PeriodSeconds *int32 `json:"periodSeconds,omitempty"` // The action of the probe. ProbeAction ProbeActionClassification `json:"probeAction,omitempty"` // Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 for liveness and // startup. Minimum value is 1. SuccessThreshold *int32 `json:"successThreshold,omitempty"` // Number of seconds after which the probe times out. Minimum value is 1. TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` }
Probe describes a health check to be performed against an App Instance to determine whether it is alive or ready to receive traffic.
func (Probe) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Probe.
func (*Probe) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Probe.
type ProbeAction ¶
type ProbeAction struct { // REQUIRED; The type of the action to take to perform the health check. Type *ProbeActionType `json:"type,omitempty"` }
ProbeAction - The action of the probe.
func (*ProbeAction) GetProbeAction ¶
func (p *ProbeAction) GetProbeAction() *ProbeAction
GetProbeAction implements the ProbeActionClassification interface for type ProbeAction.
func (ProbeAction) MarshalJSON ¶
func (p ProbeAction) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProbeAction.
func (*ProbeAction) UnmarshalJSON ¶
func (p *ProbeAction) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProbeAction.
type ProbeActionClassification ¶
type ProbeActionClassification interface { // GetProbeAction returns the ProbeAction content of the underlying type. GetProbeAction() *ProbeAction }
ProbeActionClassification provides polymorphic access to related types. Call the interface's GetProbeAction() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ExecAction, *HTTPGetAction, *ProbeAction, *TCPSocketAction
type ProbeActionType ¶
type ProbeActionType string
ProbeActionType - The type of the action to take to perform the health check.
const ( ProbeActionTypeExecAction ProbeActionType = "ExecAction" ProbeActionTypeHTTPGetAction ProbeActionType = "HTTPGetAction" ProbeActionTypeTCPSocketAction ProbeActionType = "TCPSocketAction" )
func PossibleProbeActionTypeValues ¶
func PossibleProbeActionTypeValues() []ProbeActionType
PossibleProbeActionTypeValues returns the possible values for the ProbeActionType const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Provisioning state of the Service
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateMoveFailed ProvisioningState = "MoveFailed" ProvisioningStateMoved ProvisioningState = "Moved" ProvisioningStateMoving ProvisioningState = "Moving" ProvisioningStateStarting ProvisioningState = "Starting" ProvisioningStateStopping ProvisioningState = "Stopping" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type ProxyResource ¶
type ProxyResource struct { // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ProxyResource - The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.
func (ProxyResource) MarshalJSON ¶ added in v1.1.0
func (p ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProxyResource.
func (*ProxyResource) UnmarshalJSON ¶ added in v1.1.0
func (p *ProxyResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.
type RegenerateTestKeyRequestPayload ¶
type RegenerateTestKeyRequestPayload struct { // REQUIRED; Type of the test key KeyType *TestKeyType `json:"keyType,omitempty"` }
RegenerateTestKeyRequestPayload - Regenerate test key request payload
func (RegenerateTestKeyRequestPayload) MarshalJSON ¶ added in v1.1.0
func (r RegenerateTestKeyRequestPayload) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegenerateTestKeyRequestPayload.
func (*RegenerateTestKeyRequestPayload) UnmarshalJSON ¶ added in v1.1.0
func (r *RegenerateTestKeyRequestPayload) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegenerateTestKeyRequestPayload.
type RemoteDebugging ¶
type RemoteDebugging struct { // Indicate if remote debugging is enabled Enabled *bool `json:"enabled,omitempty"` // Application debugging port Port *int32 `json:"port,omitempty"` }
RemoteDebugging - Remote debugging config.
func (RemoteDebugging) MarshalJSON ¶
func (r RemoteDebugging) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RemoteDebugging.
func (*RemoteDebugging) UnmarshalJSON ¶
func (r *RemoteDebugging) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RemoteDebugging.
type RemoteDebuggingPayload ¶
type RemoteDebuggingPayload struct { // Application debugging port. Port *int32 `json:"port,omitempty"` }
RemoteDebuggingPayload - Remote debugging payload.
func (RemoteDebuggingPayload) MarshalJSON ¶
func (r RemoteDebuggingPayload) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RemoteDebuggingPayload.
func (*RemoteDebuggingPayload) UnmarshalJSON ¶
func (r *RemoteDebuggingPayload) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RemoteDebuggingPayload.
type RequiredTraffic ¶
type RequiredTraffic struct { // READ-ONLY; The direction of required traffic Direction *TrafficDirection `json:"direction,omitempty" azure:"ro"` // READ-ONLY; The FQDN list of required traffic Fqdns []*string `json:"fqdns,omitempty" azure:"ro"` // READ-ONLY; The ip list of required traffic IPs []*string `json:"ips,omitempty" azure:"ro"` // READ-ONLY; The port of required traffic Port *int32 `json:"port,omitempty" azure:"ro"` // READ-ONLY; The protocol of required traffic Protocol *string `json:"protocol,omitempty" azure:"ro"` }
RequiredTraffic - Required inbound or outbound traffic for Azure Spring Apps resource.
func (RequiredTraffic) MarshalJSON ¶
func (r RequiredTraffic) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RequiredTraffic.
func (*RequiredTraffic) UnmarshalJSON ¶ added in v1.1.0
func (r *RequiredTraffic) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RequiredTraffic.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
Resource - The core properties of ARM resources.
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶ added in v0.2.0
UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
type ResourceRequests ¶
type ResourceRequests struct { // Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic tier, and {500m, 1, 2, 3, 4} // for Standard tier. CPU *string `json:"cpu,omitempty"` // Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, // 1Gi, 2Gi, …, 8Gi} for Standard tier. Memory *string `json:"memory,omitempty"` }
ResourceRequests - Deployment resource request payload
func (ResourceRequests) MarshalJSON ¶ added in v1.1.0
func (r ResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceRequests.
func (*ResourceRequests) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceRequests.
type ResourceSKU ¶
type ResourceSKU struct { // Gets the capacity of SKU. Capacity *SKUCapacity `json:"capacity,omitempty"` // Gets a list of locations and availability zones in those locations where the SKU is available. LocationInfo []*ResourceSKULocationInfo `json:"locationInfo,omitempty"` // Gets the set of locations that the SKU is available. Locations []*string `json:"locations,omitempty"` // Gets the name of SKU. Name *string `json:"name,omitempty"` // Gets the type of resource the SKU applies to. ResourceType *string `json:"resourceType,omitempty"` // Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. Restrictions []*ResourceSKURestrictions `json:"restrictions,omitempty"` // Gets the tier of SKU. Tier *string `json:"tier,omitempty"` }
ResourceSKU - Describes an available Azure Spring Apps SKU.
func (ResourceSKU) MarshalJSON ¶
func (r ResourceSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKU.
func (*ResourceSKU) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceSKU) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKU.
type ResourceSKUCapabilities ¶
type ResourceSKUCapabilities struct { // Gets an invariant to describe the feature. Name *string `json:"name,omitempty"` // Gets an invariant if the feature is measured by quantity. Value *string `json:"value,omitempty"` }
func (ResourceSKUCapabilities) MarshalJSON ¶ added in v1.1.0
func (r ResourceSKUCapabilities) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKUCapabilities.
func (*ResourceSKUCapabilities) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceSKUCapabilities) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUCapabilities.
type ResourceSKUCollection ¶
type ResourceSKUCollection 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 resource SKU Value []*ResourceSKU `json:"value,omitempty"` }
ResourceSKUCollection - Object that includes an array of Azure Spring Apps SKU and a possible link for next set
func (ResourceSKUCollection) MarshalJSON ¶
func (r ResourceSKUCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKUCollection.
func (*ResourceSKUCollection) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceSKUCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUCollection.
type ResourceSKULocationInfo ¶
type ResourceSKULocationInfo struct { // Gets location of the SKU Location *string `json:"location,omitempty"` // Gets details of capabilities available to a SKU in specific zones. ZoneDetails []*ResourceSKUZoneDetails `json:"zoneDetails,omitempty"` // Gets list of availability zones where the SKU is supported. Zones []*string `json:"zones,omitempty"` }
ResourceSKULocationInfo - Locations and availability zones where the SKU is available
func (ResourceSKULocationInfo) MarshalJSON ¶
func (r ResourceSKULocationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKULocationInfo.
func (*ResourceSKULocationInfo) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceSKULocationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKULocationInfo.
type ResourceSKURestrictionInfo ¶
type ResourceSKURestrictionInfo struct { // Gets locations where the SKU is restricted Locations []*string `json:"locations,omitempty"` // Gets list of availability zones where the SKU is restricted. Zones []*string `json:"zones,omitempty"` }
ResourceSKURestrictionInfo - Information about the restriction where the SKU cannot be used
func (ResourceSKURestrictionInfo) MarshalJSON ¶
func (r ResourceSKURestrictionInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKURestrictionInfo.
func (*ResourceSKURestrictionInfo) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceSKURestrictionInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKURestrictionInfo.
type ResourceSKURestrictions ¶
type ResourceSKURestrictions struct { // Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription' ReasonCode *ResourceSKURestrictionsReasonCode `json:"reasonCode,omitempty"` // Gets the information about the restriction where the SKU cannot be used. RestrictionInfo *ResourceSKURestrictionInfo `json:"restrictionInfo,omitempty"` // Gets the type of restrictions. Possible values include: 'Location', 'Zone' Type *ResourceSKURestrictionsType `json:"type,omitempty"` // Gets the value of restrictions. If the restriction type is set to location. This would be different locations where the // SKU is restricted. Values []*string `json:"values,omitempty"` }
ResourceSKURestrictions - Restrictions where the SKU cannot be used
func (ResourceSKURestrictions) MarshalJSON ¶
func (r ResourceSKURestrictions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKURestrictions.
func (*ResourceSKURestrictions) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceSKURestrictions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKURestrictions.
type ResourceSKURestrictionsReasonCode ¶
type ResourceSKURestrictionsReasonCode string
ResourceSKURestrictionsReasonCode - Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'
const ( ResourceSKURestrictionsReasonCodeNotAvailableForSubscription ResourceSKURestrictionsReasonCode = "NotAvailableForSubscription" ResourceSKURestrictionsReasonCodeQuotaID ResourceSKURestrictionsReasonCode = "QuotaId" )
func PossibleResourceSKURestrictionsReasonCodeValues ¶
func PossibleResourceSKURestrictionsReasonCodeValues() []ResourceSKURestrictionsReasonCode
PossibleResourceSKURestrictionsReasonCodeValues returns the possible values for the ResourceSKURestrictionsReasonCode const type.
type ResourceSKURestrictionsType ¶
type ResourceSKURestrictionsType string
ResourceSKURestrictionsType - Gets the type of restrictions. Possible values include: 'Location', 'Zone'
const ( ResourceSKURestrictionsTypeLocation ResourceSKURestrictionsType = "Location" ResourceSKURestrictionsTypeZone ResourceSKURestrictionsType = "Zone" )
func PossibleResourceSKURestrictionsTypeValues ¶
func PossibleResourceSKURestrictionsTypeValues() []ResourceSKURestrictionsType
PossibleResourceSKURestrictionsTypeValues returns the possible values for the ResourceSKURestrictionsType const type.
type ResourceSKUZoneDetails ¶
type ResourceSKUZoneDetails struct { // Gets a list of capabilities that are available for the SKU in the specified list of zones. Capabilities []*ResourceSKUCapabilities `json:"capabilities,omitempty"` // Gets the set of zones that the SKU is available in with the specified capabilities. Name []*string `json:"name,omitempty"` }
ResourceSKUZoneDetails - Details of capabilities available to a SKU in specific zones
func (ResourceSKUZoneDetails) MarshalJSON ¶
func (r ResourceSKUZoneDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKUZoneDetails.
func (*ResourceSKUZoneDetails) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceSKUZoneDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUZoneDetails.
type ResourceUploadDefinition ¶
type ResourceUploadDefinition struct { // Source relative path RelativePath *string `json:"relativePath,omitempty"` // Upload URL UploadURL *string `json:"uploadUrl,omitempty"` }
ResourceUploadDefinition - Resource upload definition payload
func (ResourceUploadDefinition) MarshalJSON ¶ added in v1.1.0
func (r ResourceUploadDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceUploadDefinition.
func (*ResourceUploadDefinition) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceUploadDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceUploadDefinition.
type RuntimeVersionsClient ¶
type RuntimeVersionsClient struct {
// contains filtered or unexported fields
}
RuntimeVersionsClient contains the methods for the RuntimeVersions group. Don't use this type directly, use NewRuntimeVersionsClient() instead.
func NewRuntimeVersionsClient ¶
func NewRuntimeVersionsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*RuntimeVersionsClient, error)
NewRuntimeVersionsClient creates a new instance of RuntimeVersionsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*RuntimeVersionsClient) ListRuntimeVersions ¶
func (client *RuntimeVersionsClient) ListRuntimeVersions(ctx context.Context, options *RuntimeVersionsClientListRuntimeVersionsOptions) (RuntimeVersionsClientListRuntimeVersionsResponse, error)
ListRuntimeVersions - Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- options - RuntimeVersionsClientListRuntimeVersionsOptions contains the optional parameters for the RuntimeVersionsClient.ListRuntimeVersions method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/RuntimeVersions_ListRuntimeVersions.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewRuntimeVersionsClient().ListRuntimeVersions(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AvailableRuntimeVersions = armappplatform.AvailableRuntimeVersions{ // Value: []*armappplatform.SupportedRuntimeVersion{ // { // Platform: to.Ptr(armappplatform.SupportedRuntimePlatformJava), // Value: to.Ptr(armappplatform.SupportedRuntimeValueJava8), // Version: to.Ptr("8"), // }, // { // Platform: to.Ptr(armappplatform.SupportedRuntimePlatformJava), // Value: to.Ptr(armappplatform.SupportedRuntimeValueJava11), // Version: to.Ptr("11"), // }, // { // Platform: to.Ptr(armappplatform.SupportedRuntimePlatformJava), // Value: to.Ptr(armappplatform.SupportedRuntimeValueJava17), // Version: to.Ptr("17"), // }, // { // Platform: to.Ptr(armappplatform.SupportedRuntimePlatformNETCore), // Value: to.Ptr(armappplatform.SupportedRuntimeValueNetCore31), // Version: to.Ptr("3.1"), // }}, // } }
Output:
type RuntimeVersionsClientListRuntimeVersionsOptions ¶ added in v0.3.0
type RuntimeVersionsClientListRuntimeVersionsOptions struct { }
RuntimeVersionsClientListRuntimeVersionsOptions contains the optional parameters for the RuntimeVersionsClient.ListRuntimeVersions method.
type RuntimeVersionsClientListRuntimeVersionsResponse ¶ added in v0.3.0
type RuntimeVersionsClientListRuntimeVersionsResponse struct {
AvailableRuntimeVersions
}
RuntimeVersionsClientListRuntimeVersionsResponse contains the response from method RuntimeVersionsClient.ListRuntimeVersions.
type SKU ¶
type SKU struct { // Current capacity of the target resource Capacity *int32 `json:"capacity,omitempty"` // Name of the Sku Name *string `json:"name,omitempty"` // Tier of the Sku Tier *string `json:"tier,omitempty"` }
SKU - Sku of Azure Spring Apps
func (SKU) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type SKU.
func (*SKU) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type SKU.
type SKUCapacity ¶
type SKUCapacity struct { // REQUIRED; Gets or sets the minimum. Minimum *int32 `json:"minimum,omitempty"` // Gets or sets the default. Default *int32 `json:"default,omitempty"` // Gets or sets the maximum. Maximum *int32 `json:"maximum,omitempty"` // Gets or sets the type of the scale. ScaleType *SKUScaleType `json:"scaleType,omitempty"` }
SKUCapacity - The SKU capacity
func (SKUCapacity) MarshalJSON ¶ added in v1.1.0
func (s SKUCapacity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SKUCapacity.
func (*SKUCapacity) UnmarshalJSON ¶ added in v1.1.0
func (s *SKUCapacity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SKUCapacity.
type SKUScaleType ¶
type SKUScaleType string
SKUScaleType - Gets or sets the type of the scale.
const ( SKUScaleTypeAutomatic SKUScaleType = "Automatic" SKUScaleTypeManual SKUScaleType = "Manual" SKUScaleTypeNone SKUScaleType = "None" )
func PossibleSKUScaleTypeValues ¶
func PossibleSKUScaleTypeValues() []SKUScaleType
PossibleSKUScaleTypeValues returns the possible values for the SKUScaleType const type.
type SKUsClient ¶
type SKUsClient struct {
// contains filtered or unexported fields
}
SKUsClient contains the methods for the SKUs group. Don't use this type directly, use NewSKUsClient() instead.
func NewSKUsClient ¶
func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SKUsClient, error)
NewSKUsClient creates a new instance of SKUsClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SKUsClient) NewListPager ¶ added in v0.5.0
func (client *SKUsClient) NewListPager(options *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse]
NewListPager - Lists all of the available skus of the Microsoft.AppPlatform provider.
Generated from API version 2022-11-01-preview
- options - SKUsClientListOptions contains the optional parameters for the SKUsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Skus_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewSKUsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ResourceSKUCollection = armappplatform.ResourceSKUCollection{ // Value: []*armappplatform.ResourceSKU{ // { // Name: to.Ptr("B0"), // Capacity: &armappplatform.SKUCapacity{ // Default: to.Ptr[int32](1), // Maximum: to.Ptr[int32](20), // Minimum: to.Ptr[int32](1), // ScaleType: to.Ptr(armappplatform.SKUScaleTypeAutomatic), // }, // LocationInfo: []*armappplatform.ResourceSKULocationInfo{ // { // Location: to.Ptr("eastus"), // ZoneDetails: []*armappplatform.ResourceSKUZoneDetails{ // }, // Zones: []*string{ // }, // }}, // Locations: []*string{ // to.Ptr("eastus")}, // ResourceType: to.Ptr("Spring"), // Restrictions: []*armappplatform.ResourceSKURestrictions{ // }, // Tier: to.Ptr("Basic"), // }}, // } } }
Output:
type SKUsClientListOptions ¶ added in v0.3.0
type SKUsClientListOptions struct { }
SKUsClientListOptions contains the optional parameters for the SKUsClient.NewListPager method.
type SKUsClientListResponse ¶ added in v0.3.0
type SKUsClientListResponse struct {
ResourceSKUCollection
}
SKUsClientListResponse contains the response from method SKUsClient.NewListPager.
type ServiceRegistriesClient ¶ added in v0.3.0
type ServiceRegistriesClient struct {
// contains filtered or unexported fields
}
ServiceRegistriesClient contains the methods for the ServiceRegistries group. Don't use this type directly, use NewServiceRegistriesClient() instead.
func NewServiceRegistriesClient ¶ added in v0.3.0
func NewServiceRegistriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServiceRegistriesClient, error)
NewServiceRegistriesClient creates a new instance of ServiceRegistriesClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ServiceRegistriesClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *ServiceRegistriesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, serviceRegistryName string, options *ServiceRegistriesClientBeginCreateOrUpdateOptions) (*runtime.Poller[ServiceRegistriesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create the default Service Registry or update the existing Service Registry. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- serviceRegistryName - The name of Service Registry.
- options - ServiceRegistriesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServiceRegistriesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ServiceRegistries_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServiceRegistriesClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServiceRegistryResource = armappplatform.ServiceRegistryResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/serviceRegistries"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ServiceRegistryProperties{ // Instances: []*armappplatform.ServiceRegistryInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.ServiceRegistryProvisioningStateSucceeded), // ResourceRequests: &armappplatform.ServiceRegistryResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](2), // Memory: to.Ptr("1G"), // }, // }, // } }
Output:
func (*ServiceRegistriesClient) BeginDelete ¶ added in v0.3.0
func (client *ServiceRegistriesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, serviceRegistryName string, options *ServiceRegistriesClientBeginDeleteOptions) (*runtime.Poller[ServiceRegistriesClientDeleteResponse], error)
BeginDelete - Disable the default Service Registry. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- serviceRegistryName - The name of Service Registry.
- options - ServiceRegistriesClientBeginDeleteOptions contains the optional parameters for the ServiceRegistriesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ServiceRegistries_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServiceRegistriesClient().BeginDelete(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ServiceRegistriesClient) Get ¶ added in v0.3.0
func (client *ServiceRegistriesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, serviceRegistryName string, options *ServiceRegistriesClientGetOptions) (ServiceRegistriesClientGetResponse, error)
Get - Get the Service Registry and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- serviceRegistryName - The name of Service Registry.
- options - ServiceRegistriesClientGetOptions contains the optional parameters for the ServiceRegistriesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ServiceRegistries_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServiceRegistriesClient().Get(ctx, "myResourceGroup", "myservice", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServiceRegistryResource = armappplatform.ServiceRegistryResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/serviceRegistries"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ServiceRegistryProperties{ // Instances: []*armappplatform.ServiceRegistryInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.ServiceRegistryProvisioningStateSucceeded), // ResourceRequests: &armappplatform.ServiceRegistryResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](2), // Memory: to.Ptr("1G"), // }, // }, // } }
Output:
func (*ServiceRegistriesClient) NewListPager ¶ added in v0.5.0
func (client *ServiceRegistriesClient) NewListPager(resourceGroupName string, serviceName string, options *ServiceRegistriesClientListOptions) *runtime.Pager[ServiceRegistriesClientListResponse]
NewListPager - Handles requests to list all resources in a Service.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ServiceRegistriesClientListOptions contains the optional parameters for the ServiceRegistriesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/ServiceRegistries_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServiceRegistriesClient().NewListPager("myResourceGroup", "myservice", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServiceRegistryResourceCollection = armappplatform.ServiceRegistryResourceCollection{ // Value: []*armappplatform.ServiceRegistryResource{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/serviceRegistries"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/default"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.ServiceRegistryProperties{ // Instances: []*armappplatform.ServiceRegistryInstance{ // { // Name: to.Ptr("instance1"), // Status: to.Ptr("Running"), // }, // { // Name: to.Ptr("instance2"), // Status: to.Ptr("Running"), // }}, // ProvisioningState: to.Ptr(armappplatform.ServiceRegistryProvisioningStateSucceeded), // ResourceRequests: &armappplatform.ServiceRegistryResourceRequests{ // CPU: to.Ptr("1"), // InstanceCount: to.Ptr[int32](2), // Memory: to.Ptr("1G"), // }, // }, // }}, // } } }
Output:
type ServiceRegistriesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ServiceRegistriesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServiceRegistriesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServiceRegistriesClient.BeginCreateOrUpdate method.
type ServiceRegistriesClientBeginDeleteOptions ¶ added in v0.3.0
type ServiceRegistriesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServiceRegistriesClientBeginDeleteOptions contains the optional parameters for the ServiceRegistriesClient.BeginDelete method.
type ServiceRegistriesClientCreateOrUpdateResponse ¶ added in v0.3.0
type ServiceRegistriesClientCreateOrUpdateResponse struct {
ServiceRegistryResource
}
ServiceRegistriesClientCreateOrUpdateResponse contains the response from method ServiceRegistriesClient.BeginCreateOrUpdate.
type ServiceRegistriesClientDeleteResponse ¶ added in v0.3.0
type ServiceRegistriesClientDeleteResponse struct { }
ServiceRegistriesClientDeleteResponse contains the response from method ServiceRegistriesClient.BeginDelete.
type ServiceRegistriesClientGetOptions ¶ added in v0.3.0
type ServiceRegistriesClientGetOptions struct { }
ServiceRegistriesClientGetOptions contains the optional parameters for the ServiceRegistriesClient.Get method.
type ServiceRegistriesClientGetResponse ¶ added in v0.3.0
type ServiceRegistriesClientGetResponse struct {
ServiceRegistryResource
}
ServiceRegistriesClientGetResponse contains the response from method ServiceRegistriesClient.Get.
type ServiceRegistriesClientListOptions ¶ added in v0.3.0
type ServiceRegistriesClientListOptions struct { }
ServiceRegistriesClientListOptions contains the optional parameters for the ServiceRegistriesClient.NewListPager method.
type ServiceRegistriesClientListResponse ¶ added in v0.3.0
type ServiceRegistriesClientListResponse struct {
ServiceRegistryResourceCollection
}
ServiceRegistriesClientListResponse contains the response from method ServiceRegistriesClient.NewListPager.
type ServiceRegistryInstance ¶ added in v0.3.0
type ServiceRegistryInstance struct { // READ-ONLY; Name of the Service Registry instance Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the Service Registry instance Status *string `json:"status,omitempty" azure:"ro"` }
ServiceRegistryInstance - Collection of instances belong to the Service Registry
func (ServiceRegistryInstance) MarshalJSON ¶ added in v1.1.0
func (s ServiceRegistryInstance) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceRegistryInstance.
func (*ServiceRegistryInstance) UnmarshalJSON ¶ added in v1.1.0
func (s *ServiceRegistryInstance) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceRegistryInstance.
type ServiceRegistryProperties ¶ added in v0.3.0
type ServiceRegistryProperties struct { // READ-ONLY; Collection of instances belong to Service Registry. Instances []*ServiceRegistryInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; State of the Service Registry. ProvisioningState *ServiceRegistryProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The requested resource quantity for required CPU and Memory. ResourceRequests *ServiceRegistryResourceRequests `json:"resourceRequests,omitempty" azure:"ro"` }
ServiceRegistryProperties - Service Registry properties payload
func (ServiceRegistryProperties) MarshalJSON ¶ added in v0.3.0
func (s ServiceRegistryProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceRegistryProperties.
func (*ServiceRegistryProperties) UnmarshalJSON ¶ added in v1.1.0
func (s *ServiceRegistryProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceRegistryProperties.
type ServiceRegistryProvisioningState ¶ added in v0.3.0
type ServiceRegistryProvisioningState string
ServiceRegistryProvisioningState - State of the Service Registry.
const ( ServiceRegistryProvisioningStateCreating ServiceRegistryProvisioningState = "Creating" ServiceRegistryProvisioningStateDeleting ServiceRegistryProvisioningState = "Deleting" ServiceRegistryProvisioningStateFailed ServiceRegistryProvisioningState = "Failed" ServiceRegistryProvisioningStateSucceeded ServiceRegistryProvisioningState = "Succeeded" ServiceRegistryProvisioningStateUpdating ServiceRegistryProvisioningState = "Updating" )
func PossibleServiceRegistryProvisioningStateValues ¶ added in v0.3.0
func PossibleServiceRegistryProvisioningStateValues() []ServiceRegistryProvisioningState
PossibleServiceRegistryProvisioningStateValues returns the possible values for the ServiceRegistryProvisioningState const type.
type ServiceRegistryResource ¶ added in v0.3.0
type ServiceRegistryResource struct { // Service Registry properties payload Properties *ServiceRegistryProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ServiceRegistryResource - Service Registry resource
func (ServiceRegistryResource) MarshalJSON ¶ added in v1.1.0
func (s ServiceRegistryResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceRegistryResource.
func (*ServiceRegistryResource) UnmarshalJSON ¶ added in v1.1.0
func (s *ServiceRegistryResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceRegistryResource.
type ServiceRegistryResourceCollection ¶ added in v0.3.0
type ServiceRegistryResourceCollection 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 Service Registry resources Value []*ServiceRegistryResource `json:"value,omitempty"` }
ServiceRegistryResourceCollection - Object that includes an array of Service Registry resources and a possible link for next set
func (ServiceRegistryResourceCollection) MarshalJSON ¶ added in v0.3.0
func (s ServiceRegistryResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceRegistryResourceCollection.
func (*ServiceRegistryResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (s *ServiceRegistryResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceRegistryResourceCollection.
type ServiceRegistryResourceRequests ¶ added in v0.3.0
type ServiceRegistryResourceRequests struct { // READ-ONLY; Cpu allocated to each Service Registry instance CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Instance count of the Service Registry InstanceCount *int32 `json:"instanceCount,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to each Service Registry instance Memory *string `json:"memory,omitempty" azure:"ro"` }
ServiceRegistryResourceRequests - Resource request payload of Service Registry
func (ServiceRegistryResourceRequests) MarshalJSON ¶ added in v1.1.0
func (s ServiceRegistryResourceRequests) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceRegistryResourceRequests.
func (*ServiceRegistryResourceRequests) UnmarshalJSON ¶ added in v1.1.0
func (s *ServiceRegistryResourceRequests) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceRegistryResourceRequests.
type ServiceResource ¶
type ServiceResource struct { // The GEO location of the resource. Location *string `json:"location,omitempty"` // Properties of the Service resource Properties *ClusterResourceProperties `json:"properties,omitempty"` // Sku of the Service resource SKU *SKU `json:"sku,omitempty"` // Tags of the service which is a list of key value pairs that describe the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ServiceResource - Service resource
func (ServiceResource) MarshalJSON ¶
func (s ServiceResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceResource.
func (*ServiceResource) UnmarshalJSON ¶ added in v0.2.0
func (s *ServiceResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceResource.
type ServiceResourceList ¶
type ServiceResourceList 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 Service resources Value []*ServiceResource `json:"value,omitempty"` }
ServiceResourceList - Object that includes an array of Service resources and a possible link for next set
func (ServiceResourceList) MarshalJSON ¶
func (s ServiceResourceList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceResourceList.
func (*ServiceResourceList) UnmarshalJSON ¶ added in v1.1.0
func (s *ServiceResourceList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceResourceList.
type ServiceSpecification ¶
type ServiceSpecification struct { // Specifications of the Log for Azure Monitoring LogSpecifications []*LogSpecification `json:"logSpecifications,omitempty"` // Specifications of the Metrics for Azure Monitoring MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` }
ServiceSpecification - Service specification payload
func (ServiceSpecification) MarshalJSON ¶
func (s ServiceSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceSpecification.
func (*ServiceSpecification) UnmarshalJSON ¶ added in v1.1.0
func (s *ServiceSpecification) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSpecification.
type ServiceVNetAddons ¶
type ServiceVNetAddons struct { // Indicates whether the log stream in vnet injection instance could be accessed from internet. LogStreamPublicEndpoint *bool `json:"logStreamPublicEndpoint,omitempty"` }
ServiceVNetAddons - Additional Service settings in vnet injection instance
func (ServiceVNetAddons) MarshalJSON ¶
func (s ServiceVNetAddons) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceVNetAddons.
func (*ServiceVNetAddons) UnmarshalJSON ¶
func (s *ServiceVNetAddons) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceVNetAddons.
type ServicesClient ¶
type ServicesClient struct {
// contains filtered or unexported fields
}
ServicesClient contains the methods for the Services group. Don't use this type directly, use NewServicesClient() instead.
func NewServicesClient ¶
func NewServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServicesClient, error)
NewServicesClient creates a new instance of ServicesClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ServicesClient) BeginCreateOrUpdate ¶
func (client *ServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, resource ServiceResource, options *ServicesClientBeginCreateOrUpdateOptions) (*runtime.Poller[ServicesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a new Service or update an exiting Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- resource - Parameters for the create or update operation
- options - ServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServicesClient.BeginCreateOrUpdate method.
Example (ServicesCreateOrUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServicesClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", armappplatform.ServiceResource{ Location: to.Ptr("eastus"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armappplatform.ClusterResourceProperties{}, SKU: &armappplatform.SKU{ Name: to.Ptr("S0"), Tier: to.Ptr("Standard"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServiceResource = armappplatform.ServiceResource{ // Name: to.Ptr("myservice"), // Type: to.Ptr("Microsoft.AppPlatform/Spring"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Location: to.Ptr("eastus"), // Tags: map[string]*string{ // "key1": to.Ptr("value1"), // }, // Properties: &armappplatform.ClusterResourceProperties{ // NetworkProfile: &armappplatform.NetworkProfile{ // OutboundIPs: &armappplatform.NetworkProfileOutboundIPs{ // PublicIPs: []*string{ // to.Ptr("20.39.3.173"), // to.Ptr("40.64.67.13")}, // }, // RequiredTraffics: []*armappplatform.RequiredTraffic{ // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](443), // Protocol: to.Ptr("TCP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](1194), // Protocol: to.Ptr("UDP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](9000), // Protocol: to.Ptr("TCP"), // }}, // }, // ProvisioningState: to.Ptr(armappplatform.ProvisioningStateSucceeded), // ServiceID: to.Ptr("12345678abcd1234abcd12345678abcd"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Tier: to.Ptr("Standard"), // }, // } }
Output:
Example (ServicesCreateOrUpdateEnterprise) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_CreateOrUpdate_Enterprise.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServicesClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", armappplatform.ServiceResource{ Location: to.Ptr("eastus"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armappplatform.ClusterResourceProperties{ MarketplaceResource: &armappplatform.MarketplaceResource{ Plan: to.Ptr("tanzu-asc-ent-mtr"), Product: to.Ptr("azure-spring-cloud-vmware-tanzu-2"), Publisher: to.Ptr("vmware-inc"), }, }, SKU: &armappplatform.SKU{ Name: to.Ptr("E0"), Tier: to.Ptr("Enterprise"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServiceResource = armappplatform.ServiceResource{ // Name: to.Ptr("myservice"), // Type: to.Ptr("Microsoft.AppPlatform/Spring"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Location: to.Ptr("eastus"), // Tags: map[string]*string{ // "key1": to.Ptr("value1"), // }, // Properties: &armappplatform.ClusterResourceProperties{ // MarketplaceResource: &armappplatform.MarketplaceResource{ // Plan: to.Ptr("tanzu-asc-ent-mtr"), // Product: to.Ptr("azure-spring-cloud-vmware-tanzu-2"), // Publisher: to.Ptr("vmware-inc"), // }, // NetworkProfile: &armappplatform.NetworkProfile{ // OutboundIPs: &armappplatform.NetworkProfileOutboundIPs{ // PublicIPs: []*string{ // to.Ptr("20.39.3.173"), // to.Ptr("40.64.67.13")}, // }, // RequiredTraffics: []*armappplatform.RequiredTraffic{ // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](443), // Protocol: to.Ptr("TCP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](1194), // Protocol: to.Ptr("UDP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](9000), // Protocol: to.Ptr("TCP"), // }}, // }, // ProvisioningState: to.Ptr(armappplatform.ProvisioningStateSucceeded), // ServiceID: to.Ptr("12345678abcd1234abcd12345678abcd"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("E0"), // Tier: to.Ptr("Enterprise"), // }, // } }
Output:
Example (ServicesCreateOrUpdateVNetInjection) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_CreateOrUpdate_VNetInjection.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServicesClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", armappplatform.ServiceResource{ Location: to.Ptr("eastus"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armappplatform.ClusterResourceProperties{ NetworkProfile: &armappplatform.NetworkProfile{ AppNetworkResourceGroup: to.Ptr("my-app-network-rg"), AppSubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/apps"), IngressConfig: &armappplatform.IngressConfig{ ReadTimeoutInSeconds: to.Ptr[int32](300), }, ServiceCidr: to.Ptr("10.8.0.0/16,10.244.0.0/16,10.245.0.1/16"), ServiceRuntimeNetworkResourceGroup: to.Ptr("my-service-runtime-network-rg"), ServiceRuntimeSubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/serviceRuntime"), }, VnetAddons: &armappplatform.ServiceVNetAddons{ LogStreamPublicEndpoint: to.Ptr(true), }, }, SKU: &armappplatform.SKU{ Name: to.Ptr("S0"), Tier: to.Ptr("Standard"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServiceResource = armappplatform.ServiceResource{ // Name: to.Ptr("myservice"), // Type: to.Ptr("Microsoft.AppPlatform/Spring"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Location: to.Ptr("eastus"), // Tags: map[string]*string{ // "key1": to.Ptr("value1"), // }, // Properties: &armappplatform.ClusterResourceProperties{ // NetworkProfile: &armappplatform.NetworkProfile{ // AppNetworkResourceGroup: to.Ptr("my-app-network-rg"), // AppSubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/apps"), // OutboundIPs: &armappplatform.NetworkProfileOutboundIPs{ // PublicIPs: []*string{ // to.Ptr("40.64.67.13")}, // }, // RequiredTraffics: []*armappplatform.RequiredTraffic{ // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](443), // Protocol: to.Ptr("TCP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](1194), // Protocol: to.Ptr("UDP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](9000), // Protocol: to.Ptr("TCP"), // }}, // ServiceCidr: to.Ptr("10.8.0.0/16,10.244.0.0/16,10.245.0.1/16"), // ServiceRuntimeNetworkResourceGroup: to.Ptr("my-service-runtime-network-rg"), // ServiceRuntimeSubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/serviceRuntime"), // }, // ProvisioningState: to.Ptr(armappplatform.ProvisioningStateSucceeded), // ServiceID: to.Ptr("12345678abcd1234abcd12345678abcd"), // VnetAddons: &armappplatform.ServiceVNetAddons{ // LogStreamPublicEndpoint: to.Ptr(true), // }, // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Tier: to.Ptr("Standard"), // }, // } }
Output:
func (*ServicesClient) BeginDelete ¶
func (client *ServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, options *ServicesClientBeginDeleteOptions) (*runtime.Poller[ServicesClientDeleteResponse], error)
BeginDelete - Operation to delete a Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ServicesClientBeginDeleteOptions contains the optional parameters for the ServicesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServicesClient().BeginDelete(ctx, "myResourceGroup", "myservice", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ServicesClient) BeginStart ¶ added in v0.2.0
func (client *ServicesClient) BeginStart(ctx context.Context, resourceGroupName string, serviceName string, options *ServicesClientBeginStartOptions) (*runtime.Poller[ServicesClientStartResponse], error)
BeginStart - Start a Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ServicesClientBeginStartOptions contains the optional parameters for the ServicesClient.BeginStart method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_Start.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServicesClient().BeginStart(ctx, "myResourceGroup", "myservice", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ServicesClient) BeginStop ¶ added in v0.2.0
func (client *ServicesClient) BeginStop(ctx context.Context, resourceGroupName string, serviceName string, options *ServicesClientBeginStopOptions) (*runtime.Poller[ServicesClientStopResponse], error)
BeginStop - Stop a Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ServicesClientBeginStopOptions contains the optional parameters for the ServicesClient.BeginStop method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_Stop.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServicesClient().BeginStop(ctx, "myResourceGroup", "myservice", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ServicesClient) BeginUpdate ¶
func (client *ServicesClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, resource ServiceResource, options *ServicesClientBeginUpdateOptions) (*runtime.Poller[ServicesClientUpdateResponse], error)
BeginUpdate - Operation to update an exiting Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- resource - Parameters for the update operation
- options - ServicesClientBeginUpdateOptions contains the optional parameters for the ServicesClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_Update.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServicesClient().BeginUpdate(ctx, "myResourceGroup", "myservice", armappplatform.ServiceResource{ Location: to.Ptr("eastus"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armappplatform.ClusterResourceProperties{}, SKU: &armappplatform.SKU{ Name: to.Ptr("S0"), Tier: to.Ptr("Standard"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServiceResource = armappplatform.ServiceResource{ // Name: to.Ptr("myservice"), // Type: to.Ptr("Microsoft.AppPlatform/Spring"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Location: to.Ptr("eastus"), // Tags: map[string]*string{ // "key1": to.Ptr("value1"), // }, // Properties: &armappplatform.ClusterResourceProperties{ // NetworkProfile: &armappplatform.NetworkProfile{ // OutboundIPs: &armappplatform.NetworkProfileOutboundIPs{ // PublicIPs: []*string{ // to.Ptr("20.39.3.173"), // to.Ptr("40.64.67.13")}, // }, // RequiredTraffics: []*armappplatform.RequiredTraffic{ // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](443), // Protocol: to.Ptr("TCP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](1194), // Protocol: to.Ptr("UDP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](9000), // Protocol: to.Ptr("TCP"), // }}, // }, // ProvisioningState: to.Ptr(armappplatform.ProvisioningStateSucceeded), // ServiceID: to.Ptr("12345678abcd1234abcd12345678abcd"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Tier: to.Ptr("Standard"), // }, // } }
Output:
func (*ServicesClient) CheckNameAvailability ¶
func (client *ServicesClient) CheckNameAvailability(ctx context.Context, location string, availabilityParameters NameAvailabilityParameters, options *ServicesClientCheckNameAvailabilityOptions) (ServicesClientCheckNameAvailabilityResponse, error)
CheckNameAvailability - Checks that the resource name is valid and is not already in use. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- location - the region
- availabilityParameters - Parameters supplied to the operation.
- options - ServicesClientCheckNameAvailabilityOptions contains the optional parameters for the ServicesClient.CheckNameAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_CheckNameAvailability.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServicesClient().CheckNameAvailability(ctx, "eastus", armappplatform.NameAvailabilityParameters{ Name: to.Ptr("myservice"), Type: to.Ptr("Microsoft.AppPlatform/Spring"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.NameAvailability = armappplatform.NameAvailability{ // Message: to.Ptr("The name is already used."), // NameAvailable: to.Ptr(false), // Reason: to.Ptr("AlreadyExists"), // } }
Output:
func (*ServicesClient) DisableTestEndpoint ¶
func (client *ServicesClient) DisableTestEndpoint(ctx context.Context, resourceGroupName string, serviceName string, options *ServicesClientDisableTestEndpointOptions) (ServicesClientDisableTestEndpointResponse, error)
DisableTestEndpoint - Disable test endpoint functionality for a Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ServicesClientDisableTestEndpointOptions contains the optional parameters for the ServicesClient.DisableTestEndpoint method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_DisableTestEndpoint.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewServicesClient().DisableTestEndpoint(ctx, "myResourceGroup", "myservice", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ServicesClient) EnableTestEndpoint ¶
func (client *ServicesClient) EnableTestEndpoint(ctx context.Context, resourceGroupName string, serviceName string, options *ServicesClientEnableTestEndpointOptions) (ServicesClientEnableTestEndpointResponse, error)
EnableTestEndpoint - Enable test endpoint functionality for a Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ServicesClientEnableTestEndpointOptions contains the optional parameters for the ServicesClient.EnableTestEndpoint method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_EnableTestEndpoint.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServicesClient().EnableTestEndpoint(ctx, "myResourceGroup", "myservice", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.TestKeys = armappplatform.TestKeys{ // Enabled: to.Ptr(true), // PrimaryKey: to.Ptr("<primaryKey>"), // PrimaryTestEndpoint: to.Ptr("<primaryTestEndpoint>"), // SecondaryKey: to.Ptr("<secondaryKey>"), // SecondaryTestEndpoint: to.Ptr("<secondaryTestEndpoint>"), // } }
Output:
func (*ServicesClient) Get ¶
func (client *ServicesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, options *ServicesClientGetOptions) (ServicesClientGetResponse, error)
Get - Get a Service and its properties. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ServicesClientGetOptions contains the optional parameters for the ServicesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServicesClient().Get(ctx, "myResourceGroup", "myservice", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServiceResource = armappplatform.ServiceResource{ // Name: to.Ptr("myservice"), // Type: to.Ptr("Microsoft.AppPlatform/Spring"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Location: to.Ptr("eastus"), // Tags: map[string]*string{ // "key1": to.Ptr("value1"), // }, // Properties: &armappplatform.ClusterResourceProperties{ // NetworkProfile: &armappplatform.NetworkProfile{ // IngressConfig: &armappplatform.IngressConfig{ // ReadTimeoutInSeconds: to.Ptr[int32](300), // }, // OutboundIPs: &armappplatform.NetworkProfileOutboundIPs{ // PublicIPs: []*string{ // to.Ptr("20.39.3.173"), // to.Ptr("40.64.67.13")}, // }, // RequiredTraffics: []*armappplatform.RequiredTraffic{ // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](443), // Protocol: to.Ptr("TCP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](1194), // Protocol: to.Ptr("UDP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](9000), // Protocol: to.Ptr("TCP"), // }}, // }, // ProvisioningState: to.Ptr(armappplatform.ProvisioningStateSucceeded), // ServiceID: to.Ptr("12345678abcd1234abcd12345678abcd"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Tier: to.Ptr("Standard"), // }, // } }
Output:
func (*ServicesClient) ListTestKeys ¶
func (client *ServicesClient) ListTestKeys(ctx context.Context, resourceGroupName string, serviceName string, options *ServicesClientListTestKeysOptions) (ServicesClientListTestKeysResponse, error)
ListTestKeys - List test keys for a Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - ServicesClientListTestKeysOptions contains the optional parameters for the ServicesClient.ListTestKeys method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_ListTestKeys.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServicesClient().ListTestKeys(ctx, "myResourceGroup", "myservice", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.TestKeys = armappplatform.TestKeys{ // Enabled: to.Ptr(true), // PrimaryKey: to.Ptr("<primaryKey>"), // PrimaryTestEndpoint: to.Ptr("<primaryTestEndpoint>"), // SecondaryKey: to.Ptr("<secondaryKey>"), // SecondaryTestEndpoint: to.Ptr("<secondaryTestEndpoint>"), // } }
Output:
func (*ServicesClient) NewListBySubscriptionPager ¶ added in v0.5.0
func (client *ServicesClient) NewListBySubscriptionPager(options *ServicesClientListBySubscriptionOptions) *runtime.Pager[ServicesClientListBySubscriptionResponse]
NewListBySubscriptionPager - Handles requests to list all resources in a subscription.
Generated from API version 2022-11-01-preview
- options - ServicesClientListBySubscriptionOptions contains the optional parameters for the ServicesClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_ListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServicesClient().NewListBySubscriptionPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServiceResourceList = armappplatform.ServiceResourceList{ // Value: []*armappplatform.ServiceResource{ // { // Name: to.Ptr("myservice"), // Type: to.Ptr("Microsoft.AppPlatform/Spring"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Location: to.Ptr("eastus"), // Tags: map[string]*string{ // "key1": to.Ptr("value1"), // }, // Properties: &armappplatform.ClusterResourceProperties{ // NetworkProfile: &armappplatform.NetworkProfile{ // IngressConfig: &armappplatform.IngressConfig{ // ReadTimeoutInSeconds: to.Ptr[int32](300), // }, // OutboundIPs: &armappplatform.NetworkProfileOutboundIPs{ // PublicIPs: []*string{ // to.Ptr("20.39.3.173"), // to.Ptr("40.64.67.13")}, // }, // RequiredTraffics: []*armappplatform.RequiredTraffic{ // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](443), // Protocol: to.Ptr("TCP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](1194), // Protocol: to.Ptr("UDP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](9000), // Protocol: to.Ptr("TCP"), // }}, // }, // ProvisioningState: to.Ptr(armappplatform.ProvisioningStateSucceeded), // ServiceID: to.Ptr("12345678abcd1234abcd12345678abcd"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Tier: to.Ptr("Standard"), // }, // }}, // } } }
Output:
func (*ServicesClient) NewListPager ¶ added in v0.5.0
func (client *ServicesClient) NewListPager(resourceGroupName string, options *ServicesClientListOptions) *runtime.Pager[ServicesClientListResponse]
NewListPager - Handles requests to list all resources in a resource group.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- options - ServicesClientListOptions contains the optional parameters for the ServicesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServicesClient().NewListPager("myResourceGroup", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServiceResourceList = armappplatform.ServiceResourceList{ // Value: []*armappplatform.ServiceResource{ // { // Name: to.Ptr("myservice"), // Type: to.Ptr("Microsoft.AppPlatform/Spring"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Location: to.Ptr("eastus"), // Tags: map[string]*string{ // "key1": to.Ptr("value1"), // }, // Properties: &armappplatform.ClusterResourceProperties{ // NetworkProfile: &armappplatform.NetworkProfile{ // IngressConfig: &armappplatform.IngressConfig{ // ReadTimeoutInSeconds: to.Ptr[int32](300), // }, // OutboundIPs: &armappplatform.NetworkProfileOutboundIPs{ // PublicIPs: []*string{ // to.Ptr("20.39.3.173"), // to.Ptr("40.64.67.13")}, // }, // RequiredTraffics: []*armappplatform.RequiredTraffic{ // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](443), // Protocol: to.Ptr("TCP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](1194), // Protocol: to.Ptr("UDP"), // }, // { // Direction: to.Ptr(armappplatform.TrafficDirectionOutbound), // IPs: []*string{ // to.Ptr("20.62.211.25"), // to.Ptr("52.188.47.226")}, // Port: to.Ptr[int32](9000), // Protocol: to.Ptr("TCP"), // }}, // }, // ProvisioningState: to.Ptr(armappplatform.ProvisioningStateSucceeded), // ServiceID: to.Ptr("12345678abcd1234abcd12345678abcd"), // }, // SKU: &armappplatform.SKU{ // Name: to.Ptr("S0"), // Tier: to.Ptr("Standard"), // }, // }}, // } } }
Output:
func (*ServicesClient) RegenerateTestKey ¶
func (client *ServicesClient) RegenerateTestKey(ctx context.Context, resourceGroupName string, serviceName string, regenerateTestKeyRequest RegenerateTestKeyRequestPayload, options *ServicesClientRegenerateTestKeyOptions) (ServicesClientRegenerateTestKeyResponse, error)
RegenerateTestKey - Regenerate a test key for a Service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- regenerateTestKeyRequest - Parameters for the operation
- options - ServicesClientRegenerateTestKeyOptions contains the optional parameters for the ServicesClient.RegenerateTestKey method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Services_RegenerateTestKey.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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServicesClient().RegenerateTestKey(ctx, "myResourceGroup", "myservice", armappplatform.RegenerateTestKeyRequestPayload{ KeyType: to.Ptr(armappplatform.TestKeyTypePrimary), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.TestKeys = armappplatform.TestKeys{ // Enabled: to.Ptr(true), // PrimaryKey: to.Ptr("<primaryKey>"), // PrimaryTestEndpoint: to.Ptr("<primaryTestEndpoint>"), // SecondaryKey: to.Ptr("<secondaryKey>"), // SecondaryTestEndpoint: to.Ptr("<secondaryTestEndpoint>"), // } }
Output:
type ServicesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ServicesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServicesClient.BeginCreateOrUpdate method.
type ServicesClientBeginDeleteOptions ¶ added in v0.3.0
type ServicesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServicesClientBeginDeleteOptions contains the optional parameters for the ServicesClient.BeginDelete method.
type ServicesClientBeginStartOptions ¶ added in v0.3.0
type ServicesClientBeginStartOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServicesClientBeginStartOptions contains the optional parameters for the ServicesClient.BeginStart method.
type ServicesClientBeginStopOptions ¶ added in v0.3.0
type ServicesClientBeginStopOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServicesClientBeginStopOptions contains the optional parameters for the ServicesClient.BeginStop method.
type ServicesClientBeginUpdateOptions ¶ added in v0.3.0
type ServicesClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServicesClientBeginUpdateOptions contains the optional parameters for the ServicesClient.BeginUpdate method.
type ServicesClientCheckNameAvailabilityOptions ¶ added in v0.3.0
type ServicesClientCheckNameAvailabilityOptions struct { }
ServicesClientCheckNameAvailabilityOptions contains the optional parameters for the ServicesClient.CheckNameAvailability method.
type ServicesClientCheckNameAvailabilityResponse ¶ added in v0.3.0
type ServicesClientCheckNameAvailabilityResponse struct {
NameAvailability
}
ServicesClientCheckNameAvailabilityResponse contains the response from method ServicesClient.CheckNameAvailability.
type ServicesClientCreateOrUpdateResponse ¶ added in v0.3.0
type ServicesClientCreateOrUpdateResponse struct {
ServiceResource
}
ServicesClientCreateOrUpdateResponse contains the response from method ServicesClient.BeginCreateOrUpdate.
type ServicesClientDeleteResponse ¶ added in v0.3.0
type ServicesClientDeleteResponse struct { }
ServicesClientDeleteResponse contains the response from method ServicesClient.BeginDelete.
type ServicesClientDisableTestEndpointOptions ¶ added in v0.3.0
type ServicesClientDisableTestEndpointOptions struct { }
ServicesClientDisableTestEndpointOptions contains the optional parameters for the ServicesClient.DisableTestEndpoint method.
type ServicesClientDisableTestEndpointResponse ¶ added in v0.3.0
type ServicesClientDisableTestEndpointResponse struct { }
ServicesClientDisableTestEndpointResponse contains the response from method ServicesClient.DisableTestEndpoint.
type ServicesClientEnableTestEndpointOptions ¶ added in v0.3.0
type ServicesClientEnableTestEndpointOptions struct { }
ServicesClientEnableTestEndpointOptions contains the optional parameters for the ServicesClient.EnableTestEndpoint method.
type ServicesClientEnableTestEndpointResponse ¶ added in v0.3.0
type ServicesClientEnableTestEndpointResponse struct {
TestKeys
}
ServicesClientEnableTestEndpointResponse contains the response from method ServicesClient.EnableTestEndpoint.
type ServicesClientGetOptions ¶ added in v0.3.0
type ServicesClientGetOptions struct { }
ServicesClientGetOptions contains the optional parameters for the ServicesClient.Get method.
type ServicesClientGetResponse ¶ added in v0.3.0
type ServicesClientGetResponse struct {
ServiceResource
}
ServicesClientGetResponse contains the response from method ServicesClient.Get.
type ServicesClientListBySubscriptionOptions ¶ added in v0.3.0
type ServicesClientListBySubscriptionOptions struct { }
ServicesClientListBySubscriptionOptions contains the optional parameters for the ServicesClient.NewListBySubscriptionPager method.
type ServicesClientListBySubscriptionResponse ¶ added in v0.3.0
type ServicesClientListBySubscriptionResponse struct {
ServiceResourceList
}
ServicesClientListBySubscriptionResponse contains the response from method ServicesClient.NewListBySubscriptionPager.
type ServicesClientListOptions ¶ added in v0.3.0
type ServicesClientListOptions struct { }
ServicesClientListOptions contains the optional parameters for the ServicesClient.NewListPager method.
type ServicesClientListResponse ¶ added in v0.3.0
type ServicesClientListResponse struct {
ServiceResourceList
}
ServicesClientListResponse contains the response from method ServicesClient.NewListPager.
type ServicesClientListTestKeysOptions ¶ added in v0.3.0
type ServicesClientListTestKeysOptions struct { }
ServicesClientListTestKeysOptions contains the optional parameters for the ServicesClient.ListTestKeys method.
type ServicesClientListTestKeysResponse ¶ added in v0.3.0
type ServicesClientListTestKeysResponse struct {
TestKeys
}
ServicesClientListTestKeysResponse contains the response from method ServicesClient.ListTestKeys.
type ServicesClientRegenerateTestKeyOptions ¶ added in v0.3.0
type ServicesClientRegenerateTestKeyOptions struct { }
ServicesClientRegenerateTestKeyOptions contains the optional parameters for the ServicesClient.RegenerateTestKey method.
type ServicesClientRegenerateTestKeyResponse ¶ added in v0.3.0
type ServicesClientRegenerateTestKeyResponse struct {
TestKeys
}
ServicesClientRegenerateTestKeyResponse contains the response from method ServicesClient.RegenerateTestKey.
type ServicesClientStartResponse ¶ added in v0.3.0
type ServicesClientStartResponse struct { }
ServicesClientStartResponse contains the response from method ServicesClient.BeginStart.
type ServicesClientStopResponse ¶ added in v0.3.0
type ServicesClientStopResponse struct { }
ServicesClientStopResponse contains the response from method ServicesClient.BeginStop.
type ServicesClientUpdateResponse ¶ added in v0.3.0
type ServicesClientUpdateResponse struct {
ServiceResource
}
ServicesClientUpdateResponse contains the response from method ServicesClient.BeginUpdate.
type SessionAffinity ¶
type SessionAffinity string
SessionAffinity - Type of the affinity, set this to Cookie to enable session affinity.
const ( SessionAffinityCookie SessionAffinity = "Cookie" SessionAffinityNone SessionAffinity = "None" )
func PossibleSessionAffinityValues ¶
func PossibleSessionAffinityValues() []SessionAffinity
PossibleSessionAffinityValues returns the possible values for the SessionAffinity const type.
type SourceUploadedUserSourceInfo ¶ added in v0.3.0
type SourceUploadedUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // Selector for the artifact to be used for the deployment for multi-module projects. This should be the relative path to // the target module/project. ArtifactSelector *string `json:"artifactSelector,omitempty"` // Relative path of the storage which stores the source RelativePath *string `json:"relativePath,omitempty"` // Runtime version of the source file RuntimeVersion *string `json:"runtimeVersion,omitempty"` // Version of the source Version *string `json:"version,omitempty"` }
SourceUploadedUserSourceInfo - Uploaded Java source code binary for a deployment
func (*SourceUploadedUserSourceInfo) GetUploadedUserSourceInfo ¶ added in v0.3.0
func (s *SourceUploadedUserSourceInfo) GetUploadedUserSourceInfo() *UploadedUserSourceInfo
GetUploadedUserSourceInfo implements the UploadedUserSourceInfoClassification interface for type SourceUploadedUserSourceInfo.
func (*SourceUploadedUserSourceInfo) GetUserSourceInfo ¶ added in v0.3.0
func (s *SourceUploadedUserSourceInfo) GetUserSourceInfo() *UserSourceInfo
GetUserSourceInfo implements the UserSourceInfoClassification interface for type SourceUploadedUserSourceInfo.
func (SourceUploadedUserSourceInfo) MarshalJSON ¶ added in v0.3.0
func (s SourceUploadedUserSourceInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SourceUploadedUserSourceInfo.
func (*SourceUploadedUserSourceInfo) UnmarshalJSON ¶ added in v0.3.0
func (s *SourceUploadedUserSourceInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SourceUploadedUserSourceInfo.
type SsoProperties ¶ added in v0.3.0
type SsoProperties struct { // The public identifier for the application ClientID *string `json:"clientId,omitempty"` // The secret known only to the application and the authorization server ClientSecret *string `json:"clientSecret,omitempty"` // The URI of Issuer Identifier IssuerURI *string `json:"issuerUri,omitempty"` // It defines the specific actions applications can be allowed to do on a user's behalf Scope []*string `json:"scope,omitempty"` }
SsoProperties - Single sign-on related configuration
func (SsoProperties) MarshalJSON ¶ added in v0.3.0
func (s SsoProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SsoProperties.
func (*SsoProperties) UnmarshalJSON ¶
func (s *SsoProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SsoProperties.
type StackProperties ¶ added in v0.3.0
type StackProperties struct { // Id of the ClusterStack. ID *string `json:"id,omitempty"` // Version of the ClusterStack Version *string `json:"version,omitempty"` }
StackProperties - KPack ClusterStack properties payload
func (StackProperties) MarshalJSON ¶ added in v1.1.0
func (s StackProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StackProperties.
func (*StackProperties) UnmarshalJSON ¶ added in v1.1.0
func (s *StackProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StackProperties.
type StorageAccount ¶ added in v0.2.0
type StorageAccount struct { // REQUIRED; The account key of the Azure Storage Account. AccountKey *string `json:"accountKey,omitempty"` // REQUIRED; The account name of the Azure Storage Account. AccountName *string `json:"accountName,omitempty"` // REQUIRED; The type of the storage. StorageType *StorageType `json:"storageType,omitempty"` }
StorageAccount - storage resource of type Azure Storage Account.
func (*StorageAccount) GetStorageProperties ¶ added in v0.3.0
func (s *StorageAccount) GetStorageProperties() *StorageProperties
GetStorageProperties implements the StoragePropertiesClassification interface for type StorageAccount.
func (StorageAccount) MarshalJSON ¶ added in v0.2.0
func (s StorageAccount) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccount.
func (*StorageAccount) UnmarshalJSON ¶ added in v0.2.0
func (s *StorageAccount) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccount.
type StorageProperties ¶ added in v0.2.0
type StorageProperties struct { // REQUIRED; The type of the storage. StorageType *StorageType `json:"storageType,omitempty"` }
StorageProperties - Storage resource payload.
func (*StorageProperties) GetStorageProperties ¶ added in v0.2.0
func (s *StorageProperties) GetStorageProperties() *StorageProperties
GetStorageProperties implements the StoragePropertiesClassification interface for type StorageProperties.
func (StorageProperties) MarshalJSON ¶
func (s StorageProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageProperties.
func (*StorageProperties) UnmarshalJSON ¶ added in v0.2.0
func (s *StorageProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageProperties.
type StoragePropertiesClassification ¶ added in v0.2.0
type StoragePropertiesClassification interface { // GetStorageProperties returns the StorageProperties content of the underlying type. GetStorageProperties() *StorageProperties }
StoragePropertiesClassification provides polymorphic access to related types. Call the interface's GetStorageProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *StorageAccount, *StorageProperties
type StorageResource ¶ added in v0.2.0
type StorageResource struct { // Properties of the storage resource payload. Properties StoragePropertiesClassification `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
StorageResource - Storage resource payload.
func (StorageResource) MarshalJSON ¶ added in v0.2.0
func (s StorageResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageResource.
func (*StorageResource) UnmarshalJSON ¶ added in v0.2.0
func (s *StorageResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageResource.
type StorageResourceCollection ¶ added in v0.2.0
type StorageResourceCollection struct { // The link to next page of storage list. NextLink *string `json:"nextLink,omitempty"` // The storage resources list. Value []*StorageResource `json:"value,omitempty"` }
StorageResourceCollection - Collection compose of storage resources list and a possible link for next page.
func (StorageResourceCollection) MarshalJSON ¶ added in v0.2.0
func (s StorageResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageResourceCollection.
func (*StorageResourceCollection) UnmarshalJSON ¶
func (s *StorageResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageResourceCollection.
type StorageType ¶ added in v0.4.0
type StorageType string
StorageType - The type of the storage.
const (
StorageTypeStorageAccount StorageType = "StorageAccount"
)
func PossibleStorageTypeValues ¶ added in v0.4.0
func PossibleStorageTypeValues() []StorageType
PossibleStorageTypeValues returns the possible values for the StorageType const type.
type StoragesClient ¶ added in v0.2.0
type StoragesClient struct {
// contains filtered or unexported fields
}
StoragesClient contains the methods for the Storages group. Don't use this type directly, use NewStoragesClient() instead.
func NewStoragesClient ¶ added in v0.2.0
func NewStoragesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StoragesClient, error)
NewStoragesClient creates a new instance of StoragesClient with the specified values.
- subscriptionID - Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*StoragesClient) BeginCreateOrUpdate ¶ added in v0.2.0
func (client *StoragesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, storageName string, storageResource StorageResource, options *StoragesClientBeginCreateOrUpdateOptions) (*runtime.Poller[StoragesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update storage resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- storageName - The name of the storage resource.
- storageResource - Parameters for the create or update operation
- options - StoragesClientBeginCreateOrUpdateOptions contains the optional parameters for the StoragesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Storages_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/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewStoragesClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myservice", "mystorage", armappplatform.StorageResource{ Properties: &armappplatform.StorageAccount{ StorageType: to.Ptr(armappplatform.StorageTypeStorageAccount), AccountKey: to.Ptr("account-key-of-storage-account"), AccountName: to.Ptr("storage-account-name"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.StorageResource = armappplatform.StorageResource{ // Name: to.Ptr("mystorage"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/storages"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/storages/mystorage"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.StorageAccount{ // StorageType: to.Ptr(armappplatform.StorageTypeStorageAccount), // AccountName: to.Ptr("storage-account-name"), // }, // } }
Output:
func (*StoragesClient) BeginDelete ¶ added in v0.2.0
func (client *StoragesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, storageName string, options *StoragesClientBeginDeleteOptions) (*runtime.Poller[StoragesClientDeleteResponse], error)
BeginDelete - Delete the storage resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- storageName - The name of the storage resource.
- options - StoragesClientBeginDeleteOptions contains the optional parameters for the StoragesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Storages_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewStoragesClient().BeginDelete(ctx, "myResourceGroup", "myservice", "mystorage", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*StoragesClient) Get ¶ added in v0.2.0
func (client *StoragesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, storageName string, options *StoragesClientGetOptions) (StoragesClientGetResponse, error)
Get - Get the storage resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- storageName - The name of the storage resource.
- options - StoragesClientGetOptions contains the optional parameters for the StoragesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Storages_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewStoragesClient().Get(ctx, "myResourceGroup", "myservice", "mystorage", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.StorageResource = armappplatform.StorageResource{ // Name: to.Ptr("mystorage"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/storages"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/storages/mystorage"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.StorageAccount{ // StorageType: to.Ptr(armappplatform.StorageTypeStorageAccount), // AccountName: to.Ptr("storage-account-name"), // }, // } }
Output:
func (*StoragesClient) NewListPager ¶ added in v0.5.0
func (client *StoragesClient) NewListPager(resourceGroupName string, serviceName string, options *StoragesClientListOptions) *runtime.Pager[StoragesClientListResponse]
NewListPager - List all the storages of one Azure Spring Apps resource.
Generated from API version 2022-11-01-preview
- resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName - The name of the Service resource.
- options - StoragesClientListOptions contains the optional parameters for the StoragesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/86ead567acadc5a059949bca607a5e702610551f/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-11-01-preview/examples/Storages_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewStoragesClient().NewListPager("myResourceGroup", "myService", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.StorageResourceCollection = armappplatform.StorageResourceCollection{ // Value: []*armappplatform.StorageResource{ // { // Name: to.Ptr("mystorage"), // Type: to.Ptr("Microsoft.AppPlatform/Spring/storages"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/storages/mystorage"), // SystemData: &armappplatform.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:16:03.944Z"); return t}()), // CreatedBy: to.Ptr("sample-user"), // CreatedByType: to.Ptr(armappplatform.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-11T03:17:03.944Z"); return t}()), // LastModifiedBy: to.Ptr("sample-user"), // LastModifiedByType: to.Ptr(armappplatform.LastModifiedByTypeUser), // }, // Properties: &armappplatform.StorageAccount{ // StorageType: to.Ptr(armappplatform.StorageTypeStorageAccount), // AccountName: to.Ptr("storage-account-name"), // }, // }}, // } } }
Output:
type StoragesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type StoragesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
StoragesClientBeginCreateOrUpdateOptions contains the optional parameters for the StoragesClient.BeginCreateOrUpdate method.
type StoragesClientBeginDeleteOptions ¶ added in v0.3.0
type StoragesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
StoragesClientBeginDeleteOptions contains the optional parameters for the StoragesClient.BeginDelete method.
type StoragesClientCreateOrUpdateResponse ¶ added in v0.3.0
type StoragesClientCreateOrUpdateResponse struct {
StorageResource
}
StoragesClientCreateOrUpdateResponse contains the response from method StoragesClient.BeginCreateOrUpdate.
type StoragesClientDeleteResponse ¶ added in v0.3.0
type StoragesClientDeleteResponse struct { }
StoragesClientDeleteResponse contains the response from method StoragesClient.BeginDelete.
type StoragesClientGetOptions ¶ added in v0.3.0
type StoragesClientGetOptions struct { }
StoragesClientGetOptions contains the optional parameters for the StoragesClient.Get method.
type StoragesClientGetResponse ¶ added in v0.3.0
type StoragesClientGetResponse struct {
StorageResource
}
StoragesClientGetResponse contains the response from method StoragesClient.Get.
type StoragesClientListOptions ¶ added in v0.3.0
type StoragesClientListOptions struct { }
StoragesClientListOptions contains the optional parameters for the StoragesClient.NewListPager method.
type StoragesClientListResponse ¶ added in v0.3.0
type StoragesClientListResponse struct {
StorageResourceCollection
}
StoragesClientListResponse contains the response from method StoragesClient.NewListPager.
type SupportedBuildpackResource ¶ added in v0.3.0
type SupportedBuildpackResource struct { // Supported buildpack resource properties Properties *SupportedBuildpackResourceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
SupportedBuildpackResource - Supported buildpack resource payload
func (SupportedBuildpackResource) MarshalJSON ¶ added in v1.1.0
func (s SupportedBuildpackResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SupportedBuildpackResource.
func (*SupportedBuildpackResource) UnmarshalJSON ¶ added in v1.1.0
func (s *SupportedBuildpackResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SupportedBuildpackResource.
type SupportedBuildpackResourceProperties ¶ added in v0.3.0
type SupportedBuildpackResourceProperties struct { // The id of supported buildpack BuildpackID *string `json:"buildpackId,omitempty"` }
SupportedBuildpackResourceProperties - Supported buildpack resource properties
func (SupportedBuildpackResourceProperties) MarshalJSON ¶ added in v1.1.0
func (s SupportedBuildpackResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SupportedBuildpackResourceProperties.
func (*SupportedBuildpackResourceProperties) UnmarshalJSON ¶ added in v1.1.0
func (s *SupportedBuildpackResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SupportedBuildpackResourceProperties.
type SupportedBuildpacksCollection ¶ added in v0.3.0
type SupportedBuildpacksCollection 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 supported buildpacks resources Value []*SupportedBuildpackResource `json:"value,omitempty"` }
SupportedBuildpacksCollection - Object that includes an array of supported buildpacks resources and a possible link for next set
func (SupportedBuildpacksCollection) MarshalJSON ¶ added in v0.3.0
func (s SupportedBuildpacksCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SupportedBuildpacksCollection.
func (*SupportedBuildpacksCollection) UnmarshalJSON ¶ added in v1.1.0
func (s *SupportedBuildpacksCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SupportedBuildpacksCollection.
type SupportedRuntimePlatform ¶
type SupportedRuntimePlatform string
SupportedRuntimePlatform - The platform of this runtime version (possible values: "Java" or ".NET").
const ( SupportedRuntimePlatformJava SupportedRuntimePlatform = "Java" SupportedRuntimePlatformNETCore SupportedRuntimePlatform = ".NET Core" )
func PossibleSupportedRuntimePlatformValues ¶
func PossibleSupportedRuntimePlatformValues() []SupportedRuntimePlatform
PossibleSupportedRuntimePlatformValues returns the possible values for the SupportedRuntimePlatform const type.
type SupportedRuntimeValue ¶
type SupportedRuntimeValue string
SupportedRuntimeValue - The raw value which could be passed to deployment CRUD operations.
const ( SupportedRuntimeValueJava11 SupportedRuntimeValue = "Java_11" SupportedRuntimeValueJava17 SupportedRuntimeValue = "Java_17" SupportedRuntimeValueJava8 SupportedRuntimeValue = "Java_8" SupportedRuntimeValueNetCore31 SupportedRuntimeValue = "NetCore_31" )
func PossibleSupportedRuntimeValueValues ¶
func PossibleSupportedRuntimeValueValues() []SupportedRuntimeValue
PossibleSupportedRuntimeValueValues returns the possible values for the SupportedRuntimeValue const type.
type SupportedRuntimeVersion ¶
type SupportedRuntimeVersion struct { // The platform of this runtime version (possible values: "Java" or ".NET"). Platform *SupportedRuntimePlatform `json:"platform,omitempty"` // The raw value which could be passed to deployment CRUD operations. Value *SupportedRuntimeValue `json:"value,omitempty"` // The detailed version (major.minor) of the platform. Version *string `json:"version,omitempty"` }
SupportedRuntimeVersion - Supported deployment runtime version descriptor.
func (SupportedRuntimeVersion) MarshalJSON ¶ added in v1.1.0
func (s SupportedRuntimeVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SupportedRuntimeVersion.
func (*SupportedRuntimeVersion) UnmarshalJSON ¶ added in v1.1.0
func (s *SupportedRuntimeVersion) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SupportedRuntimeVersion.
type SupportedStackResource ¶ added in v0.3.0
type SupportedStackResource struct { // Supported stack resource properties Properties *SupportedStackResourceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
SupportedStackResource - Supported stack resource payload
func (SupportedStackResource) MarshalJSON ¶ added in v1.1.0
func (s SupportedStackResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SupportedStackResource.
func (*SupportedStackResource) UnmarshalJSON ¶ added in v1.1.0
func (s *SupportedStackResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SupportedStackResource.
type SupportedStackResourceProperties ¶ added in v0.3.0
type SupportedStackResourceProperties struct { // The id of supported stack StackID *string `json:"stackId,omitempty"` // The version of supported stack Version *string `json:"version,omitempty"` }
SupportedStackResourceProperties - Supported stack resource properties
func (SupportedStackResourceProperties) MarshalJSON ¶ added in v1.1.0
func (s SupportedStackResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SupportedStackResourceProperties.
func (*SupportedStackResourceProperties) UnmarshalJSON ¶ added in v1.1.0
func (s *SupportedStackResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SupportedStackResourceProperties.
type SupportedStacksCollection ¶ added in v0.3.0
type SupportedStacksCollection 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 supported stacks resources Value []*SupportedStackResource `json:"value,omitempty"` }
SupportedStacksCollection - Object that includes an array of supported stacks resources and a possible link for next set
func (SupportedStacksCollection) MarshalJSON ¶ added in v0.3.0
func (s SupportedStacksCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SupportedStacksCollection.
func (*SupportedStacksCollection) UnmarshalJSON ¶ added in v1.1.0
func (s *SupportedStacksCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SupportedStacksCollection.
type SystemData ¶ added in v0.2.0
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 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 *LastModifiedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶ added in v0.2.0
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶ added in v0.2.0
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TCPSocketAction ¶
type TCPSocketAction struct { // REQUIRED; The type of the action to take to perform the health check. Type *ProbeActionType `json:"type,omitempty"` }
TCPSocketAction describes an action based on opening a socket
func (*TCPSocketAction) GetProbeAction ¶
func (t *TCPSocketAction) GetProbeAction() *ProbeAction
GetProbeAction implements the ProbeActionClassification interface for type TCPSocketAction.
func (TCPSocketAction) MarshalJSON ¶
func (t TCPSocketAction) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TCPSocketAction.
func (*TCPSocketAction) UnmarshalJSON ¶
func (t *TCPSocketAction) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TCPSocketAction.
type TemporaryDisk ¶
type TemporaryDisk struct { // Mount path of the temporary disk MountPath *string `json:"mountPath,omitempty"` // Size of the temporary disk in GB SizeInGB *int32 `json:"sizeInGB,omitempty"` }
TemporaryDisk - Temporary disk payload
func (TemporaryDisk) MarshalJSON ¶ added in v1.1.0
func (t TemporaryDisk) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TemporaryDisk.
func (*TemporaryDisk) UnmarshalJSON ¶ added in v1.1.0
func (t *TemporaryDisk) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TemporaryDisk.
type TestKeyType ¶
type TestKeyType string
TestKeyType - Type of the test key
const ( TestKeyTypePrimary TestKeyType = "Primary" TestKeyTypeSecondary TestKeyType = "Secondary" )
func PossibleTestKeyTypeValues ¶
func PossibleTestKeyTypeValues() []TestKeyType
PossibleTestKeyTypeValues returns the possible values for the TestKeyType const type.
type TestKeys ¶
type TestKeys struct { // Indicates whether the test endpoint feature enabled or not Enabled *bool `json:"enabled,omitempty"` // Primary key PrimaryKey *string `json:"primaryKey,omitempty"` // Primary test endpoint PrimaryTestEndpoint *string `json:"primaryTestEndpoint,omitempty"` // Secondary key SecondaryKey *string `json:"secondaryKey,omitempty"` // Secondary test endpoint SecondaryTestEndpoint *string `json:"secondaryTestEndpoint,omitempty"` }
TestKeys - Test keys payload
func (TestKeys) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type TestKeys.
func (*TestKeys) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type TestKeys.
type TrackedResource ¶
type TrackedResource struct { // The GEO location of the resource. Location *string `json:"location,omitempty"` // Tags of the service which is a list of key value pairs that describe the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - The resource model definition for a ARM tracked top level resource.
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
func (*TrackedResource) UnmarshalJSON ¶ added in v0.2.0
func (t *TrackedResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.
type TrafficDirection ¶
type TrafficDirection string
TrafficDirection - The direction of required traffic
const ( TrafficDirectionInbound TrafficDirection = "Inbound" TrafficDirectionOutbound TrafficDirection = "Outbound" )
func PossibleTrafficDirectionValues ¶
func PossibleTrafficDirectionValues() []TrafficDirection
PossibleTrafficDirectionValues returns the possible values for the TrafficDirection const type.
type TriggeredBuildResult ¶ added in v0.3.0
type TriggeredBuildResult struct { // The unique build id of this build result ID *string `json:"id,omitempty"` }
TriggeredBuildResult - The build result triggered by a build
func (TriggeredBuildResult) MarshalJSON ¶ added in v1.1.0
func (t TriggeredBuildResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TriggeredBuildResult.
func (*TriggeredBuildResult) UnmarshalJSON ¶ added in v1.1.0
func (t *TriggeredBuildResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TriggeredBuildResult.
type Type ¶ added in v0.4.0
type Type string
Type - The type of the underlying resource to mount as a persistent disk.
const (
TypeAzureFileVolume Type = "AzureFileVolume"
)
func PossibleTypeValues ¶ added in v0.4.0
func PossibleTypeValues() []Type
PossibleTypeValues returns the possible values for the Type const type.
type UploadedUserSourceInfo ¶ added in v0.3.0
type UploadedUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // Relative path of the storage which stores the source RelativePath *string `json:"relativePath,omitempty"` // Version of the source Version *string `json:"version,omitempty"` }
UploadedUserSourceInfo - Source with uploaded location
func (*UploadedUserSourceInfo) GetUploadedUserSourceInfo ¶ added in v0.3.0
func (u *UploadedUserSourceInfo) GetUploadedUserSourceInfo() *UploadedUserSourceInfo
GetUploadedUserSourceInfo implements the UploadedUserSourceInfoClassification interface for type UploadedUserSourceInfo.
func (*UploadedUserSourceInfo) GetUserSourceInfo ¶ added in v0.3.0
func (u *UploadedUserSourceInfo) GetUserSourceInfo() *UserSourceInfo
GetUserSourceInfo implements the UserSourceInfoClassification interface for type UploadedUserSourceInfo.
func (UploadedUserSourceInfo) MarshalJSON ¶ added in v0.3.0
func (u UploadedUserSourceInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UploadedUserSourceInfo.
func (*UploadedUserSourceInfo) UnmarshalJSON ¶ added in v0.3.0
func (u *UploadedUserSourceInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UploadedUserSourceInfo.
type UploadedUserSourceInfoClassification ¶ added in v0.3.0
type UploadedUserSourceInfoClassification interface { UserSourceInfoClassification // GetUploadedUserSourceInfo returns the UploadedUserSourceInfo content of the underlying type. GetUploadedUserSourceInfo() *UploadedUserSourceInfo }
UploadedUserSourceInfoClassification provides polymorphic access to related types. Call the interface's GetUploadedUserSourceInfo() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *JarUploadedUserSourceInfo, *NetCoreZipUploadedUserSourceInfo, *SourceUploadedUserSourceInfo, *UploadedUserSourceInfo
type UserAssignedManagedIdentity ¶ added in v0.4.0
type UserAssignedManagedIdentity struct { // READ-ONLY; Client Id of user-assigned managed identity. ClientID *string `json:"clientId,omitempty" azure:"ro"` // READ-ONLY; Principal Id of user-assigned managed identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` }
UserAssignedManagedIdentity - The details of the user-assigned managed identity assigned to an App.
func (UserAssignedManagedIdentity) MarshalJSON ¶
func (u UserAssignedManagedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserAssignedManagedIdentity.
func (*UserAssignedManagedIdentity) UnmarshalJSON ¶
func (u *UserAssignedManagedIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedManagedIdentity.
type UserSourceInfo ¶
type UserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // Version of the source Version *string `json:"version,omitempty"` }
UserSourceInfo - Source information for a deployment
func (*UserSourceInfo) GetUserSourceInfo ¶ added in v0.3.0
func (u *UserSourceInfo) GetUserSourceInfo() *UserSourceInfo
GetUserSourceInfo implements the UserSourceInfoClassification interface for type UserSourceInfo.
func (UserSourceInfo) MarshalJSON ¶ added in v1.1.0
func (u UserSourceInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserSourceInfo.
func (*UserSourceInfo) UnmarshalJSON ¶ added in v1.1.0
func (u *UserSourceInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserSourceInfo.
type UserSourceInfoClassification ¶ added in v0.3.0
type UserSourceInfoClassification interface { // GetUserSourceInfo returns the UserSourceInfo content of the underlying type. GetUserSourceInfo() *UserSourceInfo }
UserSourceInfoClassification provides polymorphic access to related types. Call the interface's GetUserSourceInfo() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *BuildResultUserSourceInfo, *CustomContainerUserSourceInfo, *JarUploadedUserSourceInfo, *NetCoreZipUploadedUserSourceInfo, - *SourceUploadedUserSourceInfo, *UploadedUserSourceInfo, *UserSourceInfo
type ValidationMessages ¶ added in v0.3.0
type ValidationMessages struct { // Detailed validation messages. Messages []*string `json:"messages,omitempty"` // The name of the configuration service git repository. Name *string `json:"name,omitempty"` }
ValidationMessages - Validate messages of the configuration service git repositories
func (ValidationMessages) MarshalJSON ¶ added in v0.3.0
func (v ValidationMessages) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ValidationMessages.
func (*ValidationMessages) UnmarshalJSON ¶ added in v1.1.0
func (v *ValidationMessages) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ValidationMessages.
Source Files ¶
- apiportalcustomdomains_client.go
- apiportals_client.go
- applicationaccelerators_client.go
- applicationliveviews_client.go
- apps_client.go
- bindings_client.go
- build.go
- buildpackbinding_client.go
- buildservice_client.go
- buildserviceagentpool_client.go
- buildservicebuilder_client.go
- certificates_client.go
- client_factory.go
- configservers_client.go
- configurationservices_client.go
- constants.go
- customdomains_client.go
- customizedaccelerators_client.go
- deployments_client.go
- devtoolportals_client.go
- gatewaycustomdomains_client.go
- gatewayrouteconfigs_client.go
- gateways_client.go
- models.go
- models_serde.go
- monitoringsettings_client.go
- operations_client.go
- polymorphic_helpers.go
- predefinedaccelerators_client.go
- response_types.go
- runtimeversions_client.go
- serviceregistries_client.go
- services_client.go
- skus_client.go
- storages_client.go
- time_rfc3339.go