Documentation
¶
Index ¶
- type APIPortalCustomDomainProperties
- type APIPortalCustomDomainResource
- type APIPortalCustomDomainResourceCollection
- type APIPortalCustomDomainsClient
- func (client *APIPortalCustomDomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (APIPortalCustomDomainsClientCreateOrUpdatePollerResponse, error)
- func (client *APIPortalCustomDomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (APIPortalCustomDomainsClientDeletePollerResponse, error)
- func (client *APIPortalCustomDomainsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (APIPortalCustomDomainsClientGetResponse, error)
- func (client *APIPortalCustomDomainsClient) List(resourceGroupName string, serviceName string, apiPortalName string, ...) *APIPortalCustomDomainsClientListPager
- type APIPortalCustomDomainsClientBeginCreateOrUpdateOptions
- type APIPortalCustomDomainsClientBeginDeleteOptions
- type APIPortalCustomDomainsClientCreateOrUpdatePoller
- func (p *APIPortalCustomDomainsClientCreateOrUpdatePoller) Done() bool
- func (p *APIPortalCustomDomainsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (APIPortalCustomDomainsClientCreateOrUpdateResponse, error)
- func (p *APIPortalCustomDomainsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *APIPortalCustomDomainsClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type APIPortalCustomDomainsClientCreateOrUpdatePollerResponse
- func (l APIPortalCustomDomainsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (APIPortalCustomDomainsClientCreateOrUpdateResponse, error)
- func (l *APIPortalCustomDomainsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *APIPortalCustomDomainsClient, token string) error
- type APIPortalCustomDomainsClientCreateOrUpdateResponse
- type APIPortalCustomDomainsClientCreateOrUpdateResult
- type APIPortalCustomDomainsClientDeletePoller
- func (p *APIPortalCustomDomainsClientDeletePoller) Done() bool
- func (p *APIPortalCustomDomainsClientDeletePoller) FinalResponse(ctx context.Context) (APIPortalCustomDomainsClientDeleteResponse, error)
- func (p *APIPortalCustomDomainsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *APIPortalCustomDomainsClientDeletePoller) ResumeToken() (string, error)
- type APIPortalCustomDomainsClientDeletePollerResponse
- func (l APIPortalCustomDomainsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (APIPortalCustomDomainsClientDeleteResponse, error)
- func (l *APIPortalCustomDomainsClientDeletePollerResponse) Resume(ctx context.Context, client *APIPortalCustomDomainsClient, token string) error
- type APIPortalCustomDomainsClientDeleteResponse
- type APIPortalCustomDomainsClientGetOptions
- type APIPortalCustomDomainsClientGetResponse
- type APIPortalCustomDomainsClientGetResult
- type APIPortalCustomDomainsClientListOptions
- type APIPortalCustomDomainsClientListPager
- type APIPortalCustomDomainsClientListResponse
- type APIPortalCustomDomainsClientListResult
- 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, ...) (APIPortalsClientCreateOrUpdatePollerResponse, error)
- func (client *APIPortalsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (APIPortalsClientDeletePollerResponse, error)
- func (client *APIPortalsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (APIPortalsClientGetResponse, error)
- func (client *APIPortalsClient) List(resourceGroupName string, serviceName string, ...) *APIPortalsClientListPager
- func (client *APIPortalsClient) ValidateDomain(ctx context.Context, resourceGroupName string, serviceName string, ...) (APIPortalsClientValidateDomainResponse, error)
- type APIPortalsClientBeginCreateOrUpdateOptions
- type APIPortalsClientBeginDeleteOptions
- type APIPortalsClientCreateOrUpdatePoller
- func (p *APIPortalsClientCreateOrUpdatePoller) Done() bool
- func (p *APIPortalsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (APIPortalsClientCreateOrUpdateResponse, error)
- func (p *APIPortalsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *APIPortalsClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type APIPortalsClientCreateOrUpdatePollerResponse
- type APIPortalsClientCreateOrUpdateResponse
- type APIPortalsClientCreateOrUpdateResult
- type APIPortalsClientDeletePoller
- func (p *APIPortalsClientDeletePoller) Done() bool
- func (p *APIPortalsClientDeletePoller) FinalResponse(ctx context.Context) (APIPortalsClientDeleteResponse, error)
- func (p *APIPortalsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *APIPortalsClientDeletePoller) ResumeToken() (string, error)
- type APIPortalsClientDeletePollerResponse
- type APIPortalsClientDeleteResponse
- type APIPortalsClientGetOptions
- type APIPortalsClientGetResponse
- type APIPortalsClientGetResult
- type APIPortalsClientListOptions
- type APIPortalsClientListPager
- type APIPortalsClientListResponse
- type APIPortalsClientListResult
- type APIPortalsClientValidateDomainOptions
- type APIPortalsClientValidateDomainResponse
- type APIPortalsClientValidateDomainResult
- type ActiveDeploymentCollection
- type AppResource
- type AppResourceCollection
- type AppResourceProperties
- type AppResourceProvisioningState
- type ApplicationInsightsAgentVersions
- type AppsClient
- func (client *AppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (AppsClientCreateOrUpdatePollerResponse, error)
- func (client *AppsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (AppsClientDeletePollerResponse, error)
- func (client *AppsClient) BeginSetActiveDeployments(ctx context.Context, resourceGroupName string, serviceName string, ...) (AppsClientSetActiveDeploymentsPollerResponse, error)
- func (client *AppsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (AppsClientUpdatePollerResponse, 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) List(resourceGroupName string, serviceName string, options *AppsClientListOptions) *AppsClientListPager
- func (client *AppsClient) ValidateDomain(ctx context.Context, resourceGroupName string, serviceName string, ...) (AppsClientValidateDomainResponse, error)
- type AppsClientBeginCreateOrUpdateOptions
- type AppsClientBeginDeleteOptions
- type AppsClientBeginSetActiveDeploymentsOptions
- type AppsClientBeginUpdateOptions
- type AppsClientCreateOrUpdatePoller
- func (p *AppsClientCreateOrUpdatePoller) Done() bool
- func (p *AppsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (AppsClientCreateOrUpdateResponse, error)
- func (p *AppsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *AppsClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type AppsClientCreateOrUpdatePollerResponse
- type AppsClientCreateOrUpdateResponse
- type AppsClientCreateOrUpdateResult
- type AppsClientDeletePoller
- type AppsClientDeletePollerResponse
- type AppsClientDeleteResponse
- type AppsClientGetOptions
- type AppsClientGetResourceUploadURLOptions
- type AppsClientGetResourceUploadURLResponse
- type AppsClientGetResourceUploadURLResult
- type AppsClientGetResponse
- type AppsClientGetResult
- type AppsClientListOptions
- type AppsClientListPager
- type AppsClientListResponse
- type AppsClientListResult
- type AppsClientSetActiveDeploymentsPoller
- func (p *AppsClientSetActiveDeploymentsPoller) Done() bool
- func (p *AppsClientSetActiveDeploymentsPoller) FinalResponse(ctx context.Context) (AppsClientSetActiveDeploymentsResponse, error)
- func (p *AppsClientSetActiveDeploymentsPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *AppsClientSetActiveDeploymentsPoller) ResumeToken() (string, error)
- type AppsClientSetActiveDeploymentsPollerResponse
- type AppsClientSetActiveDeploymentsResponse
- type AppsClientSetActiveDeploymentsResult
- type AppsClientUpdatePoller
- type AppsClientUpdatePollerResponse
- type AppsClientUpdateResponse
- type AppsClientUpdateResult
- type AppsClientValidateDomainOptions
- type AppsClientValidateDomainResponse
- type AppsClientValidateDomainResult
- type AvailableOperations
- type AvailableRuntimeVersions
- type AzureFileVolume
- type BindingResource
- type BindingResourceCollection
- type BindingResourceProperties
- type BindingType
- type BindingsClient
- func (client *BindingsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (BindingsClientCreateOrUpdatePollerResponse, error)
- func (client *BindingsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (BindingsClientDeletePollerResponse, error)
- func (client *BindingsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (BindingsClientUpdatePollerResponse, error)
- func (client *BindingsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (BindingsClientGetResponse, error)
- func (client *BindingsClient) List(resourceGroupName string, serviceName string, appName string, ...) *BindingsClientListPager
- type BindingsClientBeginCreateOrUpdateOptions
- type BindingsClientBeginDeleteOptions
- type BindingsClientBeginUpdateOptions
- type BindingsClientCreateOrUpdatePoller
- func (p *BindingsClientCreateOrUpdatePoller) Done() bool
- func (p *BindingsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (BindingsClientCreateOrUpdateResponse, error)
- func (p *BindingsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *BindingsClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type BindingsClientCreateOrUpdatePollerResponse
- type BindingsClientCreateOrUpdateResponse
- type BindingsClientCreateOrUpdateResult
- type BindingsClientDeletePoller
- func (p *BindingsClientDeletePoller) Done() bool
- func (p *BindingsClientDeletePoller) FinalResponse(ctx context.Context) (BindingsClientDeleteResponse, error)
- func (p *BindingsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *BindingsClientDeletePoller) ResumeToken() (string, error)
- type BindingsClientDeletePollerResponse
- type BindingsClientDeleteResponse
- type BindingsClientGetOptions
- type BindingsClientGetResponse
- type BindingsClientGetResult
- type BindingsClientListOptions
- type BindingsClientListPager
- type BindingsClientListResponse
- type BindingsClientListResult
- type BindingsClientUpdatePoller
- func (p *BindingsClientUpdatePoller) Done() bool
- func (p *BindingsClientUpdatePoller) FinalResponse(ctx context.Context) (BindingsClientUpdateResponse, error)
- func (p *BindingsClientUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *BindingsClientUpdatePoller) ResumeToken() (string, error)
- type BindingsClientUpdatePollerResponse
- type BindingsClientUpdateResponse
- type BindingsClientUpdateResult
- type Build
- type BuildCollection
- type BuildProperties
- type BuildProvisioningState
- 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, ...) (BuildServiceAgentPoolClientUpdatePutPollerResponse, error)
- func (client *BuildServiceAgentPoolClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceAgentPoolClientGetResponse, error)
- func (client *BuildServiceAgentPoolClient) List(resourceGroupName string, serviceName string, buildServiceName string, ...) *BuildServiceAgentPoolClientListPager
- type BuildServiceAgentPoolClientBeginUpdatePutOptions
- type BuildServiceAgentPoolClientGetOptions
- type BuildServiceAgentPoolClientGetResponse
- type BuildServiceAgentPoolClientGetResult
- type BuildServiceAgentPoolClientListOptions
- type BuildServiceAgentPoolClientListPager
- type BuildServiceAgentPoolClientListResponse
- type BuildServiceAgentPoolClientListResult
- type BuildServiceAgentPoolClientUpdatePutPoller
- func (p *BuildServiceAgentPoolClientUpdatePutPoller) Done() bool
- func (p *BuildServiceAgentPoolClientUpdatePutPoller) FinalResponse(ctx context.Context) (BuildServiceAgentPoolClientUpdatePutResponse, error)
- func (p *BuildServiceAgentPoolClientUpdatePutPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *BuildServiceAgentPoolClientUpdatePutPoller) ResumeToken() (string, error)
- type BuildServiceAgentPoolClientUpdatePutPollerResponse
- func (l BuildServiceAgentPoolClientUpdatePutPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BuildServiceAgentPoolClientUpdatePutResponse, error)
- func (l *BuildServiceAgentPoolClientUpdatePutPollerResponse) Resume(ctx context.Context, client *BuildServiceAgentPoolClient, token string) error
- type BuildServiceAgentPoolClientUpdatePutResponse
- type BuildServiceAgentPoolClientUpdatePutResult
- type BuildServiceAgentPoolProperties
- type BuildServiceAgentPoolResource
- type BuildServiceAgentPoolResourceCollection
- type BuildServiceAgentPoolSizeProperties
- type BuildServiceBuilderClient
- func (client *BuildServiceBuilderClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceBuilderClientCreateOrUpdatePollerResponse, error)
- func (client *BuildServiceBuilderClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceBuilderClientDeletePollerResponse, error)
- func (client *BuildServiceBuilderClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildServiceBuilderClientGetResponse, error)
- func (client *BuildServiceBuilderClient) List(resourceGroupName string, serviceName string, buildServiceName string, ...) *BuildServiceBuilderClientListPager
- type BuildServiceBuilderClientBeginCreateOrUpdateOptions
- type BuildServiceBuilderClientBeginDeleteOptions
- type BuildServiceBuilderClientCreateOrUpdatePoller
- func (p *BuildServiceBuilderClientCreateOrUpdatePoller) Done() bool
- func (p *BuildServiceBuilderClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (BuildServiceBuilderClientCreateOrUpdateResponse, error)
- func (p *BuildServiceBuilderClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *BuildServiceBuilderClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type BuildServiceBuilderClientCreateOrUpdatePollerResponse
- func (l BuildServiceBuilderClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BuildServiceBuilderClientCreateOrUpdateResponse, error)
- func (l *BuildServiceBuilderClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *BuildServiceBuilderClient, token string) error
- type BuildServiceBuilderClientCreateOrUpdateResponse
- type BuildServiceBuilderClientCreateOrUpdateResult
- type BuildServiceBuilderClientDeletePoller
- func (p *BuildServiceBuilderClientDeletePoller) Done() bool
- func (p *BuildServiceBuilderClientDeletePoller) FinalResponse(ctx context.Context) (BuildServiceBuilderClientDeleteResponse, error)
- func (p *BuildServiceBuilderClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *BuildServiceBuilderClientDeletePoller) ResumeToken() (string, error)
- type BuildServiceBuilderClientDeletePollerResponse
- type BuildServiceBuilderClientDeleteResponse
- type BuildServiceBuilderClientGetOptions
- type BuildServiceBuilderClientGetResponse
- type BuildServiceBuilderClientGetResult
- type BuildServiceBuilderClientListOptions
- type BuildServiceBuilderClientListPager
- type BuildServiceBuilderClientListResponse
- type BuildServiceBuilderClientListResult
- 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) ListBuildResults(resourceGroupName string, serviceName string, buildServiceName string, ...) *BuildServiceClientListBuildResultsPager
- func (client *BuildServiceClient) ListBuildServices(resourceGroupName string, serviceName string, ...) *BuildServiceClientListBuildServicesPager
- func (client *BuildServiceClient) ListBuilds(resourceGroupName string, serviceName string, buildServiceName string, ...) *BuildServiceClientListBuildsPager
- 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)
- type BuildServiceClientCreateOrUpdateBuildOptions
- type BuildServiceClientCreateOrUpdateBuildResponse
- type BuildServiceClientCreateOrUpdateBuildResult
- type BuildServiceClientGetBuildOptions
- type BuildServiceClientGetBuildResponse
- type BuildServiceClientGetBuildResult
- type BuildServiceClientGetBuildResultLogOptions
- type BuildServiceClientGetBuildResultLogResponse
- type BuildServiceClientGetBuildResultLogResult
- type BuildServiceClientGetBuildResultOptions
- type BuildServiceClientGetBuildResultResponse
- type BuildServiceClientGetBuildResultResult
- type BuildServiceClientGetBuildServiceOptions
- type BuildServiceClientGetBuildServiceResponse
- type BuildServiceClientGetBuildServiceResult
- type BuildServiceClientGetResourceUploadURLOptions
- type BuildServiceClientGetResourceUploadURLResponse
- type BuildServiceClientGetResourceUploadURLResult
- type BuildServiceClientGetSupportedBuildpackOptions
- type BuildServiceClientGetSupportedBuildpackResponse
- type BuildServiceClientGetSupportedBuildpackResult
- type BuildServiceClientGetSupportedStackOptions
- type BuildServiceClientGetSupportedStackResponse
- type BuildServiceClientGetSupportedStackResult
- type BuildServiceClientListBuildResultsOptions
- type BuildServiceClientListBuildResultsPager
- type BuildServiceClientListBuildResultsResponse
- type BuildServiceClientListBuildResultsResult
- type BuildServiceClientListBuildServicesOptions
- type BuildServiceClientListBuildServicesPager
- type BuildServiceClientListBuildServicesResponse
- type BuildServiceClientListBuildServicesResult
- type BuildServiceClientListBuildsOptions
- type BuildServiceClientListBuildsPager
- type BuildServiceClientListBuildsResponse
- type BuildServiceClientListBuildsResult
- type BuildServiceClientListSupportedBuildpacksOptions
- type BuildServiceClientListSupportedBuildpacksResponse
- type BuildServiceClientListSupportedBuildpacksResult
- type BuildServiceClientListSupportedStacksOptions
- type BuildServiceClientListSupportedStacksResponse
- type BuildServiceClientListSupportedStacksResult
- 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, ...) (BuildpackBindingClientCreateOrUpdatePollerResponse, error)
- func (client *BuildpackBindingClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildpackBindingClientDeletePollerResponse, error)
- func (client *BuildpackBindingClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (BuildpackBindingClientGetResponse, error)
- func (client *BuildpackBindingClient) List(resourceGroupName string, serviceName string, buildServiceName string, ...) *BuildpackBindingClientListPager
- type BuildpackBindingClientBeginCreateOrUpdateOptions
- type BuildpackBindingClientBeginDeleteOptions
- type BuildpackBindingClientCreateOrUpdatePoller
- func (p *BuildpackBindingClientCreateOrUpdatePoller) Done() bool
- func (p *BuildpackBindingClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (BuildpackBindingClientCreateOrUpdateResponse, error)
- func (p *BuildpackBindingClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *BuildpackBindingClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type BuildpackBindingClientCreateOrUpdatePollerResponse
- func (l BuildpackBindingClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BuildpackBindingClientCreateOrUpdateResponse, error)
- func (l *BuildpackBindingClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *BuildpackBindingClient, token string) error
- type BuildpackBindingClientCreateOrUpdateResponse
- type BuildpackBindingClientCreateOrUpdateResult
- type BuildpackBindingClientDeletePoller
- func (p *BuildpackBindingClientDeletePoller) Done() bool
- func (p *BuildpackBindingClientDeletePoller) FinalResponse(ctx context.Context) (BuildpackBindingClientDeleteResponse, error)
- func (p *BuildpackBindingClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *BuildpackBindingClientDeletePoller) ResumeToken() (string, error)
- type BuildpackBindingClientDeletePollerResponse
- type BuildpackBindingClientDeleteResponse
- type BuildpackBindingClientGetOptions
- type BuildpackBindingClientGetResponse
- type BuildpackBindingClientGetResult
- type BuildpackBindingClientListOptions
- type BuildpackBindingClientListPager
- type BuildpackBindingClientListResponse
- type BuildpackBindingClientListResult
- type BuildpackBindingLaunchProperties
- type BuildpackBindingProperties
- type BuildpackBindingProvisioningState
- type BuildpackBindingResource
- type BuildpackBindingResourceCollection
- type BuildpackProperties
- type BuildpacksGroupProperties
- type CertificateProperties
- type CertificatePropertiesClassification
- type CertificateResource
- type CertificateResourceCollection
- type CertificatesClient
- func (client *CertificatesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (CertificatesClientCreateOrUpdatePollerResponse, error)
- func (client *CertificatesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (CertificatesClientDeletePollerResponse, error)
- func (client *CertificatesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (CertificatesClientGetResponse, error)
- func (client *CertificatesClient) List(resourceGroupName string, serviceName string, ...) *CertificatesClientListPager
- type CertificatesClientBeginCreateOrUpdateOptions
- type CertificatesClientBeginDeleteOptions
- type CertificatesClientCreateOrUpdatePoller
- func (p *CertificatesClientCreateOrUpdatePoller) Done() bool
- func (p *CertificatesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (CertificatesClientCreateOrUpdateResponse, error)
- func (p *CertificatesClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *CertificatesClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type CertificatesClientCreateOrUpdatePollerResponse
- type CertificatesClientCreateOrUpdateResponse
- type CertificatesClientCreateOrUpdateResult
- type CertificatesClientDeletePoller
- func (p *CertificatesClientDeletePoller) Done() bool
- func (p *CertificatesClientDeletePoller) FinalResponse(ctx context.Context) (CertificatesClientDeleteResponse, error)
- func (p *CertificatesClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *CertificatesClientDeletePoller) ResumeToken() (string, error)
- type CertificatesClientDeletePollerResponse
- type CertificatesClientDeleteResponse
- type CertificatesClientGetOptions
- type CertificatesClientGetResponse
- type CertificatesClientGetResult
- type CertificatesClientListOptions
- type CertificatesClientListPager
- type CertificatesClientListResponse
- type CertificatesClientListResult
- type CloudError
- type CloudErrorBody
- 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, ...) (ConfigServersClientUpdatePatchPollerResponse, error)
- func (client *ConfigServersClient) BeginUpdatePut(ctx context.Context, resourceGroupName string, serviceName string, ...) (ConfigServersClientUpdatePutPollerResponse, error)
- func (client *ConfigServersClient) BeginValidate(ctx context.Context, resourceGroupName string, serviceName string, ...) (ConfigServersClientValidatePollerResponse, 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 ConfigServersClientGetResult
- type ConfigServersClientUpdatePatchPoller
- func (p *ConfigServersClientUpdatePatchPoller) Done() bool
- func (p *ConfigServersClientUpdatePatchPoller) FinalResponse(ctx context.Context) (ConfigServersClientUpdatePatchResponse, error)
- func (p *ConfigServersClientUpdatePatchPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ConfigServersClientUpdatePatchPoller) ResumeToken() (string, error)
- type ConfigServersClientUpdatePatchPollerResponse
- type ConfigServersClientUpdatePatchResponse
- type ConfigServersClientUpdatePatchResult
- type ConfigServersClientUpdatePutPoller
- func (p *ConfigServersClientUpdatePutPoller) Done() bool
- func (p *ConfigServersClientUpdatePutPoller) FinalResponse(ctx context.Context) (ConfigServersClientUpdatePutResponse, error)
- func (p *ConfigServersClientUpdatePutPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ConfigServersClientUpdatePutPoller) ResumeToken() (string, error)
- type ConfigServersClientUpdatePutPollerResponse
- type ConfigServersClientUpdatePutResponse
- type ConfigServersClientUpdatePutResult
- type ConfigServersClientValidatePoller
- func (p *ConfigServersClientValidatePoller) Done() bool
- func (p *ConfigServersClientValidatePoller) FinalResponse(ctx context.Context) (ConfigServersClientValidateResponse, error)
- func (p *ConfigServersClientValidatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ConfigServersClientValidatePoller) ResumeToken() (string, error)
- type ConfigServersClientValidatePollerResponse
- type ConfigServersClientValidateResponse
- type ConfigServersClientValidateResult
- 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, ...) (ConfigurationServicesClientCreateOrUpdatePollerResponse, error)
- func (client *ConfigurationServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (ConfigurationServicesClientDeletePollerResponse, error)
- func (client *ConfigurationServicesClient) BeginValidate(ctx context.Context, resourceGroupName string, serviceName string, ...) (ConfigurationServicesClientValidatePollerResponse, error)
- func (client *ConfigurationServicesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (ConfigurationServicesClientGetResponse, error)
- func (client *ConfigurationServicesClient) List(resourceGroupName string, serviceName string, ...) *ConfigurationServicesClientListPager
- type ConfigurationServicesClientBeginCreateOrUpdateOptions
- type ConfigurationServicesClientBeginDeleteOptions
- type ConfigurationServicesClientBeginValidateOptions
- type ConfigurationServicesClientCreateOrUpdatePoller
- func (p *ConfigurationServicesClientCreateOrUpdatePoller) Done() bool
- func (p *ConfigurationServicesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ConfigurationServicesClientCreateOrUpdateResponse, error)
- func (p *ConfigurationServicesClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ConfigurationServicesClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type ConfigurationServicesClientCreateOrUpdatePollerResponse
- func (l ConfigurationServicesClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ConfigurationServicesClientCreateOrUpdateResponse, error)
- func (l *ConfigurationServicesClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ConfigurationServicesClient, token string) error
- type ConfigurationServicesClientCreateOrUpdateResponse
- type ConfigurationServicesClientCreateOrUpdateResult
- type ConfigurationServicesClientDeletePoller
- func (p *ConfigurationServicesClientDeletePoller) Done() bool
- func (p *ConfigurationServicesClientDeletePoller) FinalResponse(ctx context.Context) (ConfigurationServicesClientDeleteResponse, error)
- func (p *ConfigurationServicesClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ConfigurationServicesClientDeletePoller) ResumeToken() (string, error)
- type ConfigurationServicesClientDeletePollerResponse
- func (l ConfigurationServicesClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ConfigurationServicesClientDeleteResponse, error)
- func (l *ConfigurationServicesClientDeletePollerResponse) Resume(ctx context.Context, client *ConfigurationServicesClient, token string) error
- type ConfigurationServicesClientDeleteResponse
- type ConfigurationServicesClientGetOptions
- type ConfigurationServicesClientGetResponse
- type ConfigurationServicesClientGetResult
- type ConfigurationServicesClientListOptions
- type ConfigurationServicesClientListPager
- type ConfigurationServicesClientListResponse
- type ConfigurationServicesClientListResult
- type ConfigurationServicesClientValidatePoller
- func (p *ConfigurationServicesClientValidatePoller) Done() bool
- func (p *ConfigurationServicesClientValidatePoller) FinalResponse(ctx context.Context) (ConfigurationServicesClientValidateResponse, error)
- func (p *ConfigurationServicesClientValidatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ConfigurationServicesClientValidatePoller) ResumeToken() (string, error)
- type ConfigurationServicesClientValidatePollerResponse
- func (l ConfigurationServicesClientValidatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ConfigurationServicesClientValidateResponse, error)
- func (l *ConfigurationServicesClientValidatePollerResponse) Resume(ctx context.Context, client *ConfigurationServicesClient, token string) error
- type ConfigurationServicesClientValidateResponse
- type ConfigurationServicesClientValidateResult
- type ContainerProbeSettings
- type ContentCertificateProperties
- type CreatedByType
- type CustomContainer
- type CustomContainerUserSourceInfo
- type CustomDomainProperties
- type CustomDomainResource
- type CustomDomainResourceCollection
- type CustomDomainValidatePayload
- type CustomDomainValidateResult
- type CustomDomainsClient
- func (client *CustomDomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (CustomDomainsClientCreateOrUpdatePollerResponse, error)
- func (client *CustomDomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (CustomDomainsClientDeletePollerResponse, error)
- func (client *CustomDomainsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (CustomDomainsClientUpdatePollerResponse, error)
- func (client *CustomDomainsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (CustomDomainsClientGetResponse, error)
- func (client *CustomDomainsClient) List(resourceGroupName string, serviceName string, appName string, ...) *CustomDomainsClientListPager
- type CustomDomainsClientBeginCreateOrUpdateOptions
- type CustomDomainsClientBeginDeleteOptions
- type CustomDomainsClientBeginUpdateOptions
- type CustomDomainsClientCreateOrUpdatePoller
- func (p *CustomDomainsClientCreateOrUpdatePoller) Done() bool
- func (p *CustomDomainsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (CustomDomainsClientCreateOrUpdateResponse, error)
- func (p *CustomDomainsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *CustomDomainsClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type CustomDomainsClientCreateOrUpdatePollerResponse
- type CustomDomainsClientCreateOrUpdateResponse
- type CustomDomainsClientCreateOrUpdateResult
- type CustomDomainsClientDeletePoller
- func (p *CustomDomainsClientDeletePoller) Done() bool
- func (p *CustomDomainsClientDeletePoller) FinalResponse(ctx context.Context) (CustomDomainsClientDeleteResponse, error)
- func (p *CustomDomainsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *CustomDomainsClientDeletePoller) ResumeToken() (string, error)
- type CustomDomainsClientDeletePollerResponse
- type CustomDomainsClientDeleteResponse
- type CustomDomainsClientGetOptions
- type CustomDomainsClientGetResponse
- type CustomDomainsClientGetResult
- type CustomDomainsClientListOptions
- type CustomDomainsClientListPager
- type CustomDomainsClientListResponse
- type CustomDomainsClientListResult
- type CustomDomainsClientUpdatePoller
- func (p *CustomDomainsClientUpdatePoller) Done() bool
- func (p *CustomDomainsClientUpdatePoller) FinalResponse(ctx context.Context) (CustomDomainsClientUpdateResponse, error)
- func (p *CustomDomainsClientUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *CustomDomainsClientUpdatePoller) ResumeToken() (string, error)
- type CustomDomainsClientUpdatePollerResponse
- type CustomDomainsClientUpdateResponse
- type CustomDomainsClientUpdateResult
- type CustomPersistentDiskProperties
- type CustomPersistentDiskPropertiesClassification
- type CustomPersistentDiskPropertiesType
- type CustomPersistentDiskResource
- type DeploymentInstance
- 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, ...) (DeploymentsClientCreateOrUpdatePollerResponse, error)
- func (client *DeploymentsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientDeletePollerResponse, error)
- func (client *DeploymentsClient) BeginGenerateHeapDump(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientGenerateHeapDumpPollerResponse, error)
- func (client *DeploymentsClient) BeginGenerateThreadDump(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientGenerateThreadDumpPollerResponse, error)
- func (client *DeploymentsClient) BeginRestart(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientRestartPollerResponse, error)
- func (client *DeploymentsClient) BeginStart(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientStartPollerResponse, error)
- func (client *DeploymentsClient) BeginStartJFR(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientStartJFRPollerResponse, error)
- func (client *DeploymentsClient) BeginStop(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientStopPollerResponse, error)
- func (client *DeploymentsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (DeploymentsClientUpdatePollerResponse, 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) List(resourceGroupName string, serviceName string, appName string, ...) *DeploymentsClientListPager
- func (client *DeploymentsClient) ListForCluster(resourceGroupName string, serviceName string, ...) *DeploymentsClientListForClusterPager
- type DeploymentsClientBeginCreateOrUpdateOptions
- type DeploymentsClientBeginDeleteOptions
- type DeploymentsClientBeginGenerateHeapDumpOptions
- type DeploymentsClientBeginGenerateThreadDumpOptions
- type DeploymentsClientBeginRestartOptions
- type DeploymentsClientBeginStartJFROptions
- type DeploymentsClientBeginStartOptions
- type DeploymentsClientBeginStopOptions
- type DeploymentsClientBeginUpdateOptions
- type DeploymentsClientCreateOrUpdatePoller
- func (p *DeploymentsClientCreateOrUpdatePoller) Done() bool
- func (p *DeploymentsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (DeploymentsClientCreateOrUpdateResponse, error)
- func (p *DeploymentsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *DeploymentsClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type DeploymentsClientCreateOrUpdatePollerResponse
- type DeploymentsClientCreateOrUpdateResponse
- type DeploymentsClientCreateOrUpdateResult
- type DeploymentsClientDeletePoller
- func (p *DeploymentsClientDeletePoller) Done() bool
- func (p *DeploymentsClientDeletePoller) FinalResponse(ctx context.Context) (DeploymentsClientDeleteResponse, error)
- func (p *DeploymentsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *DeploymentsClientDeletePoller) ResumeToken() (string, error)
- type DeploymentsClientDeletePollerResponse
- type DeploymentsClientDeleteResponse
- type DeploymentsClientGenerateHeapDumpPoller
- func (p *DeploymentsClientGenerateHeapDumpPoller) Done() bool
- func (p *DeploymentsClientGenerateHeapDumpPoller) FinalResponse(ctx context.Context) (DeploymentsClientGenerateHeapDumpResponse, error)
- func (p *DeploymentsClientGenerateHeapDumpPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *DeploymentsClientGenerateHeapDumpPoller) ResumeToken() (string, error)
- type DeploymentsClientGenerateHeapDumpPollerResponse
- type DeploymentsClientGenerateHeapDumpResponse
- type DeploymentsClientGenerateThreadDumpPoller
- func (p *DeploymentsClientGenerateThreadDumpPoller) Done() bool
- func (p *DeploymentsClientGenerateThreadDumpPoller) FinalResponse(ctx context.Context) (DeploymentsClientGenerateThreadDumpResponse, error)
- func (p *DeploymentsClientGenerateThreadDumpPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *DeploymentsClientGenerateThreadDumpPoller) ResumeToken() (string, error)
- type DeploymentsClientGenerateThreadDumpPollerResponse
- func (l DeploymentsClientGenerateThreadDumpPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (DeploymentsClientGenerateThreadDumpResponse, error)
- func (l *DeploymentsClientGenerateThreadDumpPollerResponse) Resume(ctx context.Context, client *DeploymentsClient, token string) error
- type DeploymentsClientGenerateThreadDumpResponse
- type DeploymentsClientGetLogFileURLOptions
- type DeploymentsClientGetLogFileURLResponse
- type DeploymentsClientGetLogFileURLResult
- type DeploymentsClientGetOptions
- type DeploymentsClientGetResponse
- type DeploymentsClientGetResult
- type DeploymentsClientListForClusterOptions
- type DeploymentsClientListForClusterPager
- type DeploymentsClientListForClusterResponse
- type DeploymentsClientListForClusterResult
- type DeploymentsClientListOptions
- type DeploymentsClientListPager
- type DeploymentsClientListResponse
- type DeploymentsClientListResult
- type DeploymentsClientRestartPoller
- func (p *DeploymentsClientRestartPoller) Done() bool
- func (p *DeploymentsClientRestartPoller) FinalResponse(ctx context.Context) (DeploymentsClientRestartResponse, error)
- func (p *DeploymentsClientRestartPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *DeploymentsClientRestartPoller) ResumeToken() (string, error)
- type DeploymentsClientRestartPollerResponse
- type DeploymentsClientRestartResponse
- type DeploymentsClientStartJFRPoller
- func (p *DeploymentsClientStartJFRPoller) Done() bool
- func (p *DeploymentsClientStartJFRPoller) FinalResponse(ctx context.Context) (DeploymentsClientStartJFRResponse, error)
- func (p *DeploymentsClientStartJFRPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *DeploymentsClientStartJFRPoller) ResumeToken() (string, error)
- type DeploymentsClientStartJFRPollerResponse
- type DeploymentsClientStartJFRResponse
- type DeploymentsClientStartPoller
- func (p *DeploymentsClientStartPoller) Done() bool
- func (p *DeploymentsClientStartPoller) FinalResponse(ctx context.Context) (DeploymentsClientStartResponse, error)
- func (p *DeploymentsClientStartPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *DeploymentsClientStartPoller) ResumeToken() (string, error)
- type DeploymentsClientStartPollerResponse
- type DeploymentsClientStartResponse
- type DeploymentsClientStopPoller
- func (p *DeploymentsClientStopPoller) Done() bool
- func (p *DeploymentsClientStopPoller) FinalResponse(ctx context.Context) (DeploymentsClientStopResponse, error)
- func (p *DeploymentsClientStopPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *DeploymentsClientStopPoller) ResumeToken() (string, error)
- type DeploymentsClientStopPollerResponse
- type DeploymentsClientStopResponse
- type DeploymentsClientUpdatePoller
- func (p *DeploymentsClientUpdatePoller) Done() bool
- func (p *DeploymentsClientUpdatePoller) FinalResponse(ctx context.Context) (DeploymentsClientUpdateResponse, error)
- func (p *DeploymentsClientUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *DeploymentsClientUpdatePoller) ResumeToken() (string, error)
- type DeploymentsClientUpdatePollerResponse
- type DeploymentsClientUpdateResponse
- type DeploymentsClientUpdateResult
- type DiagnosticParameters
- type Error
- 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, ...) (GatewayCustomDomainsClientCreateOrUpdatePollerResponse, error)
- func (client *GatewayCustomDomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewayCustomDomainsClientDeletePollerResponse, error)
- func (client *GatewayCustomDomainsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewayCustomDomainsClientGetResponse, error)
- func (client *GatewayCustomDomainsClient) List(resourceGroupName string, serviceName string, gatewayName string, ...) *GatewayCustomDomainsClientListPager
- type GatewayCustomDomainsClientBeginCreateOrUpdateOptions
- type GatewayCustomDomainsClientBeginDeleteOptions
- type GatewayCustomDomainsClientCreateOrUpdatePoller
- func (p *GatewayCustomDomainsClientCreateOrUpdatePoller) Done() bool
- func (p *GatewayCustomDomainsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (GatewayCustomDomainsClientCreateOrUpdateResponse, error)
- func (p *GatewayCustomDomainsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *GatewayCustomDomainsClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type GatewayCustomDomainsClientCreateOrUpdatePollerResponse
- func (l GatewayCustomDomainsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (GatewayCustomDomainsClientCreateOrUpdateResponse, error)
- func (l *GatewayCustomDomainsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *GatewayCustomDomainsClient, token string) error
- type GatewayCustomDomainsClientCreateOrUpdateResponse
- type GatewayCustomDomainsClientCreateOrUpdateResult
- type GatewayCustomDomainsClientDeletePoller
- func (p *GatewayCustomDomainsClientDeletePoller) Done() bool
- func (p *GatewayCustomDomainsClientDeletePoller) FinalResponse(ctx context.Context) (GatewayCustomDomainsClientDeleteResponse, error)
- func (p *GatewayCustomDomainsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *GatewayCustomDomainsClientDeletePoller) ResumeToken() (string, error)
- type GatewayCustomDomainsClientDeletePollerResponse
- func (l GatewayCustomDomainsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (GatewayCustomDomainsClientDeleteResponse, error)
- func (l *GatewayCustomDomainsClientDeletePollerResponse) Resume(ctx context.Context, client *GatewayCustomDomainsClient, token string) error
- type GatewayCustomDomainsClientDeleteResponse
- type GatewayCustomDomainsClientGetOptions
- type GatewayCustomDomainsClientGetResponse
- type GatewayCustomDomainsClientGetResult
- type GatewayCustomDomainsClientListOptions
- type GatewayCustomDomainsClientListPager
- type GatewayCustomDomainsClientListResponse
- type GatewayCustomDomainsClientListResult
- type GatewayInstance
- type GatewayOperatorProperties
- type GatewayOperatorResourceRequests
- type GatewayProperties
- type GatewayProvisioningState
- type GatewayResource
- type GatewayResourceCollection
- type GatewayResourceRequests
- type GatewayRouteConfigProperties
- type GatewayRouteConfigResource
- type GatewayRouteConfigResourceCollection
- type GatewayRouteConfigsClient
- func (client *GatewayRouteConfigsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewayRouteConfigsClientCreateOrUpdatePollerResponse, error)
- func (client *GatewayRouteConfigsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewayRouteConfigsClientDeletePollerResponse, error)
- func (client *GatewayRouteConfigsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewayRouteConfigsClientGetResponse, error)
- func (client *GatewayRouteConfigsClient) List(resourceGroupName string, serviceName string, gatewayName string, ...) *GatewayRouteConfigsClientListPager
- type GatewayRouteConfigsClientBeginCreateOrUpdateOptions
- type GatewayRouteConfigsClientBeginDeleteOptions
- type GatewayRouteConfigsClientCreateOrUpdatePoller
- func (p *GatewayRouteConfigsClientCreateOrUpdatePoller) Done() bool
- func (p *GatewayRouteConfigsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (GatewayRouteConfigsClientCreateOrUpdateResponse, error)
- func (p *GatewayRouteConfigsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *GatewayRouteConfigsClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type GatewayRouteConfigsClientCreateOrUpdatePollerResponse
- func (l GatewayRouteConfigsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (GatewayRouteConfigsClientCreateOrUpdateResponse, error)
- func (l *GatewayRouteConfigsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *GatewayRouteConfigsClient, token string) error
- type GatewayRouteConfigsClientCreateOrUpdateResponse
- type GatewayRouteConfigsClientCreateOrUpdateResult
- type GatewayRouteConfigsClientDeletePoller
- func (p *GatewayRouteConfigsClientDeletePoller) Done() bool
- func (p *GatewayRouteConfigsClientDeletePoller) FinalResponse(ctx context.Context) (GatewayRouteConfigsClientDeleteResponse, error)
- func (p *GatewayRouteConfigsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *GatewayRouteConfigsClientDeletePoller) ResumeToken() (string, error)
- type GatewayRouteConfigsClientDeletePollerResponse
- type GatewayRouteConfigsClientDeleteResponse
- type GatewayRouteConfigsClientGetOptions
- type GatewayRouteConfigsClientGetResponse
- type GatewayRouteConfigsClientGetResult
- type GatewayRouteConfigsClientListOptions
- type GatewayRouteConfigsClientListPager
- type GatewayRouteConfigsClientListResponse
- type GatewayRouteConfigsClientListResult
- type GatewaysClient
- func (client *GatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewaysClientCreateOrUpdatePollerResponse, error)
- func (client *GatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewaysClientDeletePollerResponse, error)
- func (client *GatewaysClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewaysClientGetResponse, error)
- func (client *GatewaysClient) List(resourceGroupName string, serviceName string, ...) *GatewaysClientListPager
- func (client *GatewaysClient) ValidateDomain(ctx context.Context, resourceGroupName string, serviceName string, ...) (GatewaysClientValidateDomainResponse, error)
- type GatewaysClientBeginCreateOrUpdateOptions
- type GatewaysClientBeginDeleteOptions
- type GatewaysClientCreateOrUpdatePoller
- func (p *GatewaysClientCreateOrUpdatePoller) Done() bool
- func (p *GatewaysClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (GatewaysClientCreateOrUpdateResponse, error)
- func (p *GatewaysClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *GatewaysClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type GatewaysClientCreateOrUpdatePollerResponse
- type GatewaysClientCreateOrUpdateResponse
- type GatewaysClientCreateOrUpdateResult
- type GatewaysClientDeletePoller
- func (p *GatewaysClientDeletePoller) Done() bool
- func (p *GatewaysClientDeletePoller) FinalResponse(ctx context.Context) (GatewaysClientDeleteResponse, error)
- func (p *GatewaysClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *GatewaysClientDeletePoller) ResumeToken() (string, error)
- type GatewaysClientDeletePollerResponse
- type GatewaysClientDeleteResponse
- type GatewaysClientGetOptions
- type GatewaysClientGetResponse
- type GatewaysClientGetResult
- type GatewaysClientListOptions
- type GatewaysClientListPager
- type GatewaysClientListResponse
- type GatewaysClientListResult
- type GatewaysClientValidateDomainOptions
- type GatewaysClientValidateDomainResponse
- type GatewaysClientValidateDomainResult
- type GitPatternRepository
- type ImageRegistryCredential
- type JarUploadedUserSourceInfo
- type KPackBuildStageProvisioningState
- type KeyVaultCertificateProperties
- type LastModifiedByType
- type LoadedCertificate
- type LogFileURLResponse
- type LogSpecification
- type ManagedIdentityProperties
- type ManagedIdentityType
- type MetricDimension
- type MetricSpecification
- type MonitoringSettingProperties
- type MonitoringSettingResource
- type MonitoringSettingState
- type MonitoringSettingsClient
- func (client *MonitoringSettingsClient) BeginUpdatePatch(ctx context.Context, resourceGroupName string, serviceName string, ...) (MonitoringSettingsClientUpdatePatchPollerResponse, error)
- func (client *MonitoringSettingsClient) BeginUpdatePut(ctx context.Context, resourceGroupName string, serviceName string, ...) (MonitoringSettingsClientUpdatePutPollerResponse, error)
- func (client *MonitoringSettingsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (MonitoringSettingsClientGetResponse, error)
- type MonitoringSettingsClientBeginUpdatePatchOptions
- type MonitoringSettingsClientBeginUpdatePutOptions
- type MonitoringSettingsClientGetOptions
- type MonitoringSettingsClientGetResponse
- type MonitoringSettingsClientGetResult
- type MonitoringSettingsClientUpdatePatchPoller
- func (p *MonitoringSettingsClientUpdatePatchPoller) Done() bool
- func (p *MonitoringSettingsClientUpdatePatchPoller) FinalResponse(ctx context.Context) (MonitoringSettingsClientUpdatePatchResponse, error)
- func (p *MonitoringSettingsClientUpdatePatchPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *MonitoringSettingsClientUpdatePatchPoller) ResumeToken() (string, error)
- type MonitoringSettingsClientUpdatePatchPollerResponse
- func (l MonitoringSettingsClientUpdatePatchPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (MonitoringSettingsClientUpdatePatchResponse, error)
- func (l *MonitoringSettingsClientUpdatePatchPollerResponse) Resume(ctx context.Context, client *MonitoringSettingsClient, token string) error
- type MonitoringSettingsClientUpdatePatchResponse
- type MonitoringSettingsClientUpdatePatchResult
- type MonitoringSettingsClientUpdatePutPoller
- func (p *MonitoringSettingsClientUpdatePutPoller) Done() bool
- func (p *MonitoringSettingsClientUpdatePutPoller) FinalResponse(ctx context.Context) (MonitoringSettingsClientUpdatePutResponse, error)
- func (p *MonitoringSettingsClientUpdatePutPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *MonitoringSettingsClientUpdatePutPoller) ResumeToken() (string, error)
- type MonitoringSettingsClientUpdatePutPollerResponse
- func (l MonitoringSettingsClientUpdatePutPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (MonitoringSettingsClientUpdatePutResponse, error)
- func (l *MonitoringSettingsClientUpdatePutPollerResponse) Resume(ctx context.Context, client *MonitoringSettingsClient, token string) error
- type MonitoringSettingsClientUpdatePutResponse
- type MonitoringSettingsClientUpdatePutResult
- 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 OperationsClientListPager
- type OperationsClientListResponse
- type OperationsClientListResult
- type PersistentDisk
- type PowerState
- type ProvisioningState
- type ProxyResource
- type RegenerateTestKeyRequestPayload
- 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 RuntimeVersionsClientListRuntimeVersionsResult
- type SKU
- type SKUCapacity
- type SKUScaleType
- type SKUsClient
- type SKUsClientListOptions
- type SKUsClientListPager
- type SKUsClientListResponse
- type SKUsClientListResult
- type ServiceRegistriesClient
- func (client *ServiceRegistriesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServiceRegistriesClientCreateOrUpdatePollerResponse, error)
- func (client *ServiceRegistriesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServiceRegistriesClientDeletePollerResponse, error)
- func (client *ServiceRegistriesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServiceRegistriesClientGetResponse, error)
- func (client *ServiceRegistriesClient) List(resourceGroupName string, serviceName string, ...) *ServiceRegistriesClientListPager
- type ServiceRegistriesClientBeginCreateOrUpdateOptions
- type ServiceRegistriesClientBeginDeleteOptions
- type ServiceRegistriesClientCreateOrUpdatePoller
- func (p *ServiceRegistriesClientCreateOrUpdatePoller) Done() bool
- func (p *ServiceRegistriesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ServiceRegistriesClientCreateOrUpdateResponse, error)
- func (p *ServiceRegistriesClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ServiceRegistriesClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type ServiceRegistriesClientCreateOrUpdatePollerResponse
- func (l ServiceRegistriesClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ServiceRegistriesClientCreateOrUpdateResponse, error)
- func (l *ServiceRegistriesClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ServiceRegistriesClient, token string) error
- type ServiceRegistriesClientCreateOrUpdateResponse
- type ServiceRegistriesClientCreateOrUpdateResult
- type ServiceRegistriesClientDeletePoller
- func (p *ServiceRegistriesClientDeletePoller) Done() bool
- func (p *ServiceRegistriesClientDeletePoller) FinalResponse(ctx context.Context) (ServiceRegistriesClientDeleteResponse, error)
- func (p *ServiceRegistriesClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ServiceRegistriesClientDeletePoller) ResumeToken() (string, error)
- type ServiceRegistriesClientDeletePollerResponse
- type ServiceRegistriesClientDeleteResponse
- type ServiceRegistriesClientGetOptions
- type ServiceRegistriesClientGetResponse
- type ServiceRegistriesClientGetResult
- type ServiceRegistriesClientListOptions
- type ServiceRegistriesClientListPager
- type ServiceRegistriesClientListResponse
- type ServiceRegistriesClientListResult
- type ServiceRegistryInstance
- type ServiceRegistryProperties
- type ServiceRegistryProvisioningState
- type ServiceRegistryResource
- type ServiceRegistryResourceCollection
- type ServiceRegistryResourceRequests
- type ServiceResource
- type ServiceResourceList
- type ServiceSpecification
- type ServicesClient
- func (client *ServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientCreateOrUpdatePollerResponse, error)
- func (client *ServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientDeletePollerResponse, error)
- func (client *ServicesClient) BeginStart(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientStartPollerResponse, error)
- func (client *ServicesClient) BeginStop(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientStopPollerResponse, error)
- func (client *ServicesClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientUpdatePollerResponse, 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) List(resourceGroupName string, options *ServicesClientListOptions) *ServicesClientListPager
- func (client *ServicesClient) ListBySubscription(options *ServicesClientListBySubscriptionOptions) *ServicesClientListBySubscriptionPager
- func (client *ServicesClient) ListTestKeys(ctx context.Context, resourceGroupName string, serviceName string, ...) (ServicesClientListTestKeysResponse, error)
- 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 ServicesClientCheckNameAvailabilityResult
- type ServicesClientCreateOrUpdatePoller
- func (p *ServicesClientCreateOrUpdatePoller) Done() bool
- func (p *ServicesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ServicesClientCreateOrUpdateResponse, error)
- func (p *ServicesClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ServicesClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type ServicesClientCreateOrUpdatePollerResponse
- type ServicesClientCreateOrUpdateResponse
- type ServicesClientCreateOrUpdateResult
- type ServicesClientDeletePoller
- func (p *ServicesClientDeletePoller) Done() bool
- func (p *ServicesClientDeletePoller) FinalResponse(ctx context.Context) (ServicesClientDeleteResponse, error)
- func (p *ServicesClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ServicesClientDeletePoller) ResumeToken() (string, error)
- type ServicesClientDeletePollerResponse
- type ServicesClientDeleteResponse
- type ServicesClientDisableTestEndpointOptions
- type ServicesClientDisableTestEndpointResponse
- type ServicesClientEnableTestEndpointOptions
- type ServicesClientEnableTestEndpointResponse
- type ServicesClientEnableTestEndpointResult
- type ServicesClientGetOptions
- type ServicesClientGetResponse
- type ServicesClientGetResult
- type ServicesClientListBySubscriptionOptions
- type ServicesClientListBySubscriptionPager
- type ServicesClientListBySubscriptionResponse
- type ServicesClientListBySubscriptionResult
- type ServicesClientListOptions
- type ServicesClientListPager
- type ServicesClientListResponse
- type ServicesClientListResult
- type ServicesClientListTestKeysOptions
- type ServicesClientListTestKeysResponse
- type ServicesClientListTestKeysResult
- type ServicesClientRegenerateTestKeyOptions
- type ServicesClientRegenerateTestKeyResponse
- type ServicesClientRegenerateTestKeyResult
- type ServicesClientStartPoller
- func (p *ServicesClientStartPoller) Done() bool
- func (p *ServicesClientStartPoller) FinalResponse(ctx context.Context) (ServicesClientStartResponse, error)
- func (p *ServicesClientStartPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ServicesClientStartPoller) ResumeToken() (string, error)
- type ServicesClientStartPollerResponse
- type ServicesClientStartResponse
- type ServicesClientStopPoller
- func (p *ServicesClientStopPoller) Done() bool
- func (p *ServicesClientStopPoller) FinalResponse(ctx context.Context) (ServicesClientStopResponse, error)
- func (p *ServicesClientStopPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ServicesClientStopPoller) ResumeToken() (string, error)
- type ServicesClientStopPollerResponse
- type ServicesClientStopResponse
- type ServicesClientUpdatePoller
- func (p *ServicesClientUpdatePoller) Done() bool
- func (p *ServicesClientUpdatePoller) FinalResponse(ctx context.Context) (ServicesClientUpdateResponse, error)
- func (p *ServicesClientUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ServicesClientUpdatePoller) ResumeToken() (string, error)
- type ServicesClientUpdatePollerResponse
- type ServicesClientUpdateResponse
- type ServicesClientUpdateResult
- 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 StoragePropertiesStorageType
- type StorageResource
- type StorageResourceCollection
- type StoragesClient
- func (client *StoragesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (StoragesClientCreateOrUpdatePollerResponse, error)
- func (client *StoragesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (StoragesClientDeletePollerResponse, error)
- func (client *StoragesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (StoragesClientGetResponse, error)
- func (client *StoragesClient) List(resourceGroupName string, serviceName string, ...) *StoragesClientListPager
- type StoragesClientBeginCreateOrUpdateOptions
- type StoragesClientBeginDeleteOptions
- type StoragesClientCreateOrUpdatePoller
- func (p *StoragesClientCreateOrUpdatePoller) Done() bool
- func (p *StoragesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (StoragesClientCreateOrUpdateResponse, error)
- func (p *StoragesClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *StoragesClientCreateOrUpdatePoller) ResumeToken() (string, error)
- type StoragesClientCreateOrUpdatePollerResponse
- type StoragesClientCreateOrUpdateResponse
- type StoragesClientCreateOrUpdateResult
- type StoragesClientDeletePoller
- func (p *StoragesClientDeletePoller) Done() bool
- func (p *StoragesClientDeletePoller) FinalResponse(ctx context.Context) (StoragesClientDeleteResponse, error)
- func (p *StoragesClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *StoragesClientDeletePoller) ResumeToken() (string, error)
- type StoragesClientDeletePollerResponse
- type StoragesClientDeleteResponse
- type StoragesClientGetOptions
- type StoragesClientGetResponse
- type StoragesClientGetResult
- type StoragesClientListOptions
- type StoragesClientListPager
- type StoragesClientListResponse
- type StoragesClientListResult
- type SupportedBuildpackResource
- type SupportedBuildpackResourceProperties
- type SupportedBuildpacksCollection
- type SupportedRuntimePlatform
- type SupportedRuntimeValue
- type SupportedRuntimeVersion
- type SupportedStackResource
- type SupportedStackResourceProperties
- type SupportedStacksCollection
- type SystemData
- type TemporaryDisk
- type TestKeyType
- type TestKeys
- type TrackedResource
- type TrafficDirection
- type TriggeredBuildResult
- type UploadedUserSourceInfo
- type UploadedUserSourceInfoClassification
- type UserSourceInfo
- type UserSourceInfoClassification
- type ValidationMessages
Examples ¶
- APIPortalCustomDomainsClient.BeginCreateOrUpdate
- APIPortalCustomDomainsClient.BeginDelete
- APIPortalCustomDomainsClient.Get
- APIPortalCustomDomainsClient.List
- APIPortalsClient.BeginCreateOrUpdate
- APIPortalsClient.BeginDelete
- APIPortalsClient.Get
- APIPortalsClient.List
- APIPortalsClient.ValidateDomain
- AppsClient.BeginCreateOrUpdate
- AppsClient.BeginDelete
- AppsClient.BeginSetActiveDeployments
- AppsClient.BeginUpdate
- AppsClient.Get
- AppsClient.List
- AppsClient.ValidateDomain
- BindingsClient.BeginCreateOrUpdate
- BindingsClient.BeginDelete
- BindingsClient.BeginUpdate
- BindingsClient.Get
- BindingsClient.List
- BuildServiceAgentPoolClient.BeginUpdatePut
- BuildServiceAgentPoolClient.Get
- BuildServiceAgentPoolClient.List
- BuildServiceBuilderClient.BeginCreateOrUpdate
- BuildServiceBuilderClient.BeginDelete
- BuildServiceBuilderClient.Get
- BuildServiceBuilderClient.List
- BuildServiceClient.CreateOrUpdateBuild
- BuildServiceClient.GetBuild
- BuildServiceClient.GetBuildResult
- BuildServiceClient.GetBuildResultLog
- BuildServiceClient.GetBuildService
- BuildServiceClient.GetSupportedBuildpack
- BuildServiceClient.GetSupportedStack
- BuildServiceClient.ListBuildResults
- BuildServiceClient.ListBuildServices
- BuildServiceClient.ListBuilds
- BuildServiceClient.ListSupportedBuildpacks
- BuildServiceClient.ListSupportedStacks
- BuildpackBindingClient.BeginCreateOrUpdate
- BuildpackBindingClient.BeginDelete
- BuildpackBindingClient.Get
- BuildpackBindingClient.List
- CertificatesClient.BeginCreateOrUpdate
- CertificatesClient.BeginDelete
- CertificatesClient.Get
- CertificatesClient.List
- ConfigServersClient.BeginUpdatePatch
- ConfigServersClient.BeginUpdatePut
- ConfigServersClient.BeginValidate
- ConfigServersClient.Get
- ConfigurationServicesClient.BeginCreateOrUpdate
- ConfigurationServicesClient.BeginDelete
- ConfigurationServicesClient.BeginValidate
- ConfigurationServicesClient.Get
- ConfigurationServicesClient.List
- CustomDomainsClient.BeginCreateOrUpdate
- CustomDomainsClient.BeginDelete
- CustomDomainsClient.BeginUpdate
- CustomDomainsClient.Get
- CustomDomainsClient.List
- DeploymentsClient.BeginCreateOrUpdate
- DeploymentsClient.BeginDelete
- DeploymentsClient.BeginGenerateHeapDump
- DeploymentsClient.BeginGenerateThreadDump
- DeploymentsClient.BeginRestart
- DeploymentsClient.BeginStart
- DeploymentsClient.BeginStartJFR
- DeploymentsClient.BeginStop
- DeploymentsClient.BeginUpdate
- DeploymentsClient.Get
- DeploymentsClient.List
- DeploymentsClient.ListForCluster
- GatewayCustomDomainsClient.BeginCreateOrUpdate
- GatewayCustomDomainsClient.BeginDelete
- GatewayCustomDomainsClient.Get
- GatewayCustomDomainsClient.List
- GatewayRouteConfigsClient.BeginCreateOrUpdate
- GatewayRouteConfigsClient.BeginDelete
- GatewayRouteConfigsClient.Get
- GatewayRouteConfigsClient.List
- GatewaysClient.BeginCreateOrUpdate
- GatewaysClient.BeginDelete
- GatewaysClient.Get
- GatewaysClient.List
- GatewaysClient.ValidateDomain
- MonitoringSettingsClient.BeginUpdatePatch
- MonitoringSettingsClient.BeginUpdatePut
- MonitoringSettingsClient.Get
- OperationsClient.List
- RuntimeVersionsClient.ListRuntimeVersions
- SKUsClient.List
- ServiceRegistriesClient.BeginCreateOrUpdate
- ServiceRegistriesClient.BeginDelete
- ServiceRegistriesClient.Get
- ServiceRegistriesClient.List
- ServicesClient.BeginCreateOrUpdate
- ServicesClient.BeginDelete
- ServicesClient.BeginStart
- ServicesClient.BeginStop
- ServicesClient.BeginUpdate
- ServicesClient.CheckNameAvailability
- ServicesClient.DisableTestEndpoint
- ServicesClient.EnableTestEndpoint
- ServicesClient.Get
- ServicesClient.List
- ServicesClient.ListBySubscription
- ServicesClient.ListTestKeys
- ServicesClient.RegenerateTestKey
- StoragesClient.BeginCreateOrUpdate
- StoragesClient.BeginDelete
- StoragesClient.Get
- StoragesClient.List
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
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
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.
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
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) (APIPortalCustomDomainsClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create or update the API portal custom domain. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewAPIPortalCustomDomainsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<api-portal-name>", "<domain-name>", armappplatform.APIPortalCustomDomainResource{ Properties: &armappplatform.APIPortalCustomDomainProperties{ Thumbprint: to.StringPtr("<thumbprint>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.APIPortalCustomDomainsClientCreateOrUpdateResult) }
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) (APIPortalCustomDomainsClientDeletePollerResponse, error)
BeginDelete - Delete the API portal custom domain. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ApiPortalCustomDomains_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewAPIPortalCustomDomainsClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<api-portal-name>", "<domain-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewAPIPortalCustomDomainsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<api-portal-name>", "<domain-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.APIPortalCustomDomainsClientGetResult) }
Output:
func (*APIPortalCustomDomainsClient) List ¶ added in v0.3.0
func (client *APIPortalCustomDomainsClient) List(resourceGroupName string, serviceName string, apiPortalName string, options *APIPortalCustomDomainsClientListOptions) *APIPortalCustomDomainsClientListPager
List - Handle requests to list all API portal custom domains. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewAPIPortalCustomDomainsClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", "<api-portal-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type APIPortalCustomDomainsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type APIPortalCustomDomainsClientBeginCreateOrUpdateOptions struct { }
APIPortalCustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the APIPortalCustomDomainsClient.BeginCreateOrUpdate method.
type APIPortalCustomDomainsClientBeginDeleteOptions ¶ added in v0.3.0
type APIPortalCustomDomainsClientBeginDeleteOptions struct { }
APIPortalCustomDomainsClientBeginDeleteOptions contains the optional parameters for the APIPortalCustomDomainsClient.BeginDelete method.
type APIPortalCustomDomainsClientCreateOrUpdatePoller ¶ added in v0.3.0
type APIPortalCustomDomainsClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
APIPortalCustomDomainsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*APIPortalCustomDomainsClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*APIPortalCustomDomainsClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (APIPortalCustomDomainsClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final APIPortalCustomDomainsClientCreateOrUpdateResponse will be returned.
func (*APIPortalCustomDomainsClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*APIPortalCustomDomainsClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type APIPortalCustomDomainsClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type APIPortalCustomDomainsClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *APIPortalCustomDomainsClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalCustomDomainsClientCreateOrUpdatePollerResponse contains the response from method APIPortalCustomDomainsClient.CreateOrUpdate.
func (APIPortalCustomDomainsClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l APIPortalCustomDomainsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (APIPortalCustomDomainsClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*APIPortalCustomDomainsClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *APIPortalCustomDomainsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *APIPortalCustomDomainsClient, token string) error
Resume rehydrates a APIPortalCustomDomainsClientCreateOrUpdatePollerResponse from the provided client and resume token.
type APIPortalCustomDomainsClientCreateOrUpdateResponse ¶ added in v0.3.0
type APIPortalCustomDomainsClientCreateOrUpdateResponse struct { APIPortalCustomDomainsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalCustomDomainsClientCreateOrUpdateResponse contains the response from method APIPortalCustomDomainsClient.CreateOrUpdate.
type APIPortalCustomDomainsClientCreateOrUpdateResult ¶ added in v0.3.0
type APIPortalCustomDomainsClientCreateOrUpdateResult struct {
APIPortalCustomDomainResource
}
APIPortalCustomDomainsClientCreateOrUpdateResult contains the result from method APIPortalCustomDomainsClient.CreateOrUpdate.
type APIPortalCustomDomainsClientDeletePoller ¶ added in v0.3.0
type APIPortalCustomDomainsClientDeletePoller struct {
// contains filtered or unexported fields
}
APIPortalCustomDomainsClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*APIPortalCustomDomainsClientDeletePoller) Done ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*APIPortalCustomDomainsClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientDeletePoller) FinalResponse(ctx context.Context) (APIPortalCustomDomainsClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final APIPortalCustomDomainsClientDeleteResponse will be returned.
func (*APIPortalCustomDomainsClientDeletePoller) Poll ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*APIPortalCustomDomainsClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type APIPortalCustomDomainsClientDeletePollerResponse ¶ added in v0.3.0
type APIPortalCustomDomainsClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *APIPortalCustomDomainsClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalCustomDomainsClientDeletePollerResponse contains the response from method APIPortalCustomDomainsClient.Delete.
func (APIPortalCustomDomainsClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l APIPortalCustomDomainsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (APIPortalCustomDomainsClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*APIPortalCustomDomainsClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *APIPortalCustomDomainsClientDeletePollerResponse) Resume(ctx context.Context, client *APIPortalCustomDomainsClient, token string) error
Resume rehydrates a APIPortalCustomDomainsClientDeletePollerResponse from the provided client and resume token.
type APIPortalCustomDomainsClientDeleteResponse ¶ added in v0.3.0
type APIPortalCustomDomainsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalCustomDomainsClientDeleteResponse contains the response from method APIPortalCustomDomainsClient.Delete.
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 { APIPortalCustomDomainsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalCustomDomainsClientGetResponse contains the response from method APIPortalCustomDomainsClient.Get.
type APIPortalCustomDomainsClientGetResult ¶ added in v0.3.0
type APIPortalCustomDomainsClientGetResult struct {
APIPortalCustomDomainResource
}
APIPortalCustomDomainsClientGetResult contains the result from method APIPortalCustomDomainsClient.Get.
type APIPortalCustomDomainsClientListOptions ¶ added in v0.3.0
type APIPortalCustomDomainsClientListOptions struct { }
APIPortalCustomDomainsClientListOptions contains the optional parameters for the APIPortalCustomDomainsClient.List method.
type APIPortalCustomDomainsClientListPager ¶ added in v0.3.0
type APIPortalCustomDomainsClientListPager struct {
// contains filtered or unexported fields
}
APIPortalCustomDomainsClientListPager provides operations for iterating over paged responses.
func (*APIPortalCustomDomainsClientListPager) Err ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*APIPortalCustomDomainsClientListPager) NextPage ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*APIPortalCustomDomainsClientListPager) PageResponse ¶ added in v0.3.0
func (p *APIPortalCustomDomainsClientListPager) PageResponse() APIPortalCustomDomainsClientListResponse
PageResponse returns the current APIPortalCustomDomainsClientListResponse page.
type APIPortalCustomDomainsClientListResponse ¶ added in v0.3.0
type APIPortalCustomDomainsClientListResponse struct { APIPortalCustomDomainsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalCustomDomainsClientListResponse contains the response from method APIPortalCustomDomainsClient.List.
type APIPortalCustomDomainsClientListResult ¶ added in v0.3.0
type APIPortalCustomDomainsClientListResult struct {
APIPortalCustomDomainResourceCollection
}
APIPortalCustomDomainsClientListResult contains the result from method APIPortalCustomDomainsClient.List.
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
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.
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.
func (APIPortalProvisioningState) ToPtr ¶ added in v0.3.0
func (c APIPortalProvisioningState) ToPtr() *APIPortalProvisioningState
ToPtr returns a *APIPortalProvisioningState pointing to the current value.
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
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.
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
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
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) (APIPortalsClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create the default API portal or update the existing API portal. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ApiPortals_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewAPIPortalsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<api-portal-name>", armappplatform.APIPortalResource{ Properties: &armappplatform.APIPortalProperties{ GatewayIDs: []*string{ to.StringPtr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default")}, Public: to.BoolPtr(true), }, SKU: &armappplatform.SKU{ Name: to.StringPtr("<name>"), Capacity: to.Int32Ptr(2), Tier: to.StringPtr("<tier>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.APIPortalsClientCreateOrUpdateResult) }
Output:
func (*APIPortalsClient) BeginDelete ¶ added in v0.3.0
func (client *APIPortalsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, apiPortalName string, options *APIPortalsClientBeginDeleteOptions) (APIPortalsClientDeletePollerResponse, error)
BeginDelete - Delete the default API portal. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ApiPortals_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewAPIPortalsClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<api-portal-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewAPIPortalsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<api-portal-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.APIPortalsClientGetResult) }
Output:
func (*APIPortalsClient) List ¶ added in v0.3.0
func (client *APIPortalsClient) List(resourceGroupName string, serviceName string, options *APIPortalsClientListOptions) *APIPortalsClientListPager
List - Handles requests to list all resources in a Service. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewAPIPortalsClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewAPIPortalsClient("<subscription-id>", cred, nil) res, err := client.ValidateDomain(ctx, "<resource-group-name>", "<service-name>", "<api-portal-name>", armappplatform.CustomDomainValidatePayload{ Name: to.StringPtr("<name>"), }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.APIPortalsClientValidateDomainResult) }
Output:
type APIPortalsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type APIPortalsClientBeginCreateOrUpdateOptions struct { }
APIPortalsClientBeginCreateOrUpdateOptions contains the optional parameters for the APIPortalsClient.BeginCreateOrUpdate method.
type APIPortalsClientBeginDeleteOptions ¶ added in v0.3.0
type APIPortalsClientBeginDeleteOptions struct { }
APIPortalsClientBeginDeleteOptions contains the optional parameters for the APIPortalsClient.BeginDelete method.
type APIPortalsClientCreateOrUpdatePoller ¶ added in v0.3.0
type APIPortalsClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
APIPortalsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*APIPortalsClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *APIPortalsClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*APIPortalsClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *APIPortalsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (APIPortalsClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final APIPortalsClientCreateOrUpdateResponse will be returned.
func (*APIPortalsClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*APIPortalsClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *APIPortalsClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type APIPortalsClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type APIPortalsClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *APIPortalsClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalsClientCreateOrUpdatePollerResponse contains the response from method APIPortalsClient.CreateOrUpdate.
func (APIPortalsClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l APIPortalsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (APIPortalsClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*APIPortalsClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *APIPortalsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *APIPortalsClient, token string) error
Resume rehydrates a APIPortalsClientCreateOrUpdatePollerResponse from the provided client and resume token.
type APIPortalsClientCreateOrUpdateResponse ¶ added in v0.3.0
type APIPortalsClientCreateOrUpdateResponse struct { APIPortalsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalsClientCreateOrUpdateResponse contains the response from method APIPortalsClient.CreateOrUpdate.
type APIPortalsClientCreateOrUpdateResult ¶ added in v0.3.0
type APIPortalsClientCreateOrUpdateResult struct {
APIPortalResource
}
APIPortalsClientCreateOrUpdateResult contains the result from method APIPortalsClient.CreateOrUpdate.
type APIPortalsClientDeletePoller ¶ added in v0.3.0
type APIPortalsClientDeletePoller struct {
// contains filtered or unexported fields
}
APIPortalsClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*APIPortalsClientDeletePoller) Done ¶ added in v0.3.0
func (p *APIPortalsClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*APIPortalsClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *APIPortalsClientDeletePoller) FinalResponse(ctx context.Context) (APIPortalsClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final APIPortalsClientDeleteResponse will be returned.
func (*APIPortalsClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*APIPortalsClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *APIPortalsClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type APIPortalsClientDeletePollerResponse ¶ added in v0.3.0
type APIPortalsClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *APIPortalsClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalsClientDeletePollerResponse contains the response from method APIPortalsClient.Delete.
func (APIPortalsClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l APIPortalsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (APIPortalsClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*APIPortalsClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *APIPortalsClientDeletePollerResponse) Resume(ctx context.Context, client *APIPortalsClient, token string) error
Resume rehydrates a APIPortalsClientDeletePollerResponse from the provided client and resume token.
type APIPortalsClientDeleteResponse ¶ added in v0.3.0
type APIPortalsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalsClientDeleteResponse contains the response from method APIPortalsClient.Delete.
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 { APIPortalsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalsClientGetResponse contains the response from method APIPortalsClient.Get.
type APIPortalsClientGetResult ¶ added in v0.3.0
type APIPortalsClientGetResult struct {
APIPortalResource
}
APIPortalsClientGetResult contains the result from method APIPortalsClient.Get.
type APIPortalsClientListOptions ¶ added in v0.3.0
type APIPortalsClientListOptions struct { }
APIPortalsClientListOptions contains the optional parameters for the APIPortalsClient.List method.
type APIPortalsClientListPager ¶ added in v0.3.0
type APIPortalsClientListPager struct {
// contains filtered or unexported fields
}
APIPortalsClientListPager provides operations for iterating over paged responses.
func (*APIPortalsClientListPager) Err ¶ added in v0.3.0
func (p *APIPortalsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*APIPortalsClientListPager) NextPage ¶ added in v0.3.0
func (p *APIPortalsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*APIPortalsClientListPager) PageResponse ¶ added in v0.3.0
func (p *APIPortalsClientListPager) PageResponse() APIPortalsClientListResponse
PageResponse returns the current APIPortalsClientListResponse page.
type APIPortalsClientListResponse ¶ added in v0.3.0
type APIPortalsClientListResponse struct { APIPortalsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalsClientListResponse contains the response from method APIPortalsClient.List.
type APIPortalsClientListResult ¶ added in v0.3.0
type APIPortalsClientListResult struct {
APIPortalResourceCollection
}
APIPortalsClientListResult contains the result from method APIPortalsClient.List.
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 { APIPortalsClientValidateDomainResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
APIPortalsClientValidateDomainResponse contains the response from method APIPortalsClient.ValidateDomain.
type APIPortalsClientValidateDomainResult ¶ added in v0.3.0
type APIPortalsClientValidateDomainResult struct {
CustomDomainValidateResult
}
APIPortalsClientValidateDomainResult contains the result from method APIPortalsClient.ValidateDomain.
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.
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.
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.
type AppResourceProperties ¶
type AppResourceProperties struct { // Collection of addons AddonConfigs map[string]map[string]map[string]interface{} `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"` // Fully qualified dns Name. Fqdn *string `json:"fqdn,omitempty"` // Indicate if only https is allowed. HTTPSOnly *bool `json:"httpsOnly,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"` // 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.
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.
func (AppResourceProvisioningState) ToPtr ¶
func (c AppResourceProvisioningState) ToPtr() *AppResourceProvisioningState
ToPtr returns a *AppResourceProvisioningState pointing to the current value.
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
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
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) (AppsClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create a new App or update an exiting App. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Apps_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewAppsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<app-name>", armappplatform.AppResource{ Location: to.StringPtr("<location>"), Properties: &armappplatform.AppResourceProperties{ AddonConfigs: map[string]map[string]map[string]interface{}{ "ApplicationConfigurationService": { "resourceId": { "0": "/", "1": "s", "2": "u", "3": "b", "4": "s", "5": "c", "6": "r", "7": "i", "8": "p", "9": "t", "10": "i", "11": "o", "12": "n", "13": "s", "14": "/", "15": "0", "16": "0", "17": "0", "18": "0", "19": "0", "20": "0", "21": "0", "22": "0", "23": "-", "24": "0", "25": "0", "26": "0", "27": "0", "28": "-", "29": "0", "30": "0", "31": "0", "32": "0", "33": "-", "34": "0", "35": "0", "36": "0", "37": "0", "38": "-", "39": "0", "40": "0", "41": "0", "42": "0", "43": "0", "44": "0", "45": "0", "46": "0", "47": "0", "48": "0", "49": "0", "50": "0", "51": "/", "52": "r", "53": "e", "54": "s", "55": "o", "56": "u", "57": "r", "58": "c", "59": "e", "60": "G", "61": "r", "62": "o", "63": "u", "64": "p", "65": "s", "66": "/", "67": "m", "68": "y", "69": "R", "70": "e", "71": "s", "72": "o", "73": "u", "74": "r", "75": "c", "76": "e", "77": "G", "78": "r", "79": "o", "80": "u", "81": "p", "82": "/", "83": "p", "84": "r", "85": "o", "86": "v", "87": "i", "88": "d", "89": "e", "90": "r", "91": "s", "92": "/", "93": "M", "94": "i", "95": "c", "96": "r", "97": "o", "98": "s", "99": "o", "100": "f", "101": "t", "102": ".", "103": "A", "104": "p", "105": "p", "106": "P", "107": "l", "108": "a", "109": "t", "110": "f", "111": "o", "112": "r", "113": "m", "114": "/", "115": "S", "116": "p", "117": "r", "118": "i", "119": "n", "120": "g", "121": "/", "122": "m", "123": "y", "124": "s", "125": "e", "126": "r", "127": "v", "128": "i", "129": "c", "130": "e", "131": "/", "132": "c", "133": "o", "134": "n", "135": "f", "136": "i", "137": "g", "138": "u", "139": "r", "140": "a", "141": "t", "142": "i", "143": "o", "144": "n", "145": "S", "146": "e", "147": "r", "148": "v", "149": "i", "150": "c", "151": "e", "152": "s", "153": "/", "154": "m", "155": "y", "156": "a", "157": "c", "158": "s", }, }, "ServiceRegistry": { "resourceId": { "0": "/", "1": "s", "2": "u", "3": "b", "4": "s", "5": "c", "6": "r", "7": "i", "8": "p", "9": "t", "10": "i", "11": "o", "12": "n", "13": "s", "14": "/", "15": "0", "16": "0", "17": "0", "18": "0", "19": "0", "20": "0", "21": "0", "22": "0", "23": "-", "24": "0", "25": "0", "26": "0", "27": "0", "28": "-", "29": "0", "30": "0", "31": "0", "32": "0", "33": "-", "34": "0", "35": "0", "36": "0", "37": "0", "38": "-", "39": "0", "40": "0", "41": "0", "42": "0", "43": "0", "44": "0", "45": "0", "46": "0", "47": "0", "48": "0", "49": "0", "50": "0", "51": "/", "52": "r", "53": "e", "54": "s", "55": "o", "56": "u", "57": "r", "58": "c", "59": "e", "60": "G", "61": "r", "62": "o", "63": "u", "64": "p", "65": "s", "66": "/", "67": "m", "68": "y", "69": "R", "70": "e", "71": "s", "72": "o", "73": "u", "74": "r", "75": "c", "76": "e", "77": "G", "78": "r", "79": "o", "80": "u", "81": "p", "82": "/", "83": "p", "84": "r", "85": "o", "86": "v", "87": "i", "88": "d", "89": "e", "90": "r", "91": "s", "92": "/", "93": "M", "94": "i", "95": "c", "96": "r", "97": "o", "98": "s", "99": "o", "100": "f", "101": "t", "102": ".", "103": "A", "104": "p", "105": "p", "106": "P", "107": "l", "108": "a", "109": "t", "110": "f", "111": "o", "112": "r", "113": "m", "114": "/", "115": "S", "116": "p", "117": "r", "118": "i", "119": "n", "120": "g", "121": "/", "122": "m", "123": "y", "124": "s", "125": "e", "126": "r", "127": "v", "128": "i", "129": "c", "130": "e", "131": "/", "132": "s", "133": "e", "134": "r", "135": "v", "136": "i", "137": "c", "138": "e", "139": "R", "140": "e", "141": "g", "142": "i", "143": "s", "144": "t", "145": "r", "146": "i", "147": "e", "148": "s", "149": "/", "150": "m", "151": "y", "152": "S", "153": "e", "154": "r", "155": "v", "156": "i", "157": "c", "158": "e", "159": "R", "160": "e", "161": "g", "162": "i", "163": "s", "164": "t", "165": "r", "166": "y", }, }, }, CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ { CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ Type: armappplatform.CustomPersistentDiskPropertiesType("AzureFileVolume").ToPtr(), MountOptions: []*string{ to.StringPtr("uid=0"), to.StringPtr("gid=0"), to.StringPtr("dir_mode=0777"), to.StringPtr("file_mode=0777")}, MountPath: to.StringPtr("<mount-path>"), ShareName: to.StringPtr("<share-name>"), }, StorageID: to.StringPtr("<storage-id>"), }}, EnableEndToEndTLS: to.BoolPtr(false), Fqdn: to.StringPtr("<fqdn>"), HTTPSOnly: to.BoolPtr(false), LoadedCertificates: []*armappplatform.LoadedCertificate{ { LoadTrustStore: to.BoolPtr(false), ResourceID: to.StringPtr("<resource-id>"), }, { LoadTrustStore: to.BoolPtr(true), ResourceID: to.StringPtr("<resource-id>"), }}, PersistentDisk: &armappplatform.PersistentDisk{ MountPath: to.StringPtr("<mount-path>"), SizeInGB: to.Int32Ptr(2), }, Public: to.BoolPtr(true), TemporaryDisk: &armappplatform.TemporaryDisk{ MountPath: to.StringPtr("<mount-path>"), SizeInGB: to.Int32Ptr(2), }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.AppsClientCreateOrUpdateResult) }
Output:
func (*AppsClient) BeginDelete ¶
func (client *AppsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, appName string, options *AppsClientBeginDeleteOptions) (AppsClientDeletePollerResponse, error)
BeginDelete - Operation to delete an App. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Apps_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewAppsClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<app-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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) (AppsClientSetActiveDeploymentsPollerResponse, error)
BeginSetActiveDeployments - Set existing Deployment under the app as active If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Apps_SetActiveDeployments.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewAppsClient("<subscription-id>", cred, nil) poller, err := client.BeginSetActiveDeployments(ctx, "<resource-group-name>", "<service-name>", "<app-name>", armappplatform.ActiveDeploymentCollection{ ActiveDeploymentNames: []*string{ to.StringPtr("default")}, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.AppsClientSetActiveDeploymentsResult) }
Output:
func (*AppsClient) BeginUpdate ¶
func (client *AppsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource AppResource, options *AppsClientBeginUpdateOptions) (AppsClientUpdatePollerResponse, error)
BeginUpdate - Operation to update an exiting App. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Apps_Update.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewAppsClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdate(ctx, "<resource-group-name>", "<service-name>", "<app-name>", armappplatform.AppResource{ Identity: &armappplatform.ManagedIdentityProperties{ Type: armappplatform.ManagedIdentityType("SystemAssigned").ToPtr(), }, Location: to.StringPtr("<location>"), Properties: &armappplatform.AppResourceProperties{ CustomPersistentDisks: []*armappplatform.CustomPersistentDiskResource{ { CustomPersistentDiskProperties: &armappplatform.AzureFileVolume{ Type: armappplatform.CustomPersistentDiskPropertiesType("AzureFileVolume").ToPtr(), MountOptions: []*string{}, MountPath: to.StringPtr("<mount-path>"), ShareName: to.StringPtr("<share-name>"), }, StorageID: to.StringPtr("<storage-id>"), }}, EnableEndToEndTLS: to.BoolPtr(false), Fqdn: to.StringPtr("<fqdn>"), HTTPSOnly: to.BoolPtr(false), PersistentDisk: &armappplatform.PersistentDisk{ MountPath: to.StringPtr("<mount-path>"), SizeInGB: to.Int32Ptr(2), }, Public: to.BoolPtr(true), TemporaryDisk: &armappplatform.TemporaryDisk{ MountPath: to.StringPtr("<mount-path>"), SizeInGB: to.Int32Ptr(2), }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.AppsClientUpdateResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewAppsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<app-name>", &armappplatform.AppsClientGetOptions{SyncStatus: nil}) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.AppsClientGetResult) }
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. 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.
func (*AppsClient) List ¶
func (client *AppsClient) List(resourceGroupName string, serviceName string, options *AppsClientListOptions) *AppsClientListPager
List - Handles requests to list all resources in a Service. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewAppsClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewAppsClient("<subscription-id>", cred, nil) res, err := client.ValidateDomain(ctx, "<resource-group-name>", "<service-name>", "<app-name>", armappplatform.CustomDomainValidatePayload{ Name: to.StringPtr("<name>"), }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.AppsClientValidateDomainResult) }
Output:
type AppsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type AppsClientBeginCreateOrUpdateOptions struct { }
AppsClientBeginCreateOrUpdateOptions contains the optional parameters for the AppsClient.BeginCreateOrUpdate method.
type AppsClientBeginDeleteOptions ¶ added in v0.3.0
type AppsClientBeginDeleteOptions struct { }
AppsClientBeginDeleteOptions contains the optional parameters for the AppsClient.BeginDelete method.
type AppsClientBeginSetActiveDeploymentsOptions ¶ added in v0.3.0
type AppsClientBeginSetActiveDeploymentsOptions struct { }
AppsClientBeginSetActiveDeploymentsOptions contains the optional parameters for the AppsClient.BeginSetActiveDeployments method.
type AppsClientBeginUpdateOptions ¶ added in v0.3.0
type AppsClientBeginUpdateOptions struct { }
AppsClientBeginUpdateOptions contains the optional parameters for the AppsClient.BeginUpdate method.
type AppsClientCreateOrUpdatePoller ¶ added in v0.3.0
type AppsClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
AppsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*AppsClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *AppsClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*AppsClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *AppsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (AppsClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final AppsClientCreateOrUpdateResponse will be returned.
func (*AppsClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*AppsClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *AppsClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type AppsClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type AppsClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *AppsClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientCreateOrUpdatePollerResponse contains the response from method AppsClient.CreateOrUpdate.
func (AppsClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l AppsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (AppsClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*AppsClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *AppsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *AppsClient, token string) error
Resume rehydrates a AppsClientCreateOrUpdatePollerResponse from the provided client and resume token.
type AppsClientCreateOrUpdateResponse ¶ added in v0.3.0
type AppsClientCreateOrUpdateResponse struct { AppsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientCreateOrUpdateResponse contains the response from method AppsClient.CreateOrUpdate.
type AppsClientCreateOrUpdateResult ¶ added in v0.3.0
type AppsClientCreateOrUpdateResult struct {
AppResource
}
AppsClientCreateOrUpdateResult contains the result from method AppsClient.CreateOrUpdate.
type AppsClientDeletePoller ¶ added in v0.3.0
type AppsClientDeletePoller struct {
// contains filtered or unexported fields
}
AppsClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*AppsClientDeletePoller) Done ¶ added in v0.3.0
func (p *AppsClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*AppsClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *AppsClientDeletePoller) FinalResponse(ctx context.Context) (AppsClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final AppsClientDeleteResponse will be returned.
func (*AppsClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*AppsClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *AppsClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type AppsClientDeletePollerResponse ¶ added in v0.3.0
type AppsClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *AppsClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientDeletePollerResponse contains the response from method AppsClient.Delete.
func (AppsClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l AppsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (AppsClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*AppsClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *AppsClientDeletePollerResponse) Resume(ctx context.Context, client *AppsClient, token string) error
Resume rehydrates a AppsClientDeletePollerResponse from the provided client and resume token.
type AppsClientDeleteResponse ¶ added in v0.3.0
type AppsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientDeleteResponse contains the response from method AppsClient.Delete.
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 { AppsClientGetResourceUploadURLResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientGetResourceUploadURLResponse contains the response from method AppsClient.GetResourceUploadURL.
type AppsClientGetResourceUploadURLResult ¶ added in v0.3.0
type AppsClientGetResourceUploadURLResult struct {
ResourceUploadDefinition
}
AppsClientGetResourceUploadURLResult contains the result from method AppsClient.GetResourceUploadURL.
type AppsClientGetResponse ¶ added in v0.3.0
type AppsClientGetResponse struct { AppsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientGetResponse contains the response from method AppsClient.Get.
type AppsClientGetResult ¶ added in v0.3.0
type AppsClientGetResult struct {
AppResource
}
AppsClientGetResult contains the result from method AppsClient.Get.
type AppsClientListOptions ¶ added in v0.3.0
type AppsClientListOptions struct { }
AppsClientListOptions contains the optional parameters for the AppsClient.List method.
type AppsClientListPager ¶ added in v0.3.0
type AppsClientListPager struct {
// contains filtered or unexported fields
}
AppsClientListPager provides operations for iterating over paged responses.
func (*AppsClientListPager) Err ¶ added in v0.3.0
func (p *AppsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*AppsClientListPager) NextPage ¶ added in v0.3.0
func (p *AppsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*AppsClientListPager) PageResponse ¶ added in v0.3.0
func (p *AppsClientListPager) PageResponse() AppsClientListResponse
PageResponse returns the current AppsClientListResponse page.
type AppsClientListResponse ¶ added in v0.3.0
type AppsClientListResponse struct { AppsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientListResponse contains the response from method AppsClient.List.
type AppsClientListResult ¶ added in v0.3.0
type AppsClientListResult struct {
AppResourceCollection
}
AppsClientListResult contains the result from method AppsClient.List.
type AppsClientSetActiveDeploymentsPoller ¶ added in v0.3.0
type AppsClientSetActiveDeploymentsPoller struct {
// contains filtered or unexported fields
}
AppsClientSetActiveDeploymentsPoller provides polling facilities until the operation reaches a terminal state.
func (*AppsClientSetActiveDeploymentsPoller) Done ¶ added in v0.3.0
func (p *AppsClientSetActiveDeploymentsPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*AppsClientSetActiveDeploymentsPoller) FinalResponse ¶ added in v0.3.0
func (p *AppsClientSetActiveDeploymentsPoller) FinalResponse(ctx context.Context) (AppsClientSetActiveDeploymentsResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final AppsClientSetActiveDeploymentsResponse will be returned.
func (*AppsClientSetActiveDeploymentsPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*AppsClientSetActiveDeploymentsPoller) ResumeToken ¶ added in v0.3.0
func (p *AppsClientSetActiveDeploymentsPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type AppsClientSetActiveDeploymentsPollerResponse ¶ added in v0.3.0
type AppsClientSetActiveDeploymentsPollerResponse struct { // Poller contains an initialized poller. Poller *AppsClientSetActiveDeploymentsPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientSetActiveDeploymentsPollerResponse contains the response from method AppsClient.SetActiveDeployments.
func (AppsClientSetActiveDeploymentsPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l AppsClientSetActiveDeploymentsPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (AppsClientSetActiveDeploymentsResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*AppsClientSetActiveDeploymentsPollerResponse) Resume ¶ added in v0.3.0
func (l *AppsClientSetActiveDeploymentsPollerResponse) Resume(ctx context.Context, client *AppsClient, token string) error
Resume rehydrates a AppsClientSetActiveDeploymentsPollerResponse from the provided client and resume token.
type AppsClientSetActiveDeploymentsResponse ¶ added in v0.3.0
type AppsClientSetActiveDeploymentsResponse struct { AppsClientSetActiveDeploymentsResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientSetActiveDeploymentsResponse contains the response from method AppsClient.SetActiveDeployments.
type AppsClientSetActiveDeploymentsResult ¶ added in v0.3.0
type AppsClientSetActiveDeploymentsResult struct {
AppResource
}
AppsClientSetActiveDeploymentsResult contains the result from method AppsClient.SetActiveDeployments.
type AppsClientUpdatePoller ¶ added in v0.3.0
type AppsClientUpdatePoller struct {
// contains filtered or unexported fields
}
AppsClientUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*AppsClientUpdatePoller) Done ¶ added in v0.3.0
func (p *AppsClientUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*AppsClientUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *AppsClientUpdatePoller) FinalResponse(ctx context.Context) (AppsClientUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final AppsClientUpdateResponse will be returned.
func (*AppsClientUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*AppsClientUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *AppsClientUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type AppsClientUpdatePollerResponse ¶ added in v0.3.0
type AppsClientUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *AppsClientUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientUpdatePollerResponse contains the response from method AppsClient.Update.
func (AppsClientUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l AppsClientUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (AppsClientUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*AppsClientUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *AppsClientUpdatePollerResponse) Resume(ctx context.Context, client *AppsClient, token string) error
Resume rehydrates a AppsClientUpdatePollerResponse from the provided client and resume token.
type AppsClientUpdateResponse ¶ added in v0.3.0
type AppsClientUpdateResponse struct { AppsClientUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientUpdateResponse contains the response from method AppsClient.Update.
type AppsClientUpdateResult ¶ added in v0.3.0
type AppsClientUpdateResult struct {
AppResource
}
AppsClientUpdateResult contains the result from method AppsClient.Update.
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 { AppsClientValidateDomainResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AppsClientValidateDomainResponse contains the response from method AppsClient.ValidateDomain.
type AppsClientValidateDomainResult ¶ added in v0.3.0
type AppsClientValidateDomainResult struct {
CustomDomainValidateResult
}
AppsClientValidateDomainResult contains the result 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.
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.
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 *CustomPersistentDiskPropertiesType `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 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.
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.
type BindingResourceProperties ¶
type BindingResourceProperties struct { // Binding parameters of the Binding resource BindingParameters map[string]map[string]interface{} `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.
type BindingType ¶ added in v0.3.0
type BindingType string
BindingType - Buildpack Binding Type
const ( BindingTypeApacheSkyWalking BindingType = "ApacheSkyWalking" BindingTypeAppDynamics BindingType = "AppDynamics" BindingTypeApplicationInsights BindingType = "ApplicationInsights" 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.
func (BindingType) ToPtr ¶ added in v0.3.0
func (c BindingType) ToPtr() *BindingType
ToPtr returns a *BindingType pointing to the current value.
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
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) (BindingsClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create a new Binding or update an exiting Binding. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Bindings_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewBindingsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<binding-name>", armappplatform.BindingResource{ Properties: &armappplatform.BindingResourceProperties{ BindingParameters: map[string]map[string]interface{}{ "apiType": { "0": "S", "1": "Q", "2": "L", }, "databaseName": { "0": "d", "1": "b", "2": "1", }, }, Key: to.StringPtr("<key>"), ResourceID: to.StringPtr("<resource-id>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BindingsClientCreateOrUpdateResult) }
Output:
func (*BindingsClient) BeginDelete ¶
func (client *BindingsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, appName string, bindingName string, options *BindingsClientBeginDeleteOptions) (BindingsClientDeletePollerResponse, error)
BeginDelete - Operation to delete a Binding. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Bindings_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewBindingsClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<binding-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*BindingsClient) BeginUpdate ¶
func (client *BindingsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, bindingName string, bindingResource BindingResource, options *BindingsClientBeginUpdateOptions) (BindingsClientUpdatePollerResponse, error)
BeginUpdate - Operation to update an exiting Binding. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Bindings_Update.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewBindingsClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdate(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<binding-name>", armappplatform.BindingResource{ Properties: &armappplatform.BindingResourceProperties{ BindingParameters: map[string]map[string]interface{}{ "apiType": { "0": "S", "1": "Q", "2": "L", }, "databaseName": { "0": "d", "1": "b", "2": "1", }, }, Key: to.StringPtr("<key>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BindingsClientUpdateResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBindingsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<binding-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BindingsClientGetResult) }
Output:
func (*BindingsClient) List ¶
func (client *BindingsClient) List(resourceGroupName string, serviceName string, appName string, options *BindingsClientListOptions) *BindingsClientListPager
List - Handles requests to list all resources in an App. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBindingsClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", "<app-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type BindingsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type BindingsClientBeginCreateOrUpdateOptions struct { }
BindingsClientBeginCreateOrUpdateOptions contains the optional parameters for the BindingsClient.BeginCreateOrUpdate method.
type BindingsClientBeginDeleteOptions ¶ added in v0.3.0
type BindingsClientBeginDeleteOptions struct { }
BindingsClientBeginDeleteOptions contains the optional parameters for the BindingsClient.BeginDelete method.
type BindingsClientBeginUpdateOptions ¶ added in v0.3.0
type BindingsClientBeginUpdateOptions struct { }
BindingsClientBeginUpdateOptions contains the optional parameters for the BindingsClient.BeginUpdate method.
type BindingsClientCreateOrUpdatePoller ¶ added in v0.3.0
type BindingsClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
BindingsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*BindingsClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *BindingsClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*BindingsClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *BindingsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (BindingsClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final BindingsClientCreateOrUpdateResponse will be returned.
func (*BindingsClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*BindingsClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *BindingsClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type BindingsClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type BindingsClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *BindingsClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BindingsClientCreateOrUpdatePollerResponse contains the response from method BindingsClient.CreateOrUpdate.
func (BindingsClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l BindingsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BindingsClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*BindingsClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *BindingsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *BindingsClient, token string) error
Resume rehydrates a BindingsClientCreateOrUpdatePollerResponse from the provided client and resume token.
type BindingsClientCreateOrUpdateResponse ¶ added in v0.3.0
type BindingsClientCreateOrUpdateResponse struct { BindingsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BindingsClientCreateOrUpdateResponse contains the response from method BindingsClient.CreateOrUpdate.
type BindingsClientCreateOrUpdateResult ¶ added in v0.3.0
type BindingsClientCreateOrUpdateResult struct {
BindingResource
}
BindingsClientCreateOrUpdateResult contains the result from method BindingsClient.CreateOrUpdate.
type BindingsClientDeletePoller ¶ added in v0.3.0
type BindingsClientDeletePoller struct {
// contains filtered or unexported fields
}
BindingsClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*BindingsClientDeletePoller) Done ¶ added in v0.3.0
func (p *BindingsClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*BindingsClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *BindingsClientDeletePoller) FinalResponse(ctx context.Context) (BindingsClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final BindingsClientDeleteResponse will be returned.
func (*BindingsClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*BindingsClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *BindingsClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type BindingsClientDeletePollerResponse ¶ added in v0.3.0
type BindingsClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *BindingsClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BindingsClientDeletePollerResponse contains the response from method BindingsClient.Delete.
func (BindingsClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l BindingsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BindingsClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*BindingsClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *BindingsClientDeletePollerResponse) Resume(ctx context.Context, client *BindingsClient, token string) error
Resume rehydrates a BindingsClientDeletePollerResponse from the provided client and resume token.
type BindingsClientDeleteResponse ¶ added in v0.3.0
type BindingsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BindingsClientDeleteResponse contains the response from method BindingsClient.Delete.
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 { BindingsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BindingsClientGetResponse contains the response from method BindingsClient.Get.
type BindingsClientGetResult ¶ added in v0.3.0
type BindingsClientGetResult struct {
BindingResource
}
BindingsClientGetResult contains the result from method BindingsClient.Get.
type BindingsClientListOptions ¶ added in v0.3.0
type BindingsClientListOptions struct { }
BindingsClientListOptions contains the optional parameters for the BindingsClient.List method.
type BindingsClientListPager ¶ added in v0.3.0
type BindingsClientListPager struct {
// contains filtered or unexported fields
}
BindingsClientListPager provides operations for iterating over paged responses.
func (*BindingsClientListPager) Err ¶ added in v0.3.0
func (p *BindingsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*BindingsClientListPager) NextPage ¶ added in v0.3.0
func (p *BindingsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*BindingsClientListPager) PageResponse ¶ added in v0.3.0
func (p *BindingsClientListPager) PageResponse() BindingsClientListResponse
PageResponse returns the current BindingsClientListResponse page.
type BindingsClientListResponse ¶ added in v0.3.0
type BindingsClientListResponse struct { BindingsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BindingsClientListResponse contains the response from method BindingsClient.List.
type BindingsClientListResult ¶ added in v0.3.0
type BindingsClientListResult struct {
BindingResourceCollection
}
BindingsClientListResult contains the result from method BindingsClient.List.
type BindingsClientUpdatePoller ¶ added in v0.3.0
type BindingsClientUpdatePoller struct {
// contains filtered or unexported fields
}
BindingsClientUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*BindingsClientUpdatePoller) Done ¶ added in v0.3.0
func (p *BindingsClientUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*BindingsClientUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *BindingsClientUpdatePoller) FinalResponse(ctx context.Context) (BindingsClientUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final BindingsClientUpdateResponse will be returned.
func (*BindingsClientUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*BindingsClientUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *BindingsClientUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type BindingsClientUpdatePollerResponse ¶ added in v0.3.0
type BindingsClientUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *BindingsClientUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BindingsClientUpdatePollerResponse contains the response from method BindingsClient.Update.
func (BindingsClientUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l BindingsClientUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BindingsClientUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*BindingsClientUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *BindingsClientUpdatePollerResponse) Resume(ctx context.Context, client *BindingsClient, token string) error
Resume rehydrates a BindingsClientUpdatePollerResponse from the provided client and resume token.
type BindingsClientUpdateResponse ¶ added in v0.3.0
type BindingsClientUpdateResponse struct { BindingsClientUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BindingsClientUpdateResponse contains the response from method BindingsClient.Update.
type BindingsClientUpdateResult ¶ added in v0.3.0
type BindingsClientUpdateResult struct {
BindingResource
}
BindingsClientUpdateResult contains the result from method BindingsClient.Update.
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
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.
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"` // 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.
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.
func (BuildProvisioningState) ToPtr ¶ added in v0.3.0
func (c BuildProvisioningState) ToPtr() *BuildProvisioningState
ToPtr returns a *BuildProvisioningState pointing to the current value.
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
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.
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
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"` // 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.
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.
func (BuildResultProvisioningState) ToPtr ¶ added in v0.3.0
func (c BuildResultProvisioningState) ToPtr() *BuildResultProvisioningState
ToPtr returns a *BuildResultProvisioningState pointing to the current value.
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
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
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) (BuildServiceAgentPoolClientUpdatePutPollerResponse, error)
BeginUpdatePut - Create or update build service agent pool. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/BuildServiceAgentPool_UpdatePut.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewBuildServiceAgentPoolClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdatePut(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<agent-pool-name>", armappplatform.BuildServiceAgentPoolResource{ Properties: &armappplatform.BuildServiceAgentPoolProperties{ PoolSize: &armappplatform.BuildServiceAgentPoolSizeProperties{ Name: to.StringPtr("<name>"), }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceAgentPoolClientUpdatePutResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceAgentPoolClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<agent-pool-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceAgentPoolClientGetResult) }
Output:
func (*BuildServiceAgentPoolClient) List ¶ added in v0.3.0
func (client *BuildServiceAgentPoolClient) List(resourceGroupName string, serviceName string, buildServiceName string, options *BuildServiceAgentPoolClientListOptions) *BuildServiceAgentPoolClientListPager
List - List build service agent pool. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceAgentPoolClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", "<build-service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type BuildServiceAgentPoolClientBeginUpdatePutOptions ¶ added in v0.3.0
type BuildServiceAgentPoolClientBeginUpdatePutOptions struct { }
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 { BuildServiceAgentPoolClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceAgentPoolClientGetResponse contains the response from method BuildServiceAgentPoolClient.Get.
type BuildServiceAgentPoolClientGetResult ¶ added in v0.3.0
type BuildServiceAgentPoolClientGetResult struct {
BuildServiceAgentPoolResource
}
BuildServiceAgentPoolClientGetResult contains the result from method BuildServiceAgentPoolClient.Get.
type BuildServiceAgentPoolClientListOptions ¶ added in v0.3.0
type BuildServiceAgentPoolClientListOptions struct { }
BuildServiceAgentPoolClientListOptions contains the optional parameters for the BuildServiceAgentPoolClient.List method.
type BuildServiceAgentPoolClientListPager ¶ added in v0.3.0
type BuildServiceAgentPoolClientListPager struct {
// contains filtered or unexported fields
}
BuildServiceAgentPoolClientListPager provides operations for iterating over paged responses.
func (*BuildServiceAgentPoolClientListPager) Err ¶ added in v0.3.0
func (p *BuildServiceAgentPoolClientListPager) Err() error
Err returns the last error encountered while paging.
func (*BuildServiceAgentPoolClientListPager) NextPage ¶ added in v0.3.0
func (p *BuildServiceAgentPoolClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*BuildServiceAgentPoolClientListPager) PageResponse ¶ added in v0.3.0
func (p *BuildServiceAgentPoolClientListPager) PageResponse() BuildServiceAgentPoolClientListResponse
PageResponse returns the current BuildServiceAgentPoolClientListResponse page.
type BuildServiceAgentPoolClientListResponse ¶ added in v0.3.0
type BuildServiceAgentPoolClientListResponse struct { BuildServiceAgentPoolClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceAgentPoolClientListResponse contains the response from method BuildServiceAgentPoolClient.List.
type BuildServiceAgentPoolClientListResult ¶ added in v0.3.0
type BuildServiceAgentPoolClientListResult struct {
BuildServiceAgentPoolResourceCollection
}
BuildServiceAgentPoolClientListResult contains the result from method BuildServiceAgentPoolClient.List.
type BuildServiceAgentPoolClientUpdatePutPoller ¶ added in v0.3.0
type BuildServiceAgentPoolClientUpdatePutPoller struct {
// contains filtered or unexported fields
}
BuildServiceAgentPoolClientUpdatePutPoller provides polling facilities until the operation reaches a terminal state.
func (*BuildServiceAgentPoolClientUpdatePutPoller) Done ¶ added in v0.3.0
func (p *BuildServiceAgentPoolClientUpdatePutPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*BuildServiceAgentPoolClientUpdatePutPoller) FinalResponse ¶ added in v0.3.0
func (p *BuildServiceAgentPoolClientUpdatePutPoller) FinalResponse(ctx context.Context) (BuildServiceAgentPoolClientUpdatePutResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final BuildServiceAgentPoolClientUpdatePutResponse will be returned.
func (*BuildServiceAgentPoolClientUpdatePutPoller) Poll ¶ added in v0.3.0
func (p *BuildServiceAgentPoolClientUpdatePutPoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*BuildServiceAgentPoolClientUpdatePutPoller) ResumeToken ¶ added in v0.3.0
func (p *BuildServiceAgentPoolClientUpdatePutPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type BuildServiceAgentPoolClientUpdatePutPollerResponse ¶ added in v0.3.0
type BuildServiceAgentPoolClientUpdatePutPollerResponse struct { // Poller contains an initialized poller. Poller *BuildServiceAgentPoolClientUpdatePutPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceAgentPoolClientUpdatePutPollerResponse contains the response from method BuildServiceAgentPoolClient.UpdatePut.
func (BuildServiceAgentPoolClientUpdatePutPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l BuildServiceAgentPoolClientUpdatePutPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BuildServiceAgentPoolClientUpdatePutResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*BuildServiceAgentPoolClientUpdatePutPollerResponse) Resume ¶ added in v0.3.0
func (l *BuildServiceAgentPoolClientUpdatePutPollerResponse) Resume(ctx context.Context, client *BuildServiceAgentPoolClient, token string) error
Resume rehydrates a BuildServiceAgentPoolClientUpdatePutPollerResponse from the provided client and resume token.
type BuildServiceAgentPoolClientUpdatePutResponse ¶ added in v0.3.0
type BuildServiceAgentPoolClientUpdatePutResponse struct { BuildServiceAgentPoolClientUpdatePutResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceAgentPoolClientUpdatePutResponse contains the response from method BuildServiceAgentPoolClient.UpdatePut.
type BuildServiceAgentPoolClientUpdatePutResult ¶ added in v0.3.0
type BuildServiceAgentPoolClientUpdatePutResult struct {
BuildServiceAgentPoolResource
}
BuildServiceAgentPoolClientUpdatePutResult contains the result from method BuildServiceAgentPoolClient.UpdatePut.
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
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
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.
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
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
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) (BuildServiceBuilderClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create or update a KPack builder. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/BuildServiceBuilder_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewBuildServiceBuilderClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<builder-name>", armappplatform.BuilderResource{ Properties: &armappplatform.BuilderProperties{ BuildpackGroups: []*armappplatform.BuildpacksGroupProperties{ { Name: to.StringPtr("<name>"), Buildpacks: []*armappplatform.BuildpackProperties{ { ID: to.StringPtr("<id>"), }}, }}, Stack: &armappplatform.StackProperties{ ID: to.StringPtr("<id>"), Version: to.StringPtr("<version>"), }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceBuilderClientCreateOrUpdateResult) }
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) (BuildServiceBuilderClientDeletePollerResponse, error)
BeginDelete - Delete a KPack builder. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/BuildServiceBuilder_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewBuildServiceBuilderClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<builder-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceBuilderClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<builder-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceBuilderClientGetResult) }
Output:
func (*BuildServiceBuilderClient) List ¶ added in v0.3.0
func (client *BuildServiceBuilderClient) List(resourceGroupName string, serviceName string, buildServiceName string, options *BuildServiceBuilderClientListOptions) *BuildServiceBuilderClientListPager
List - List KPack builders result. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceBuilderClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", "<build-service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type BuildServiceBuilderClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type BuildServiceBuilderClientBeginCreateOrUpdateOptions struct { }
BuildServiceBuilderClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildServiceBuilderClient.BeginCreateOrUpdate method.
type BuildServiceBuilderClientBeginDeleteOptions ¶ added in v0.3.0
type BuildServiceBuilderClientBeginDeleteOptions struct { }
BuildServiceBuilderClientBeginDeleteOptions contains the optional parameters for the BuildServiceBuilderClient.BeginDelete method.
type BuildServiceBuilderClientCreateOrUpdatePoller ¶ added in v0.3.0
type BuildServiceBuilderClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
BuildServiceBuilderClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*BuildServiceBuilderClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *BuildServiceBuilderClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*BuildServiceBuilderClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *BuildServiceBuilderClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (BuildServiceBuilderClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final BuildServiceBuilderClientCreateOrUpdateResponse will be returned.
func (*BuildServiceBuilderClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
func (p *BuildServiceBuilderClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*BuildServiceBuilderClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *BuildServiceBuilderClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type BuildServiceBuilderClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type BuildServiceBuilderClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *BuildServiceBuilderClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceBuilderClientCreateOrUpdatePollerResponse contains the response from method BuildServiceBuilderClient.CreateOrUpdate.
func (BuildServiceBuilderClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l BuildServiceBuilderClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BuildServiceBuilderClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*BuildServiceBuilderClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *BuildServiceBuilderClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *BuildServiceBuilderClient, token string) error
Resume rehydrates a BuildServiceBuilderClientCreateOrUpdatePollerResponse from the provided client and resume token.
type BuildServiceBuilderClientCreateOrUpdateResponse ¶ added in v0.3.0
type BuildServiceBuilderClientCreateOrUpdateResponse struct { BuildServiceBuilderClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceBuilderClientCreateOrUpdateResponse contains the response from method BuildServiceBuilderClient.CreateOrUpdate.
type BuildServiceBuilderClientCreateOrUpdateResult ¶ added in v0.3.0
type BuildServiceBuilderClientCreateOrUpdateResult struct {
BuilderResource
}
BuildServiceBuilderClientCreateOrUpdateResult contains the result from method BuildServiceBuilderClient.CreateOrUpdate.
type BuildServiceBuilderClientDeletePoller ¶ added in v0.3.0
type BuildServiceBuilderClientDeletePoller struct {
// contains filtered or unexported fields
}
BuildServiceBuilderClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*BuildServiceBuilderClientDeletePoller) Done ¶ added in v0.3.0
func (p *BuildServiceBuilderClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*BuildServiceBuilderClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *BuildServiceBuilderClientDeletePoller) FinalResponse(ctx context.Context) (BuildServiceBuilderClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final BuildServiceBuilderClientDeleteResponse will be returned.
func (*BuildServiceBuilderClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*BuildServiceBuilderClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *BuildServiceBuilderClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type BuildServiceBuilderClientDeletePollerResponse ¶ added in v0.3.0
type BuildServiceBuilderClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *BuildServiceBuilderClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceBuilderClientDeletePollerResponse contains the response from method BuildServiceBuilderClient.Delete.
func (BuildServiceBuilderClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l BuildServiceBuilderClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BuildServiceBuilderClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*BuildServiceBuilderClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *BuildServiceBuilderClientDeletePollerResponse) Resume(ctx context.Context, client *BuildServiceBuilderClient, token string) error
Resume rehydrates a BuildServiceBuilderClientDeletePollerResponse from the provided client and resume token.
type BuildServiceBuilderClientDeleteResponse ¶ added in v0.3.0
type BuildServiceBuilderClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceBuilderClientDeleteResponse contains the response from method BuildServiceBuilderClient.Delete.
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 { BuildServiceBuilderClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceBuilderClientGetResponse contains the response from method BuildServiceBuilderClient.Get.
type BuildServiceBuilderClientGetResult ¶ added in v0.3.0
type BuildServiceBuilderClientGetResult struct {
BuilderResource
}
BuildServiceBuilderClientGetResult contains the result from method BuildServiceBuilderClient.Get.
type BuildServiceBuilderClientListOptions ¶ added in v0.3.0
type BuildServiceBuilderClientListOptions struct { }
BuildServiceBuilderClientListOptions contains the optional parameters for the BuildServiceBuilderClient.List method.
type BuildServiceBuilderClientListPager ¶ added in v0.3.0
type BuildServiceBuilderClientListPager struct {
// contains filtered or unexported fields
}
BuildServiceBuilderClientListPager provides operations for iterating over paged responses.
func (*BuildServiceBuilderClientListPager) Err ¶ added in v0.3.0
func (p *BuildServiceBuilderClientListPager) Err() error
Err returns the last error encountered while paging.
func (*BuildServiceBuilderClientListPager) NextPage ¶ added in v0.3.0
func (p *BuildServiceBuilderClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*BuildServiceBuilderClientListPager) PageResponse ¶ added in v0.3.0
func (p *BuildServiceBuilderClientListPager) PageResponse() BuildServiceBuilderClientListResponse
PageResponse returns the current BuildServiceBuilderClientListResponse page.
type BuildServiceBuilderClientListResponse ¶ added in v0.3.0
type BuildServiceBuilderClientListResponse struct { BuildServiceBuilderClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceBuilderClientListResponse contains the response from method BuildServiceBuilderClient.List.
type BuildServiceBuilderClientListResult ¶ added in v0.3.0
type BuildServiceBuilderClientListResult struct {
BuilderResourceCollection
}
BuildServiceBuilderClientListResult contains the result from method BuildServiceBuilderClient.List.
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
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) res, err := client.CreateOrUpdateBuild(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<build-name>", armappplatform.Build{ Properties: &armappplatform.BuildProperties{ AgentPool: to.StringPtr("<agent-pool>"), Builder: to.StringPtr("<builder>"), Env: map[string]*string{ "environmentVariable": to.StringPtr("test"), }, RelativePath: to.StringPtr("<relative-path>"), }, }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceClientCreateOrUpdateBuildResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) res, err := client.GetBuild(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<build-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceClientGetBuildResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) res, err := client.GetBuildResult(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<build-name>", "<build-result-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceClientGetBuildResultResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) res, err := client.GetBuildResultLog(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<build-name>", "<build-result-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceClientGetBuildResultLogResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) res, err := client.GetBuildService(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceClientGetBuildServiceResult) }
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. 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.
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) res, err := client.GetSupportedBuildpack(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<buildpack-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceClientGetSupportedBuildpackResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) res, err := client.GetSupportedStack(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<stack-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceClientGetSupportedStackResult) }
Output:
func (*BuildServiceClient) ListBuildResults ¶ added in v0.3.0
func (client *BuildServiceClient) ListBuildResults(resourceGroupName string, serviceName string, buildServiceName string, buildName string, options *BuildServiceClientListBuildResultsOptions) *BuildServiceClientListBuildResultsPager
ListBuildResults - List KPack build results. If the operation fails it returns an *azcore.ResponseError type. 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.ListBuildResults method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) pager := client.ListBuildResults("<resource-group-name>", "<service-name>", "<build-service-name>", "<build-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*BuildServiceClient) ListBuildServices ¶ added in v0.3.0
func (client *BuildServiceClient) ListBuildServices(resourceGroupName string, serviceName string, options *BuildServiceClientListBuildServicesOptions) *BuildServiceClientListBuildServicesPager
ListBuildServices - List build services resource. If the operation fails it returns an *azcore.ResponseError type. 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.ListBuildServices method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) pager := client.ListBuildServices("<resource-group-name>", "<service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*BuildServiceClient) ListBuilds ¶ added in v0.3.0
func (client *BuildServiceClient) ListBuilds(resourceGroupName string, serviceName string, buildServiceName string, options *BuildServiceClientListBuildsOptions) *BuildServiceClientListBuildsPager
ListBuilds - List KPack builds. If the operation fails it returns an *azcore.ResponseError type. 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.ListBuilds method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) pager := client.ListBuilds("<resource-group-name>", "<service-name>", "<build-service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) res, err := client.ListSupportedBuildpacks(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceClientListSupportedBuildpacksResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildServiceClient("<subscription-id>", cred, nil) res, err := client.ListSupportedStacks(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildServiceClientListSupportedStacksResult) }
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 { BuildServiceClientCreateOrUpdateBuildResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientCreateOrUpdateBuildResponse contains the response from method BuildServiceClient.CreateOrUpdateBuild.
type BuildServiceClientCreateOrUpdateBuildResult ¶ added in v0.3.0
type BuildServiceClientCreateOrUpdateBuildResult struct {
Build
}
BuildServiceClientCreateOrUpdateBuildResult contains the result 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 { BuildServiceClientGetBuildResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientGetBuildResponse contains the response from method BuildServiceClient.GetBuild.
type BuildServiceClientGetBuildResult ¶ added in v0.3.0
type BuildServiceClientGetBuildResult struct {
Build
}
BuildServiceClientGetBuildResult contains the result 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 { BuildServiceClientGetBuildResultLogResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientGetBuildResultLogResponse contains the response from method BuildServiceClient.GetBuildResultLog.
type BuildServiceClientGetBuildResultLogResult ¶ added in v0.3.0
type BuildServiceClientGetBuildResultLogResult struct {
BuildResultLog
}
BuildServiceClientGetBuildResultLogResult contains the result 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 { BuildServiceClientGetBuildResultResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientGetBuildResultResponse contains the response from method BuildServiceClient.GetBuildResult.
type BuildServiceClientGetBuildResultResult ¶ added in v0.3.0
type BuildServiceClientGetBuildResultResult struct {
BuildResult
}
BuildServiceClientGetBuildResultResult contains the result 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 { BuildServiceClientGetBuildServiceResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientGetBuildServiceResponse contains the response from method BuildServiceClient.GetBuildService.
type BuildServiceClientGetBuildServiceResult ¶ added in v0.3.0
type BuildServiceClientGetBuildServiceResult struct {
BuildService
}
BuildServiceClientGetBuildServiceResult contains the result 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 { BuildServiceClientGetResourceUploadURLResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientGetResourceUploadURLResponse contains the response from method BuildServiceClient.GetResourceUploadURL.
type BuildServiceClientGetResourceUploadURLResult ¶ added in v0.3.0
type BuildServiceClientGetResourceUploadURLResult struct {
ResourceUploadDefinition
}
BuildServiceClientGetResourceUploadURLResult contains the result 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 { BuildServiceClientGetSupportedBuildpackResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientGetSupportedBuildpackResponse contains the response from method BuildServiceClient.GetSupportedBuildpack.
type BuildServiceClientGetSupportedBuildpackResult ¶ added in v0.3.0
type BuildServiceClientGetSupportedBuildpackResult struct {
SupportedBuildpackResource
}
BuildServiceClientGetSupportedBuildpackResult contains the result 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 { BuildServiceClientGetSupportedStackResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientGetSupportedStackResponse contains the response from method BuildServiceClient.GetSupportedStack.
type BuildServiceClientGetSupportedStackResult ¶ added in v0.3.0
type BuildServiceClientGetSupportedStackResult struct {
SupportedStackResource
}
BuildServiceClientGetSupportedStackResult contains the result from method BuildServiceClient.GetSupportedStack.
type BuildServiceClientListBuildResultsOptions ¶ added in v0.3.0
type BuildServiceClientListBuildResultsOptions struct { }
BuildServiceClientListBuildResultsOptions contains the optional parameters for the BuildServiceClient.ListBuildResults method.
type BuildServiceClientListBuildResultsPager ¶ added in v0.3.0
type BuildServiceClientListBuildResultsPager struct {
// contains filtered or unexported fields
}
BuildServiceClientListBuildResultsPager provides operations for iterating over paged responses.
func (*BuildServiceClientListBuildResultsPager) Err ¶ added in v0.3.0
func (p *BuildServiceClientListBuildResultsPager) Err() error
Err returns the last error encountered while paging.
func (*BuildServiceClientListBuildResultsPager) NextPage ¶ added in v0.3.0
func (p *BuildServiceClientListBuildResultsPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*BuildServiceClientListBuildResultsPager) PageResponse ¶ added in v0.3.0
func (p *BuildServiceClientListBuildResultsPager) PageResponse() BuildServiceClientListBuildResultsResponse
PageResponse returns the current BuildServiceClientListBuildResultsResponse page.
type BuildServiceClientListBuildResultsResponse ¶ added in v0.3.0
type BuildServiceClientListBuildResultsResponse struct { BuildServiceClientListBuildResultsResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientListBuildResultsResponse contains the response from method BuildServiceClient.ListBuildResults.
type BuildServiceClientListBuildResultsResult ¶ added in v0.3.0
type BuildServiceClientListBuildResultsResult struct {
BuildResultCollection
}
BuildServiceClientListBuildResultsResult contains the result from method BuildServiceClient.ListBuildResults.
type BuildServiceClientListBuildServicesOptions ¶ added in v0.3.0
type BuildServiceClientListBuildServicesOptions struct { }
BuildServiceClientListBuildServicesOptions contains the optional parameters for the BuildServiceClient.ListBuildServices method.
type BuildServiceClientListBuildServicesPager ¶ added in v0.3.0
type BuildServiceClientListBuildServicesPager struct {
// contains filtered or unexported fields
}
BuildServiceClientListBuildServicesPager provides operations for iterating over paged responses.
func (*BuildServiceClientListBuildServicesPager) Err ¶ added in v0.3.0
func (p *BuildServiceClientListBuildServicesPager) Err() error
Err returns the last error encountered while paging.
func (*BuildServiceClientListBuildServicesPager) NextPage ¶ added in v0.3.0
func (p *BuildServiceClientListBuildServicesPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*BuildServiceClientListBuildServicesPager) PageResponse ¶ added in v0.3.0
func (p *BuildServiceClientListBuildServicesPager) PageResponse() BuildServiceClientListBuildServicesResponse
PageResponse returns the current BuildServiceClientListBuildServicesResponse page.
type BuildServiceClientListBuildServicesResponse ¶ added in v0.3.0
type BuildServiceClientListBuildServicesResponse struct { BuildServiceClientListBuildServicesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientListBuildServicesResponse contains the response from method BuildServiceClient.ListBuildServices.
type BuildServiceClientListBuildServicesResult ¶ added in v0.3.0
type BuildServiceClientListBuildServicesResult struct {
BuildServiceCollection
}
BuildServiceClientListBuildServicesResult contains the result from method BuildServiceClient.ListBuildServices.
type BuildServiceClientListBuildsOptions ¶ added in v0.3.0
type BuildServiceClientListBuildsOptions struct { }
BuildServiceClientListBuildsOptions contains the optional parameters for the BuildServiceClient.ListBuilds method.
type BuildServiceClientListBuildsPager ¶ added in v0.3.0
type BuildServiceClientListBuildsPager struct {
// contains filtered or unexported fields
}
BuildServiceClientListBuildsPager provides operations for iterating over paged responses.
func (*BuildServiceClientListBuildsPager) Err ¶ added in v0.3.0
func (p *BuildServiceClientListBuildsPager) Err() error
Err returns the last error encountered while paging.
func (*BuildServiceClientListBuildsPager) NextPage ¶ added in v0.3.0
func (p *BuildServiceClientListBuildsPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*BuildServiceClientListBuildsPager) PageResponse ¶ added in v0.3.0
func (p *BuildServiceClientListBuildsPager) PageResponse() BuildServiceClientListBuildsResponse
PageResponse returns the current BuildServiceClientListBuildsResponse page.
type BuildServiceClientListBuildsResponse ¶ added in v0.3.0
type BuildServiceClientListBuildsResponse struct { BuildServiceClientListBuildsResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientListBuildsResponse contains the response from method BuildServiceClient.ListBuilds.
type BuildServiceClientListBuildsResult ¶ added in v0.3.0
type BuildServiceClientListBuildsResult struct {
BuildCollection
}
BuildServiceClientListBuildsResult contains the result from method BuildServiceClient.ListBuilds.
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 { BuildServiceClientListSupportedBuildpacksResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientListSupportedBuildpacksResponse contains the response from method BuildServiceClient.ListSupportedBuildpacks.
type BuildServiceClientListSupportedBuildpacksResult ¶ added in v0.3.0
type BuildServiceClientListSupportedBuildpacksResult struct {
SupportedBuildpacksCollection
}
BuildServiceClientListSupportedBuildpacksResult contains the result 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 { BuildServiceClientListSupportedStacksResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildServiceClientListSupportedStacksResponse contains the response from method BuildServiceClient.ListSupportedStacks.
type BuildServiceClientListSupportedStacksResult ¶ added in v0.3.0
type BuildServiceClientListSupportedStacksResult struct {
SupportedStacksCollection
}
BuildServiceClientListSupportedStacksResult contains the result 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.
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
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.
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.
func (BuildServiceProvisioningState) ToPtr ¶ added in v0.3.0
func (c BuildServiceProvisioningState) ToPtr() *BuildServiceProvisioningState
ToPtr returns a *BuildServiceProvisioningState pointing to the current value.
type BuildStageProperties ¶ added in v0.3.0
type BuildStageProperties struct { // READ-ONLY; The name of this build stage resource. Name *string `json:"name,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.
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.
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.
func (BuilderProvisioningState) ToPtr ¶ added in v0.3.0
func (c BuilderProvisioningState) ToPtr() *BuilderProvisioningState
ToPtr returns a *BuilderProvisioningState pointing to the current value.
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
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.
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
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) (BuildpackBindingClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create or update a buildpack binding. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/BuildpackBinding_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewBuildpackBindingClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<builder-name>", "<buildpack-binding-name>", armappplatform.BuildpackBindingResource{ Properties: &armappplatform.BuildpackBindingProperties{ BindingType: armappplatform.BindingType("ApplicationInsights").ToPtr(), LaunchProperties: &armappplatform.BuildpackBindingLaunchProperties{ Properties: map[string]*string{ "abc": to.StringPtr("def"), "any-string": to.StringPtr("any-string"), "sampling-rate": to.StringPtr("12.0"), }, Secrets: map[string]*string{ "connection-string": to.StringPtr("XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX"), }, }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildpackBindingClientCreateOrUpdateResult) }
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) (BuildpackBindingClientDeletePollerResponse, error)
BeginDelete - Operation to delete a Buildpack Binding If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/BuildpackBinding_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewBuildpackBindingClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<builder-name>", "<buildpack-binding-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildpackBindingClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<build-service-name>", "<builder-name>", "<buildpack-binding-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BuildpackBindingClientGetResult) }
Output:
func (*BuildpackBindingClient) List ¶ added in v0.3.0
func (client *BuildpackBindingClient) List(resourceGroupName string, serviceName string, buildServiceName string, builderName string, options *BuildpackBindingClientListOptions) *BuildpackBindingClientListPager
List - Handles requests to list all buildpack bindings in a builder. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewBuildpackBindingClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", "<build-service-name>", "<builder-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type BuildpackBindingClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type BuildpackBindingClientBeginCreateOrUpdateOptions struct { }
BuildpackBindingClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildpackBindingClient.BeginCreateOrUpdate method.
type BuildpackBindingClientBeginDeleteOptions ¶ added in v0.3.0
type BuildpackBindingClientBeginDeleteOptions struct { }
BuildpackBindingClientBeginDeleteOptions contains the optional parameters for the BuildpackBindingClient.BeginDelete method.
type BuildpackBindingClientCreateOrUpdatePoller ¶ added in v0.3.0
type BuildpackBindingClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
BuildpackBindingClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*BuildpackBindingClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *BuildpackBindingClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*BuildpackBindingClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *BuildpackBindingClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (BuildpackBindingClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final BuildpackBindingClientCreateOrUpdateResponse will be returned.
func (*BuildpackBindingClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
func (p *BuildpackBindingClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*BuildpackBindingClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *BuildpackBindingClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type BuildpackBindingClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type BuildpackBindingClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *BuildpackBindingClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildpackBindingClientCreateOrUpdatePollerResponse contains the response from method BuildpackBindingClient.CreateOrUpdate.
func (BuildpackBindingClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l BuildpackBindingClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BuildpackBindingClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*BuildpackBindingClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *BuildpackBindingClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *BuildpackBindingClient, token string) error
Resume rehydrates a BuildpackBindingClientCreateOrUpdatePollerResponse from the provided client and resume token.
type BuildpackBindingClientCreateOrUpdateResponse ¶ added in v0.3.0
type BuildpackBindingClientCreateOrUpdateResponse struct { BuildpackBindingClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildpackBindingClientCreateOrUpdateResponse contains the response from method BuildpackBindingClient.CreateOrUpdate.
type BuildpackBindingClientCreateOrUpdateResult ¶ added in v0.3.0
type BuildpackBindingClientCreateOrUpdateResult struct {
BuildpackBindingResource
}
BuildpackBindingClientCreateOrUpdateResult contains the result from method BuildpackBindingClient.CreateOrUpdate.
type BuildpackBindingClientDeletePoller ¶ added in v0.3.0
type BuildpackBindingClientDeletePoller struct {
// contains filtered or unexported fields
}
BuildpackBindingClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*BuildpackBindingClientDeletePoller) Done ¶ added in v0.3.0
func (p *BuildpackBindingClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*BuildpackBindingClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *BuildpackBindingClientDeletePoller) FinalResponse(ctx context.Context) (BuildpackBindingClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final BuildpackBindingClientDeleteResponse will be returned.
func (*BuildpackBindingClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*BuildpackBindingClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *BuildpackBindingClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type BuildpackBindingClientDeletePollerResponse ¶ added in v0.3.0
type BuildpackBindingClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *BuildpackBindingClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildpackBindingClientDeletePollerResponse contains the response from method BuildpackBindingClient.Delete.
func (BuildpackBindingClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l BuildpackBindingClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BuildpackBindingClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*BuildpackBindingClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *BuildpackBindingClientDeletePollerResponse) Resume(ctx context.Context, client *BuildpackBindingClient, token string) error
Resume rehydrates a BuildpackBindingClientDeletePollerResponse from the provided client and resume token.
type BuildpackBindingClientDeleteResponse ¶ added in v0.3.0
type BuildpackBindingClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildpackBindingClientDeleteResponse contains the response from method BuildpackBindingClient.Delete.
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 { BuildpackBindingClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildpackBindingClientGetResponse contains the response from method BuildpackBindingClient.Get.
type BuildpackBindingClientGetResult ¶ added in v0.3.0
type BuildpackBindingClientGetResult struct {
BuildpackBindingResource
}
BuildpackBindingClientGetResult contains the result from method BuildpackBindingClient.Get.
type BuildpackBindingClientListOptions ¶ added in v0.3.0
type BuildpackBindingClientListOptions struct { }
BuildpackBindingClientListOptions contains the optional parameters for the BuildpackBindingClient.List method.
type BuildpackBindingClientListPager ¶ added in v0.3.0
type BuildpackBindingClientListPager struct {
// contains filtered or unexported fields
}
BuildpackBindingClientListPager provides operations for iterating over paged responses.
func (*BuildpackBindingClientListPager) Err ¶ added in v0.3.0
func (p *BuildpackBindingClientListPager) Err() error
Err returns the last error encountered while paging.
func (*BuildpackBindingClientListPager) NextPage ¶ added in v0.3.0
func (p *BuildpackBindingClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*BuildpackBindingClientListPager) PageResponse ¶ added in v0.3.0
func (p *BuildpackBindingClientListPager) PageResponse() BuildpackBindingClientListResponse
PageResponse returns the current BuildpackBindingClientListResponse page.
type BuildpackBindingClientListResponse ¶ added in v0.3.0
type BuildpackBindingClientListResponse struct { BuildpackBindingClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BuildpackBindingClientListResponse contains the response from method BuildpackBindingClient.List.
type BuildpackBindingClientListResult ¶ added in v0.3.0
type BuildpackBindingClientListResult struct {
BuildpackBindingResourceCollection
}
BuildpackBindingClientListResult contains the result from method BuildpackBindingClient.List.
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.
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
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.
func (BuildpackBindingProvisioningState) ToPtr ¶ added in v0.3.0
func (c BuildpackBindingProvisioningState) ToPtr() *BuildpackBindingProvisioningState
ToPtr returns a *BuildpackBindingProvisioningState pointing to the current value.
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
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.
type BuildpackProperties ¶ added in v0.3.0
type BuildpackProperties struct { // Id of the buildpack ID *string `json:"id,omitempty"` }
BuildpackProperties - Buildpack properties payload
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.
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; 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.
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.
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
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) (CertificatesClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create or update certificate resource. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Certificates_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewCertificatesClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<certificate-name>", armappplatform.CertificateResource{ Properties: &armappplatform.KeyVaultCertificateProperties{ Type: to.StringPtr("<type>"), CertVersion: to.StringPtr("<cert-version>"), KeyVaultCertName: to.StringPtr("<key-vault-cert-name>"), VaultURI: to.StringPtr("<vault-uri>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.CertificatesClientCreateOrUpdateResult) }
Output:
func (*CertificatesClient) BeginDelete ¶
func (client *CertificatesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, certificateName string, options *CertificatesClientBeginDeleteOptions) (CertificatesClientDeletePollerResponse, error)
BeginDelete - Delete the certificate resource. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Certificates_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewCertificatesClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<certificate-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewCertificatesClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<certificate-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.CertificatesClientGetResult) }
Output:
func (*CertificatesClient) List ¶
func (client *CertificatesClient) List(resourceGroupName string, serviceName string, options *CertificatesClientListOptions) *CertificatesClientListPager
List - List all the certificates of one user. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewCertificatesClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type CertificatesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type CertificatesClientBeginCreateOrUpdateOptions struct { }
CertificatesClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificatesClient.BeginCreateOrUpdate method.
type CertificatesClientBeginDeleteOptions ¶ added in v0.3.0
type CertificatesClientBeginDeleteOptions struct { }
CertificatesClientBeginDeleteOptions contains the optional parameters for the CertificatesClient.BeginDelete method.
type CertificatesClientCreateOrUpdatePoller ¶ added in v0.3.0
type CertificatesClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
CertificatesClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*CertificatesClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *CertificatesClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*CertificatesClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *CertificatesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (CertificatesClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final CertificatesClientCreateOrUpdateResponse will be returned.
func (*CertificatesClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*CertificatesClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *CertificatesClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type CertificatesClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type CertificatesClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *CertificatesClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CertificatesClientCreateOrUpdatePollerResponse contains the response from method CertificatesClient.CreateOrUpdate.
func (CertificatesClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l CertificatesClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (CertificatesClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*CertificatesClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *CertificatesClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *CertificatesClient, token string) error
Resume rehydrates a CertificatesClientCreateOrUpdatePollerResponse from the provided client and resume token.
type CertificatesClientCreateOrUpdateResponse ¶ added in v0.3.0
type CertificatesClientCreateOrUpdateResponse struct { CertificatesClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CertificatesClientCreateOrUpdateResponse contains the response from method CertificatesClient.CreateOrUpdate.
type CertificatesClientCreateOrUpdateResult ¶ added in v0.3.0
type CertificatesClientCreateOrUpdateResult struct {
CertificateResource
}
CertificatesClientCreateOrUpdateResult contains the result from method CertificatesClient.CreateOrUpdate.
type CertificatesClientDeletePoller ¶ added in v0.3.0
type CertificatesClientDeletePoller struct {
// contains filtered or unexported fields
}
CertificatesClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*CertificatesClientDeletePoller) Done ¶ added in v0.3.0
func (p *CertificatesClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*CertificatesClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *CertificatesClientDeletePoller) FinalResponse(ctx context.Context) (CertificatesClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final CertificatesClientDeleteResponse will be returned.
func (*CertificatesClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*CertificatesClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *CertificatesClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type CertificatesClientDeletePollerResponse ¶ added in v0.3.0
type CertificatesClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *CertificatesClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CertificatesClientDeletePollerResponse contains the response from method CertificatesClient.Delete.
func (CertificatesClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l CertificatesClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (CertificatesClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*CertificatesClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *CertificatesClientDeletePollerResponse) Resume(ctx context.Context, client *CertificatesClient, token string) error
Resume rehydrates a CertificatesClientDeletePollerResponse from the provided client and resume token.
type CertificatesClientDeleteResponse ¶ added in v0.3.0
type CertificatesClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CertificatesClientDeleteResponse contains the response from method CertificatesClient.Delete.
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 { CertificatesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CertificatesClientGetResponse contains the response from method CertificatesClient.Get.
type CertificatesClientGetResult ¶ added in v0.3.0
type CertificatesClientGetResult struct {
CertificateResource
}
CertificatesClientGetResult contains the result from method CertificatesClient.Get.
type CertificatesClientListOptions ¶ added in v0.3.0
type CertificatesClientListOptions struct { }
CertificatesClientListOptions contains the optional parameters for the CertificatesClient.List method.
type CertificatesClientListPager ¶ added in v0.3.0
type CertificatesClientListPager struct {
// contains filtered or unexported fields
}
CertificatesClientListPager provides operations for iterating over paged responses.
func (*CertificatesClientListPager) Err ¶ added in v0.3.0
func (p *CertificatesClientListPager) Err() error
Err returns the last error encountered while paging.
func (*CertificatesClientListPager) NextPage ¶ added in v0.3.0
func (p *CertificatesClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*CertificatesClientListPager) PageResponse ¶ added in v0.3.0
func (p *CertificatesClientListPager) PageResponse() CertificatesClientListResponse
PageResponse returns the current CertificatesClientListResponse page.
type CertificatesClientListResponse ¶ added in v0.3.0
type CertificatesClientListResponse struct { CertificatesClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CertificatesClientListResponse contains the response from method CertificatesClient.List.
type CertificatesClientListResult ¶ added in v0.3.0
type CertificatesClientListResult struct {
CertificateResourceCollection
}
CertificatesClientListResult contains the result from method CertificatesClient.List.
type CloudError ¶
type CloudError struct { // An error response from the service. Error *CloudErrorBody `json:"error,omitempty"` }
CloudError - An error response from the service.
type CloudErrorBody ¶
type CloudErrorBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // A list of additional details about the error. Details []*CloudErrorBody `json:"details,omitempty"` // A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` // The target of the particular error. For example, the name of the property in error. Target *string `json:"target,omitempty"` }
CloudErrorBody - An error response from the service.
func (CloudErrorBody) MarshalJSON ¶
func (c CloudErrorBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CloudErrorBody.
type ClusterResourceProperties ¶
type ClusterResourceProperties struct { // Network profile of the Service NetworkProfile *NetworkProfile `json:"networkProfile,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
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.
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
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.
type ConfigServerSettings ¶
type ConfigServerSettings struct { // Property of git environment. GitProperty *ConfigServerGitProperty `json:"gitProperty,omitempty"` }
ConfigServerSettings - The settings of config server.
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.
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.
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.
func (ConfigServerState) ToPtr ¶
func (c ConfigServerState) ToPtr() *ConfigServerState
ToPtr returns a *ConfigServerState pointing to the current value.
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
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) (ConfigServersClientUpdatePatchPollerResponse, error)
BeginUpdatePatch - Update the config server. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ConfigServers_UpdatePatch.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewConfigServersClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdatePatch(ctx, "<resource-group-name>", "<service-name>", armappplatform.ConfigServerResource{ Properties: &armappplatform.ConfigServerProperties{ ConfigServer: &armappplatform.ConfigServerSettings{ GitProperty: &armappplatform.ConfigServerGitProperty{ Label: to.StringPtr("<label>"), SearchPaths: []*string{ to.StringPtr("/")}, URI: to.StringPtr("<uri>"), }, }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigServersClientUpdatePatchResult) }
Output:
func (*ConfigServersClient) BeginUpdatePut ¶
func (client *ConfigServersClient) BeginUpdatePut(ctx context.Context, resourceGroupName string, serviceName string, configServerResource ConfigServerResource, options *ConfigServersClientBeginUpdatePutOptions) (ConfigServersClientUpdatePutPollerResponse, error)
BeginUpdatePut - Update the config server. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ConfigServers_UpdatePut.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewConfigServersClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdatePut(ctx, "<resource-group-name>", "<service-name>", armappplatform.ConfigServerResource{ Properties: &armappplatform.ConfigServerProperties{ ConfigServer: &armappplatform.ConfigServerSettings{ GitProperty: &armappplatform.ConfigServerGitProperty{ Label: to.StringPtr("<label>"), SearchPaths: []*string{ to.StringPtr("/")}, URI: to.StringPtr("<uri>"), }, }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigServersClientUpdatePutResult) }
Output:
func (*ConfigServersClient) BeginValidate ¶
func (client *ConfigServersClient) BeginValidate(ctx context.Context, resourceGroupName string, serviceName string, configServerSettings ConfigServerSettings, options *ConfigServersClientBeginValidateOptions) (ConfigServersClientValidatePollerResponse, error)
BeginValidate - Check if the config server settings are valid. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ConfigServers_Validate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewConfigServersClient("<subscription-id>", cred, nil) poller, err := client.BeginValidate(ctx, "<resource-group-name>", "<service-name>", armappplatform.ConfigServerSettings{ GitProperty: &armappplatform.ConfigServerGitProperty{ Label: to.StringPtr("<label>"), SearchPaths: []*string{ to.StringPtr("/")}, URI: to.StringPtr("<uri>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigServersClientValidateResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewConfigServersClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigServersClientGetResult) }
Output:
type ConfigServersClientBeginUpdatePatchOptions ¶ added in v0.3.0
type ConfigServersClientBeginUpdatePatchOptions struct { }
ConfigServersClientBeginUpdatePatchOptions contains the optional parameters for the ConfigServersClient.BeginUpdatePatch method.
type ConfigServersClientBeginUpdatePutOptions ¶ added in v0.3.0
type ConfigServersClientBeginUpdatePutOptions struct { }
ConfigServersClientBeginUpdatePutOptions contains the optional parameters for the ConfigServersClient.BeginUpdatePut method.
type ConfigServersClientBeginValidateOptions ¶ added in v0.3.0
type ConfigServersClientBeginValidateOptions struct { }
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 { ConfigServersClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigServersClientGetResponse contains the response from method ConfigServersClient.Get.
type ConfigServersClientGetResult ¶ added in v0.3.0
type ConfigServersClientGetResult struct {
ConfigServerResource
}
ConfigServersClientGetResult contains the result from method ConfigServersClient.Get.
type ConfigServersClientUpdatePatchPoller ¶ added in v0.3.0
type ConfigServersClientUpdatePatchPoller struct {
// contains filtered or unexported fields
}
ConfigServersClientUpdatePatchPoller provides polling facilities until the operation reaches a terminal state.
func (*ConfigServersClientUpdatePatchPoller) Done ¶ added in v0.3.0
func (p *ConfigServersClientUpdatePatchPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ConfigServersClientUpdatePatchPoller) FinalResponse ¶ added in v0.3.0
func (p *ConfigServersClientUpdatePatchPoller) FinalResponse(ctx context.Context) (ConfigServersClientUpdatePatchResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ConfigServersClientUpdatePatchResponse will be returned.
func (*ConfigServersClientUpdatePatchPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ConfigServersClientUpdatePatchPoller) ResumeToken ¶ added in v0.3.0
func (p *ConfigServersClientUpdatePatchPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ConfigServersClientUpdatePatchPollerResponse ¶ added in v0.3.0
type ConfigServersClientUpdatePatchPollerResponse struct { // Poller contains an initialized poller. Poller *ConfigServersClientUpdatePatchPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigServersClientUpdatePatchPollerResponse contains the response from method ConfigServersClient.UpdatePatch.
func (ConfigServersClientUpdatePatchPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ConfigServersClientUpdatePatchPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ConfigServersClientUpdatePatchResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ConfigServersClientUpdatePatchPollerResponse) Resume ¶ added in v0.3.0
func (l *ConfigServersClientUpdatePatchPollerResponse) Resume(ctx context.Context, client *ConfigServersClient, token string) error
Resume rehydrates a ConfigServersClientUpdatePatchPollerResponse from the provided client and resume token.
type ConfigServersClientUpdatePatchResponse ¶ added in v0.3.0
type ConfigServersClientUpdatePatchResponse struct { ConfigServersClientUpdatePatchResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigServersClientUpdatePatchResponse contains the response from method ConfigServersClient.UpdatePatch.
type ConfigServersClientUpdatePatchResult ¶ added in v0.3.0
type ConfigServersClientUpdatePatchResult struct {
ConfigServerResource
}
ConfigServersClientUpdatePatchResult contains the result from method ConfigServersClient.UpdatePatch.
type ConfigServersClientUpdatePutPoller ¶ added in v0.3.0
type ConfigServersClientUpdatePutPoller struct {
// contains filtered or unexported fields
}
ConfigServersClientUpdatePutPoller provides polling facilities until the operation reaches a terminal state.
func (*ConfigServersClientUpdatePutPoller) Done ¶ added in v0.3.0
func (p *ConfigServersClientUpdatePutPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ConfigServersClientUpdatePutPoller) FinalResponse ¶ added in v0.3.0
func (p *ConfigServersClientUpdatePutPoller) FinalResponse(ctx context.Context) (ConfigServersClientUpdatePutResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ConfigServersClientUpdatePutResponse will be returned.
func (*ConfigServersClientUpdatePutPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ConfigServersClientUpdatePutPoller) ResumeToken ¶ added in v0.3.0
func (p *ConfigServersClientUpdatePutPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ConfigServersClientUpdatePutPollerResponse ¶ added in v0.3.0
type ConfigServersClientUpdatePutPollerResponse struct { // Poller contains an initialized poller. Poller *ConfigServersClientUpdatePutPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigServersClientUpdatePutPollerResponse contains the response from method ConfigServersClient.UpdatePut.
func (ConfigServersClientUpdatePutPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ConfigServersClientUpdatePutPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ConfigServersClientUpdatePutResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ConfigServersClientUpdatePutPollerResponse) Resume ¶ added in v0.3.0
func (l *ConfigServersClientUpdatePutPollerResponse) Resume(ctx context.Context, client *ConfigServersClient, token string) error
Resume rehydrates a ConfigServersClientUpdatePutPollerResponse from the provided client and resume token.
type ConfigServersClientUpdatePutResponse ¶ added in v0.3.0
type ConfigServersClientUpdatePutResponse struct { ConfigServersClientUpdatePutResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigServersClientUpdatePutResponse contains the response from method ConfigServersClient.UpdatePut.
type ConfigServersClientUpdatePutResult ¶ added in v0.3.0
type ConfigServersClientUpdatePutResult struct {
ConfigServerResource
}
ConfigServersClientUpdatePutResult contains the result from method ConfigServersClient.UpdatePut.
type ConfigServersClientValidatePoller ¶ added in v0.3.0
type ConfigServersClientValidatePoller struct {
// contains filtered or unexported fields
}
ConfigServersClientValidatePoller provides polling facilities until the operation reaches a terminal state.
func (*ConfigServersClientValidatePoller) Done ¶ added in v0.3.0
func (p *ConfigServersClientValidatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ConfigServersClientValidatePoller) FinalResponse ¶ added in v0.3.0
func (p *ConfigServersClientValidatePoller) FinalResponse(ctx context.Context) (ConfigServersClientValidateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ConfigServersClientValidateResponse will be returned.
func (*ConfigServersClientValidatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ConfigServersClientValidatePoller) ResumeToken ¶ added in v0.3.0
func (p *ConfigServersClientValidatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ConfigServersClientValidatePollerResponse ¶ added in v0.3.0
type ConfigServersClientValidatePollerResponse struct { // Poller contains an initialized poller. Poller *ConfigServersClientValidatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigServersClientValidatePollerResponse contains the response from method ConfigServersClient.Validate.
func (ConfigServersClientValidatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ConfigServersClientValidatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ConfigServersClientValidateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ConfigServersClientValidatePollerResponse) Resume ¶ added in v0.3.0
func (l *ConfigServersClientValidatePollerResponse) Resume(ctx context.Context, client *ConfigServersClient, token string) error
Resume rehydrates a ConfigServersClientValidatePollerResponse from the provided client and resume token.
type ConfigServersClientValidateResponse ¶ added in v0.3.0
type ConfigServersClientValidateResponse struct { ConfigServersClientValidateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigServersClientValidateResponse contains the response from method ConfigServersClient.Validate.
type ConfigServersClientValidateResult ¶ added in v0.3.0
type ConfigServersClientValidateResult struct {
ConfigServerSettingsValidateResult
}
ConfigServersClientValidateResult contains the result from method ConfigServersClient.Validate.
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.
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.
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.
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
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.
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.
func (ConfigurationServiceProvisioningState) ToPtr ¶ added in v0.3.0
func (c ConfigurationServiceProvisioningState) ToPtr() *ConfigurationServiceProvisioningState
ToPtr returns a *ConfigurationServiceProvisioningState pointing to the current value.
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
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.
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
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.
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
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
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) (ConfigurationServicesClientCreateOrUpdatePollerResponse, 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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ConfigurationServices_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewConfigurationServicesClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<configuration-service-name>", armappplatform.ConfigurationServiceResource{ Properties: &armappplatform.ConfigurationServiceProperties{ Settings: &armappplatform.ConfigurationServiceSettings{ GitProperty: &armappplatform.ConfigurationServiceGitProperty{ Repositories: []*armappplatform.ConfigurationServiceGitRepository{ { Name: to.StringPtr("<name>"), Label: to.StringPtr("<label>"), Patterns: []*string{ to.StringPtr("app/dev")}, URI: to.StringPtr("<uri>"), }}, }, }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationServicesClientCreateOrUpdateResult) }
Output:
func (*ConfigurationServicesClient) BeginDelete ¶ added in v0.3.0
func (client *ConfigurationServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, configurationServiceName string, options *ConfigurationServicesClientBeginDeleteOptions) (ConfigurationServicesClientDeletePollerResponse, error)
BeginDelete - Disable the default Application Configuration Service. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ConfigurationServices_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewConfigurationServicesClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<configuration-service-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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) (ConfigurationServicesClientValidatePollerResponse, error)
BeginValidate - Check if the Application Configuration Service settings are valid. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ConfigurationServices_Validate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewConfigurationServicesClient("<subscription-id>", cred, nil) poller, err := client.BeginValidate(ctx, "<resource-group-name>", "<service-name>", "<configuration-service-name>", armappplatform.ConfigurationServiceSettings{ GitProperty: &armappplatform.ConfigurationServiceGitProperty{ Repositories: []*armappplatform.ConfigurationServiceGitRepository{ { Name: to.StringPtr("<name>"), Label: to.StringPtr("<label>"), Patterns: []*string{ to.StringPtr("app/dev")}, URI: to.StringPtr("<uri>"), }}, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationServicesClientValidateResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewConfigurationServicesClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<configuration-service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationServicesClientGetResult) }
Output:
func (*ConfigurationServicesClient) List ¶ added in v0.3.0
func (client *ConfigurationServicesClient) List(resourceGroupName string, serviceName string, options *ConfigurationServicesClientListOptions) *ConfigurationServicesClientListPager
List - Handles requests to list all resources in a Service. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewConfigurationServicesClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type ConfigurationServicesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ConfigurationServicesClientBeginCreateOrUpdateOptions struct { }
ConfigurationServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the ConfigurationServicesClient.BeginCreateOrUpdate method.
type ConfigurationServicesClientBeginDeleteOptions ¶ added in v0.3.0
type ConfigurationServicesClientBeginDeleteOptions struct { }
ConfigurationServicesClientBeginDeleteOptions contains the optional parameters for the ConfigurationServicesClient.BeginDelete method.
type ConfigurationServicesClientBeginValidateOptions ¶ added in v0.3.0
type ConfigurationServicesClientBeginValidateOptions struct { }
ConfigurationServicesClientBeginValidateOptions contains the optional parameters for the ConfigurationServicesClient.BeginValidate method.
type ConfigurationServicesClientCreateOrUpdatePoller ¶ added in v0.3.0
type ConfigurationServicesClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
ConfigurationServicesClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*ConfigurationServicesClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *ConfigurationServicesClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ConfigurationServicesClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *ConfigurationServicesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ConfigurationServicesClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ConfigurationServicesClientCreateOrUpdateResponse will be returned.
func (*ConfigurationServicesClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
func (p *ConfigurationServicesClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ConfigurationServicesClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *ConfigurationServicesClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ConfigurationServicesClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type ConfigurationServicesClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *ConfigurationServicesClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationServicesClientCreateOrUpdatePollerResponse contains the response from method ConfigurationServicesClient.CreateOrUpdate.
func (ConfigurationServicesClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ConfigurationServicesClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ConfigurationServicesClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ConfigurationServicesClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *ConfigurationServicesClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ConfigurationServicesClient, token string) error
Resume rehydrates a ConfigurationServicesClientCreateOrUpdatePollerResponse from the provided client and resume token.
type ConfigurationServicesClientCreateOrUpdateResponse ¶ added in v0.3.0
type ConfigurationServicesClientCreateOrUpdateResponse struct { ConfigurationServicesClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationServicesClientCreateOrUpdateResponse contains the response from method ConfigurationServicesClient.CreateOrUpdate.
type ConfigurationServicesClientCreateOrUpdateResult ¶ added in v0.3.0
type ConfigurationServicesClientCreateOrUpdateResult struct {
ConfigurationServiceResource
}
ConfigurationServicesClientCreateOrUpdateResult contains the result from method ConfigurationServicesClient.CreateOrUpdate.
type ConfigurationServicesClientDeletePoller ¶ added in v0.3.0
type ConfigurationServicesClientDeletePoller struct {
// contains filtered or unexported fields
}
ConfigurationServicesClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*ConfigurationServicesClientDeletePoller) Done ¶ added in v0.3.0
func (p *ConfigurationServicesClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ConfigurationServicesClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *ConfigurationServicesClientDeletePoller) FinalResponse(ctx context.Context) (ConfigurationServicesClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ConfigurationServicesClientDeleteResponse will be returned.
func (*ConfigurationServicesClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ConfigurationServicesClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *ConfigurationServicesClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ConfigurationServicesClientDeletePollerResponse ¶ added in v0.3.0
type ConfigurationServicesClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *ConfigurationServicesClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationServicesClientDeletePollerResponse contains the response from method ConfigurationServicesClient.Delete.
func (ConfigurationServicesClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ConfigurationServicesClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ConfigurationServicesClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ConfigurationServicesClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *ConfigurationServicesClientDeletePollerResponse) Resume(ctx context.Context, client *ConfigurationServicesClient, token string) error
Resume rehydrates a ConfigurationServicesClientDeletePollerResponse from the provided client and resume token.
type ConfigurationServicesClientDeleteResponse ¶ added in v0.3.0
type ConfigurationServicesClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationServicesClientDeleteResponse contains the response from method ConfigurationServicesClient.Delete.
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 { ConfigurationServicesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationServicesClientGetResponse contains the response from method ConfigurationServicesClient.Get.
type ConfigurationServicesClientGetResult ¶ added in v0.3.0
type ConfigurationServicesClientGetResult struct {
ConfigurationServiceResource
}
ConfigurationServicesClientGetResult contains the result from method ConfigurationServicesClient.Get.
type ConfigurationServicesClientListOptions ¶ added in v0.3.0
type ConfigurationServicesClientListOptions struct { }
ConfigurationServicesClientListOptions contains the optional parameters for the ConfigurationServicesClient.List method.
type ConfigurationServicesClientListPager ¶ added in v0.3.0
type ConfigurationServicesClientListPager struct {
// contains filtered or unexported fields
}
ConfigurationServicesClientListPager provides operations for iterating over paged responses.
func (*ConfigurationServicesClientListPager) Err ¶ added in v0.3.0
func (p *ConfigurationServicesClientListPager) Err() error
Err returns the last error encountered while paging.
func (*ConfigurationServicesClientListPager) NextPage ¶ added in v0.3.0
func (p *ConfigurationServicesClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ConfigurationServicesClientListPager) PageResponse ¶ added in v0.3.0
func (p *ConfigurationServicesClientListPager) PageResponse() ConfigurationServicesClientListResponse
PageResponse returns the current ConfigurationServicesClientListResponse page.
type ConfigurationServicesClientListResponse ¶ added in v0.3.0
type ConfigurationServicesClientListResponse struct { ConfigurationServicesClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationServicesClientListResponse contains the response from method ConfigurationServicesClient.List.
type ConfigurationServicesClientListResult ¶ added in v0.3.0
type ConfigurationServicesClientListResult struct {
ConfigurationServiceResourceCollection
}
ConfigurationServicesClientListResult contains the result from method ConfigurationServicesClient.List.
type ConfigurationServicesClientValidatePoller ¶ added in v0.3.0
type ConfigurationServicesClientValidatePoller struct {
// contains filtered or unexported fields
}
ConfigurationServicesClientValidatePoller provides polling facilities until the operation reaches a terminal state.
func (*ConfigurationServicesClientValidatePoller) Done ¶ added in v0.3.0
func (p *ConfigurationServicesClientValidatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ConfigurationServicesClientValidatePoller) FinalResponse ¶ added in v0.3.0
func (p *ConfigurationServicesClientValidatePoller) FinalResponse(ctx context.Context) (ConfigurationServicesClientValidateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ConfigurationServicesClientValidateResponse will be returned.
func (*ConfigurationServicesClientValidatePoller) Poll ¶ added in v0.3.0
func (p *ConfigurationServicesClientValidatePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ConfigurationServicesClientValidatePoller) ResumeToken ¶ added in v0.3.0
func (p *ConfigurationServicesClientValidatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ConfigurationServicesClientValidatePollerResponse ¶ added in v0.3.0
type ConfigurationServicesClientValidatePollerResponse struct { // Poller contains an initialized poller. Poller *ConfigurationServicesClientValidatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationServicesClientValidatePollerResponse contains the response from method ConfigurationServicesClient.Validate.
func (ConfigurationServicesClientValidatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ConfigurationServicesClientValidatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ConfigurationServicesClientValidateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ConfigurationServicesClientValidatePollerResponse) Resume ¶ added in v0.3.0
func (l *ConfigurationServicesClientValidatePollerResponse) Resume(ctx context.Context, client *ConfigurationServicesClient, token string) error
Resume rehydrates a ConfigurationServicesClientValidatePollerResponse from the provided client and resume token.
type ConfigurationServicesClientValidateResponse ¶ added in v0.3.0
type ConfigurationServicesClientValidateResponse struct { ConfigurationServicesClientValidateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationServicesClientValidateResponse contains the response from method ConfigurationServicesClient.Validate.
type ConfigurationServicesClientValidateResult ¶ added in v0.3.0
type ConfigurationServicesClientValidateResult struct {
ConfigurationServiceSettingsValidateResult
}
ConfigurationServicesClientValidateResult contains the result from method ConfigurationServicesClient.Validate.
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
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; 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.
func (CreatedByType) ToPtr ¶ added in v0.2.0
func (c CreatedByType) ToPtr() *CreatedByType
ToPtr returns a *CreatedByType pointing to the current value.
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"` // 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.
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"` }
CustomDomainProperties - Custom domain of app resource payload.
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.
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.
type CustomDomainValidatePayload ¶
type CustomDomainValidatePayload struct { // REQUIRED; Name to be validated Name *string `json:"name,omitempty"` }
CustomDomainValidatePayload - Custom domain validate payload.
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.
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
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) (CustomDomainsClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create or update custom domain of one lifecycle application. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/CustomDomains_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewCustomDomainsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<domain-name>", armappplatform.CustomDomainResource{ Properties: &armappplatform.CustomDomainProperties{ CertName: to.StringPtr("<cert-name>"), Thumbprint: to.StringPtr("<thumbprint>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.CustomDomainsClientCreateOrUpdateResult) }
Output:
func (*CustomDomainsClient) BeginDelete ¶
func (client *CustomDomainsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, appName string, domainName string, options *CustomDomainsClientBeginDeleteOptions) (CustomDomainsClientDeletePollerResponse, error)
BeginDelete - Delete the custom domain of one lifecycle application. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/CustomDomains_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewCustomDomainsClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<domain-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*CustomDomainsClient) BeginUpdate ¶
func (client *CustomDomainsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, domainName string, domainResource CustomDomainResource, options *CustomDomainsClientBeginUpdateOptions) (CustomDomainsClientUpdatePollerResponse, error)
BeginUpdate - Update custom domain of one lifecycle application. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/CustomDomains_Update.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewCustomDomainsClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdate(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<domain-name>", armappplatform.CustomDomainResource{ Properties: &armappplatform.CustomDomainProperties{ CertName: to.StringPtr("<cert-name>"), Thumbprint: to.StringPtr("<thumbprint>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.CustomDomainsClientUpdateResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewCustomDomainsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<domain-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.CustomDomainsClientGetResult) }
Output:
func (*CustomDomainsClient) List ¶
func (client *CustomDomainsClient) List(resourceGroupName string, serviceName string, appName string, options *CustomDomainsClientListOptions) *CustomDomainsClientListPager
List - List the custom domains of one lifecycle application. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewCustomDomainsClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", "<app-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type CustomDomainsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type CustomDomainsClientBeginCreateOrUpdateOptions struct { }
CustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the CustomDomainsClient.BeginCreateOrUpdate method.
type CustomDomainsClientBeginDeleteOptions ¶ added in v0.3.0
type CustomDomainsClientBeginDeleteOptions struct { }
CustomDomainsClientBeginDeleteOptions contains the optional parameters for the CustomDomainsClient.BeginDelete method.
type CustomDomainsClientBeginUpdateOptions ¶ added in v0.3.0
type CustomDomainsClientBeginUpdateOptions struct { }
CustomDomainsClientBeginUpdateOptions contains the optional parameters for the CustomDomainsClient.BeginUpdate method.
type CustomDomainsClientCreateOrUpdatePoller ¶ added in v0.3.0
type CustomDomainsClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
CustomDomainsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*CustomDomainsClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *CustomDomainsClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*CustomDomainsClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *CustomDomainsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (CustomDomainsClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final CustomDomainsClientCreateOrUpdateResponse will be returned.
func (*CustomDomainsClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*CustomDomainsClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *CustomDomainsClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type CustomDomainsClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type CustomDomainsClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *CustomDomainsClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CustomDomainsClientCreateOrUpdatePollerResponse contains the response from method CustomDomainsClient.CreateOrUpdate.
func (CustomDomainsClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l CustomDomainsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (CustomDomainsClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*CustomDomainsClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *CustomDomainsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *CustomDomainsClient, token string) error
Resume rehydrates a CustomDomainsClientCreateOrUpdatePollerResponse from the provided client and resume token.
type CustomDomainsClientCreateOrUpdateResponse ¶ added in v0.3.0
type CustomDomainsClientCreateOrUpdateResponse struct { CustomDomainsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CustomDomainsClientCreateOrUpdateResponse contains the response from method CustomDomainsClient.CreateOrUpdate.
type CustomDomainsClientCreateOrUpdateResult ¶ added in v0.3.0
type CustomDomainsClientCreateOrUpdateResult struct {
CustomDomainResource
}
CustomDomainsClientCreateOrUpdateResult contains the result from method CustomDomainsClient.CreateOrUpdate.
type CustomDomainsClientDeletePoller ¶ added in v0.3.0
type CustomDomainsClientDeletePoller struct {
// contains filtered or unexported fields
}
CustomDomainsClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*CustomDomainsClientDeletePoller) Done ¶ added in v0.3.0
func (p *CustomDomainsClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*CustomDomainsClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *CustomDomainsClientDeletePoller) FinalResponse(ctx context.Context) (CustomDomainsClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final CustomDomainsClientDeleteResponse will be returned.
func (*CustomDomainsClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*CustomDomainsClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *CustomDomainsClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type CustomDomainsClientDeletePollerResponse ¶ added in v0.3.0
type CustomDomainsClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *CustomDomainsClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CustomDomainsClientDeletePollerResponse contains the response from method CustomDomainsClient.Delete.
func (CustomDomainsClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l CustomDomainsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (CustomDomainsClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*CustomDomainsClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *CustomDomainsClientDeletePollerResponse) Resume(ctx context.Context, client *CustomDomainsClient, token string) error
Resume rehydrates a CustomDomainsClientDeletePollerResponse from the provided client and resume token.
type CustomDomainsClientDeleteResponse ¶ added in v0.3.0
type CustomDomainsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CustomDomainsClientDeleteResponse contains the response from method CustomDomainsClient.Delete.
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 { CustomDomainsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CustomDomainsClientGetResponse contains the response from method CustomDomainsClient.Get.
type CustomDomainsClientGetResult ¶ added in v0.3.0
type CustomDomainsClientGetResult struct {
CustomDomainResource
}
CustomDomainsClientGetResult contains the result from method CustomDomainsClient.Get.
type CustomDomainsClientListOptions ¶ added in v0.3.0
type CustomDomainsClientListOptions struct { }
CustomDomainsClientListOptions contains the optional parameters for the CustomDomainsClient.List method.
type CustomDomainsClientListPager ¶ added in v0.3.0
type CustomDomainsClientListPager struct {
// contains filtered or unexported fields
}
CustomDomainsClientListPager provides operations for iterating over paged responses.
func (*CustomDomainsClientListPager) Err ¶ added in v0.3.0
func (p *CustomDomainsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*CustomDomainsClientListPager) NextPage ¶ added in v0.3.0
func (p *CustomDomainsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*CustomDomainsClientListPager) PageResponse ¶ added in v0.3.0
func (p *CustomDomainsClientListPager) PageResponse() CustomDomainsClientListResponse
PageResponse returns the current CustomDomainsClientListResponse page.
type CustomDomainsClientListResponse ¶ added in v0.3.0
type CustomDomainsClientListResponse struct { CustomDomainsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CustomDomainsClientListResponse contains the response from method CustomDomainsClient.List.
type CustomDomainsClientListResult ¶ added in v0.3.0
type CustomDomainsClientListResult struct {
CustomDomainResourceCollection
}
CustomDomainsClientListResult contains the result from method CustomDomainsClient.List.
type CustomDomainsClientUpdatePoller ¶ added in v0.3.0
type CustomDomainsClientUpdatePoller struct {
// contains filtered or unexported fields
}
CustomDomainsClientUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*CustomDomainsClientUpdatePoller) Done ¶ added in v0.3.0
func (p *CustomDomainsClientUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*CustomDomainsClientUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *CustomDomainsClientUpdatePoller) FinalResponse(ctx context.Context) (CustomDomainsClientUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final CustomDomainsClientUpdateResponse will be returned.
func (*CustomDomainsClientUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*CustomDomainsClientUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *CustomDomainsClientUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type CustomDomainsClientUpdatePollerResponse ¶ added in v0.3.0
type CustomDomainsClientUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *CustomDomainsClientUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CustomDomainsClientUpdatePollerResponse contains the response from method CustomDomainsClient.Update.
func (CustomDomainsClientUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l CustomDomainsClientUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (CustomDomainsClientUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*CustomDomainsClientUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *CustomDomainsClientUpdatePollerResponse) Resume(ctx context.Context, client *CustomDomainsClient, token string) error
Resume rehydrates a CustomDomainsClientUpdatePollerResponse from the provided client and resume token.
type CustomDomainsClientUpdateResponse ¶ added in v0.3.0
type CustomDomainsClientUpdateResponse struct { CustomDomainsClientUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CustomDomainsClientUpdateResponse contains the response from method CustomDomainsClient.Update.
type CustomDomainsClientUpdateResult ¶ added in v0.3.0
type CustomDomainsClientUpdateResult struct {
CustomDomainResource
}
CustomDomainsClientUpdateResult contains the result from method CustomDomainsClient.Update.
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 *CustomPersistentDiskPropertiesType `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.
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 CustomPersistentDiskPropertiesType ¶ added in v0.2.0
type CustomPersistentDiskPropertiesType string
CustomPersistentDiskPropertiesType - The type of the underlying resource to mount as a persistent disk.
const (
CustomPersistentDiskPropertiesTypeAzureFileVolume CustomPersistentDiskPropertiesType = "AzureFileVolume"
)
func PossibleCustomPersistentDiskPropertiesTypeValues ¶ added in v0.2.0
func PossibleCustomPersistentDiskPropertiesTypeValues() []CustomPersistentDiskPropertiesType
PossibleCustomPersistentDiskPropertiesTypeValues returns the possible values for the CustomPersistentDiskPropertiesType const type.
func (CustomPersistentDiskPropertiesType) ToPtr ¶ added in v0.2.0
func (c CustomPersistentDiskPropertiesType) ToPtr() *CustomPersistentDiskPropertiesType
ToPtr returns a *CustomPersistentDiskPropertiesType pointing to the current value.
type CustomPersistentDiskResource ¶ added in v0.2.0
type CustomPersistentDiskResource struct { // REQUIRED; The resource id of Azure Spring Cloud 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 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
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.
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.
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.
func (DeploymentResourceProvisioningState) ToPtr ¶
func (c DeploymentResourceProvisioningState) ToPtr() *DeploymentResourceProvisioningState
ToPtr returns a *DeploymentResourceProvisioningState pointing to the current value.
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.
func (DeploymentResourceStatus) ToPtr ¶
func (c DeploymentResourceStatus) ToPtr() *DeploymentResourceStatus
ToPtr returns a *DeploymentResourceStatus pointing to the current value.
type DeploymentSettings ¶
type DeploymentSettings struct { // Collection of addons AddonConfigs map[string]map[string]map[string]interface{} `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"` // 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"` }
DeploymentSettings - Deployment settings payload
func (DeploymentSettings) MarshalJSON ¶
func (d DeploymentSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller 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
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) (DeploymentsClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create a new Deployment or update an exiting Deployment. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Deployments_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<deployment-name>", armappplatform.DeploymentResource{ Properties: &armappplatform.DeploymentResourceProperties{ DeploymentSettings: &armappplatform.DeploymentSettings{ AddonConfigs: map[string]map[string]map[string]interface{}{ "ApplicationConfigurationService": { "patterns": { "0": "mypattern", }, }, }, EnvironmentVariables: map[string]*string{ "env": to.StringPtr("test"), }, ResourceRequests: &armappplatform.ResourceRequests{ CPU: to.StringPtr("<cpu>"), Memory: to.StringPtr("<memory>"), }, }, Source: &armappplatform.SourceUploadedUserSourceInfo{ Type: to.StringPtr("<type>"), Version: to.StringPtr("<version>"), RelativePath: to.StringPtr("<relative-path>"), ArtifactSelector: to.StringPtr("<artifact-selector>"), }, }, SKU: &armappplatform.SKU{ Name: to.StringPtr("<name>"), Capacity: to.Int32Ptr(1), Tier: to.StringPtr("<tier>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.DeploymentsClientCreateOrUpdateResult) }
Output:
func (*DeploymentsClient) BeginDelete ¶
func (client *DeploymentsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientBeginDeleteOptions) (DeploymentsClientDeletePollerResponse, error)
BeginDelete - Operation to delete a Deployment. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Deployments_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<deployment-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
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) (DeploymentsClientGenerateHeapDumpPollerResponse, error)
BeginGenerateHeapDump - Generate Heap Dump If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Deployments_GenerateHeapDump.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) poller, err := client.BeginGenerateHeapDump(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<deployment-name>", armappplatform.DiagnosticParameters{ AppInstance: to.StringPtr("<app-instance>"), FilePath: to.StringPtr("<file-path>"), }, nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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) (DeploymentsClientGenerateThreadDumpPollerResponse, error)
BeginGenerateThreadDump - Generate Thread Dump If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Deployments_GenerateThreadDump.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) poller, err := client.BeginGenerateThreadDump(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<deployment-name>", armappplatform.DiagnosticParameters{ AppInstance: to.StringPtr("<app-instance>"), FilePath: to.StringPtr("<file-path>"), }, nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*DeploymentsClient) BeginRestart ¶
func (client *DeploymentsClient) BeginRestart(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientBeginRestartOptions) (DeploymentsClientRestartPollerResponse, error)
BeginRestart - Restart the deployment. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Deployments_Restart.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) poller, err := client.BeginRestart(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<deployment-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*DeploymentsClient) BeginStart ¶
func (client *DeploymentsClient) BeginStart(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientBeginStartOptions) (DeploymentsClientStartPollerResponse, error)
BeginStart - Start the deployment. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Deployments_Start.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) poller, err := client.BeginStart(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<deployment-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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) (DeploymentsClientStartJFRPollerResponse, error)
BeginStartJFR - Start JFR If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Deployments_StartJFR.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) poller, err := client.BeginStartJFR(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<deployment-name>", armappplatform.DiagnosticParameters{ AppInstance: to.StringPtr("<app-instance>"), Duration: to.StringPtr("<duration>"), FilePath: to.StringPtr("<file-path>"), }, nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*DeploymentsClient) BeginStop ¶
func (client *DeploymentsClient) BeginStop(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, options *DeploymentsClientBeginStopOptions) (DeploymentsClientStopPollerResponse, error)
BeginStop - Stop the deployment. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Deployments_Stop.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) poller, err := client.BeginStop(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<deployment-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*DeploymentsClient) BeginUpdate ¶
func (client *DeploymentsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, deploymentResource DeploymentResource, options *DeploymentsClientBeginUpdateOptions) (DeploymentsClientUpdatePollerResponse, error)
BeginUpdate - Operation to update an exiting Deployment. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Deployments_Update.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdate(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<deployment-name>", armappplatform.DeploymentResource{ Properties: &armappplatform.DeploymentResourceProperties{ Source: &armappplatform.SourceUploadedUserSourceInfo{ Type: to.StringPtr("<type>"), Version: to.StringPtr("<version>"), RelativePath: to.StringPtr("<relative-path>"), ArtifactSelector: to.StringPtr("<artifact-selector>"), }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.DeploymentsClientUpdateResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<app-name>", "<deployment-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.DeploymentsClientGetResult) }
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. 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.
func (*DeploymentsClient) List ¶
func (client *DeploymentsClient) List(resourceGroupName string, serviceName string, appName string, options *DeploymentsClientListOptions) *DeploymentsClientListPager
List - Handles requests to list all resources in an App. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", "<app-name>", &armappplatform.DeploymentsClientListOptions{Version: []string{}}) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*DeploymentsClient) ListForCluster ¶
func (client *DeploymentsClient) ListForCluster(resourceGroupName string, serviceName string, options *DeploymentsClientListForClusterOptions) *DeploymentsClientListForClusterPager
ListForCluster - List deployments for a certain service If the operation fails it returns an *azcore.ResponseError type. 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.ListForCluster method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewDeploymentsClient("<subscription-id>", cred, nil) pager := client.ListForCluster("<resource-group-name>", "<service-name>", &armappplatform.DeploymentsClientListForClusterOptions{Version: []string{}}) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type DeploymentsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type DeploymentsClientBeginCreateOrUpdateOptions struct { }
DeploymentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DeploymentsClient.BeginCreateOrUpdate method.
type DeploymentsClientBeginDeleteOptions ¶ added in v0.3.0
type DeploymentsClientBeginDeleteOptions struct { }
DeploymentsClientBeginDeleteOptions contains the optional parameters for the DeploymentsClient.BeginDelete method.
type DeploymentsClientBeginGenerateHeapDumpOptions ¶ added in v0.3.0
type DeploymentsClientBeginGenerateHeapDumpOptions struct { }
DeploymentsClientBeginGenerateHeapDumpOptions contains the optional parameters for the DeploymentsClient.BeginGenerateHeapDump method.
type DeploymentsClientBeginGenerateThreadDumpOptions ¶ added in v0.3.0
type DeploymentsClientBeginGenerateThreadDumpOptions struct { }
DeploymentsClientBeginGenerateThreadDumpOptions contains the optional parameters for the DeploymentsClient.BeginGenerateThreadDump method.
type DeploymentsClientBeginRestartOptions ¶ added in v0.3.0
type DeploymentsClientBeginRestartOptions struct { }
DeploymentsClientBeginRestartOptions contains the optional parameters for the DeploymentsClient.BeginRestart method.
type DeploymentsClientBeginStartJFROptions ¶ added in v0.3.0
type DeploymentsClientBeginStartJFROptions struct { }
DeploymentsClientBeginStartJFROptions contains the optional parameters for the DeploymentsClient.BeginStartJFR method.
type DeploymentsClientBeginStartOptions ¶ added in v0.3.0
type DeploymentsClientBeginStartOptions struct { }
DeploymentsClientBeginStartOptions contains the optional parameters for the DeploymentsClient.BeginStart method.
type DeploymentsClientBeginStopOptions ¶ added in v0.3.0
type DeploymentsClientBeginStopOptions struct { }
DeploymentsClientBeginStopOptions contains the optional parameters for the DeploymentsClient.BeginStop method.
type DeploymentsClientBeginUpdateOptions ¶ added in v0.3.0
type DeploymentsClientBeginUpdateOptions struct { }
DeploymentsClientBeginUpdateOptions contains the optional parameters for the DeploymentsClient.BeginUpdate method.
type DeploymentsClientCreateOrUpdatePoller ¶ added in v0.3.0
type DeploymentsClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
DeploymentsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*DeploymentsClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *DeploymentsClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*DeploymentsClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *DeploymentsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (DeploymentsClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final DeploymentsClientCreateOrUpdateResponse will be returned.
func (*DeploymentsClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*DeploymentsClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *DeploymentsClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type DeploymentsClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type DeploymentsClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *DeploymentsClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientCreateOrUpdatePollerResponse contains the response from method DeploymentsClient.CreateOrUpdate.
func (DeploymentsClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l DeploymentsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (DeploymentsClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*DeploymentsClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *DeploymentsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *DeploymentsClient, token string) error
Resume rehydrates a DeploymentsClientCreateOrUpdatePollerResponse from the provided client and resume token.
type DeploymentsClientCreateOrUpdateResponse ¶ added in v0.3.0
type DeploymentsClientCreateOrUpdateResponse struct { DeploymentsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientCreateOrUpdateResponse contains the response from method DeploymentsClient.CreateOrUpdate.
type DeploymentsClientCreateOrUpdateResult ¶ added in v0.3.0
type DeploymentsClientCreateOrUpdateResult struct {
DeploymentResource
}
DeploymentsClientCreateOrUpdateResult contains the result from method DeploymentsClient.CreateOrUpdate.
type DeploymentsClientDeletePoller ¶ added in v0.3.0
type DeploymentsClientDeletePoller struct {
// contains filtered or unexported fields
}
DeploymentsClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*DeploymentsClientDeletePoller) Done ¶ added in v0.3.0
func (p *DeploymentsClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*DeploymentsClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *DeploymentsClientDeletePoller) FinalResponse(ctx context.Context) (DeploymentsClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final DeploymentsClientDeleteResponse will be returned.
func (*DeploymentsClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*DeploymentsClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *DeploymentsClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type DeploymentsClientDeletePollerResponse ¶ added in v0.3.0
type DeploymentsClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *DeploymentsClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientDeletePollerResponse contains the response from method DeploymentsClient.Delete.
func (DeploymentsClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l DeploymentsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (DeploymentsClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*DeploymentsClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *DeploymentsClientDeletePollerResponse) Resume(ctx context.Context, client *DeploymentsClient, token string) error
Resume rehydrates a DeploymentsClientDeletePollerResponse from the provided client and resume token.
type DeploymentsClientDeleteResponse ¶ added in v0.3.0
type DeploymentsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientDeleteResponse contains the response from method DeploymentsClient.Delete.
type DeploymentsClientGenerateHeapDumpPoller ¶ added in v0.3.0
type DeploymentsClientGenerateHeapDumpPoller struct {
// contains filtered or unexported fields
}
DeploymentsClientGenerateHeapDumpPoller provides polling facilities until the operation reaches a terminal state.
func (*DeploymentsClientGenerateHeapDumpPoller) Done ¶ added in v0.3.0
func (p *DeploymentsClientGenerateHeapDumpPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*DeploymentsClientGenerateHeapDumpPoller) FinalResponse ¶ added in v0.3.0
func (p *DeploymentsClientGenerateHeapDumpPoller) FinalResponse(ctx context.Context) (DeploymentsClientGenerateHeapDumpResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final DeploymentsClientGenerateHeapDumpResponse will be returned.
func (*DeploymentsClientGenerateHeapDumpPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*DeploymentsClientGenerateHeapDumpPoller) ResumeToken ¶ added in v0.3.0
func (p *DeploymentsClientGenerateHeapDumpPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type DeploymentsClientGenerateHeapDumpPollerResponse ¶ added in v0.3.0
type DeploymentsClientGenerateHeapDumpPollerResponse struct { // Poller contains an initialized poller. Poller *DeploymentsClientGenerateHeapDumpPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientGenerateHeapDumpPollerResponse contains the response from method DeploymentsClient.GenerateHeapDump.
func (DeploymentsClientGenerateHeapDumpPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l DeploymentsClientGenerateHeapDumpPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (DeploymentsClientGenerateHeapDumpResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*DeploymentsClientGenerateHeapDumpPollerResponse) Resume ¶ added in v0.3.0
func (l *DeploymentsClientGenerateHeapDumpPollerResponse) Resume(ctx context.Context, client *DeploymentsClient, token string) error
Resume rehydrates a DeploymentsClientGenerateHeapDumpPollerResponse from the provided client and resume token.
type DeploymentsClientGenerateHeapDumpResponse ¶ added in v0.3.0
type DeploymentsClientGenerateHeapDumpResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientGenerateHeapDumpResponse contains the response from method DeploymentsClient.GenerateHeapDump.
type DeploymentsClientGenerateThreadDumpPoller ¶ added in v0.3.0
type DeploymentsClientGenerateThreadDumpPoller struct {
// contains filtered or unexported fields
}
DeploymentsClientGenerateThreadDumpPoller provides polling facilities until the operation reaches a terminal state.
func (*DeploymentsClientGenerateThreadDumpPoller) Done ¶ added in v0.3.0
func (p *DeploymentsClientGenerateThreadDumpPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*DeploymentsClientGenerateThreadDumpPoller) FinalResponse ¶ added in v0.3.0
func (p *DeploymentsClientGenerateThreadDumpPoller) FinalResponse(ctx context.Context) (DeploymentsClientGenerateThreadDumpResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final DeploymentsClientGenerateThreadDumpResponse will be returned.
func (*DeploymentsClientGenerateThreadDumpPoller) Poll ¶ added in v0.3.0
func (p *DeploymentsClientGenerateThreadDumpPoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*DeploymentsClientGenerateThreadDumpPoller) ResumeToken ¶ added in v0.3.0
func (p *DeploymentsClientGenerateThreadDumpPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type DeploymentsClientGenerateThreadDumpPollerResponse ¶ added in v0.3.0
type DeploymentsClientGenerateThreadDumpPollerResponse struct { // Poller contains an initialized poller. Poller *DeploymentsClientGenerateThreadDumpPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientGenerateThreadDumpPollerResponse contains the response from method DeploymentsClient.GenerateThreadDump.
func (DeploymentsClientGenerateThreadDumpPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l DeploymentsClientGenerateThreadDumpPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (DeploymentsClientGenerateThreadDumpResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*DeploymentsClientGenerateThreadDumpPollerResponse) Resume ¶ added in v0.3.0
func (l *DeploymentsClientGenerateThreadDumpPollerResponse) Resume(ctx context.Context, client *DeploymentsClient, token string) error
Resume rehydrates a DeploymentsClientGenerateThreadDumpPollerResponse from the provided client and resume token.
type DeploymentsClientGenerateThreadDumpResponse ¶ added in v0.3.0
type DeploymentsClientGenerateThreadDumpResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientGenerateThreadDumpResponse contains the response from method DeploymentsClient.GenerateThreadDump.
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 { DeploymentsClientGetLogFileURLResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientGetLogFileURLResponse contains the response from method DeploymentsClient.GetLogFileURL.
type DeploymentsClientGetLogFileURLResult ¶ added in v0.3.0
type DeploymentsClientGetLogFileURLResult struct {
LogFileURLResponse
}
DeploymentsClientGetLogFileURLResult contains the result 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 DeploymentsClientGetResponse ¶ added in v0.3.0
type DeploymentsClientGetResponse struct { DeploymentsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientGetResponse contains the response from method DeploymentsClient.Get.
type DeploymentsClientGetResult ¶ added in v0.3.0
type DeploymentsClientGetResult struct {
DeploymentResource
}
DeploymentsClientGetResult contains the result 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.ListForCluster method.
type DeploymentsClientListForClusterPager ¶ added in v0.3.0
type DeploymentsClientListForClusterPager struct {
// contains filtered or unexported fields
}
DeploymentsClientListForClusterPager provides operations for iterating over paged responses.
func (*DeploymentsClientListForClusterPager) Err ¶ added in v0.3.0
func (p *DeploymentsClientListForClusterPager) Err() error
Err returns the last error encountered while paging.
func (*DeploymentsClientListForClusterPager) NextPage ¶ added in v0.3.0
func (p *DeploymentsClientListForClusterPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*DeploymentsClientListForClusterPager) PageResponse ¶ added in v0.3.0
func (p *DeploymentsClientListForClusterPager) PageResponse() DeploymentsClientListForClusterResponse
PageResponse returns the current DeploymentsClientListForClusterResponse page.
type DeploymentsClientListForClusterResponse ¶ added in v0.3.0
type DeploymentsClientListForClusterResponse struct { DeploymentsClientListForClusterResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientListForClusterResponse contains the response from method DeploymentsClient.ListForCluster.
type DeploymentsClientListForClusterResult ¶ added in v0.3.0
type DeploymentsClientListForClusterResult struct {
DeploymentResourceCollection
}
DeploymentsClientListForClusterResult contains the result from method DeploymentsClient.ListForCluster.
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.List method.
type DeploymentsClientListPager ¶ added in v0.3.0
type DeploymentsClientListPager struct {
// contains filtered or unexported fields
}
DeploymentsClientListPager provides operations for iterating over paged responses.
func (*DeploymentsClientListPager) Err ¶ added in v0.3.0
func (p *DeploymentsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*DeploymentsClientListPager) NextPage ¶ added in v0.3.0
func (p *DeploymentsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*DeploymentsClientListPager) PageResponse ¶ added in v0.3.0
func (p *DeploymentsClientListPager) PageResponse() DeploymentsClientListResponse
PageResponse returns the current DeploymentsClientListResponse page.
type DeploymentsClientListResponse ¶ added in v0.3.0
type DeploymentsClientListResponse struct { DeploymentsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientListResponse contains the response from method DeploymentsClient.List.
type DeploymentsClientListResult ¶ added in v0.3.0
type DeploymentsClientListResult struct {
DeploymentResourceCollection
}
DeploymentsClientListResult contains the result from method DeploymentsClient.List.
type DeploymentsClientRestartPoller ¶ added in v0.3.0
type DeploymentsClientRestartPoller struct {
// contains filtered or unexported fields
}
DeploymentsClientRestartPoller provides polling facilities until the operation reaches a terminal state.
func (*DeploymentsClientRestartPoller) Done ¶ added in v0.3.0
func (p *DeploymentsClientRestartPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*DeploymentsClientRestartPoller) FinalResponse ¶ added in v0.3.0
func (p *DeploymentsClientRestartPoller) FinalResponse(ctx context.Context) (DeploymentsClientRestartResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final DeploymentsClientRestartResponse will be returned.
func (*DeploymentsClientRestartPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*DeploymentsClientRestartPoller) ResumeToken ¶ added in v0.3.0
func (p *DeploymentsClientRestartPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type DeploymentsClientRestartPollerResponse ¶ added in v0.3.0
type DeploymentsClientRestartPollerResponse struct { // Poller contains an initialized poller. Poller *DeploymentsClientRestartPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientRestartPollerResponse contains the response from method DeploymentsClient.Restart.
func (DeploymentsClientRestartPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l DeploymentsClientRestartPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (DeploymentsClientRestartResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*DeploymentsClientRestartPollerResponse) Resume ¶ added in v0.3.0
func (l *DeploymentsClientRestartPollerResponse) Resume(ctx context.Context, client *DeploymentsClient, token string) error
Resume rehydrates a DeploymentsClientRestartPollerResponse from the provided client and resume token.
type DeploymentsClientRestartResponse ¶ added in v0.3.0
type DeploymentsClientRestartResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientRestartResponse contains the response from method DeploymentsClient.Restart.
type DeploymentsClientStartJFRPoller ¶ added in v0.3.0
type DeploymentsClientStartJFRPoller struct {
// contains filtered or unexported fields
}
DeploymentsClientStartJFRPoller provides polling facilities until the operation reaches a terminal state.
func (*DeploymentsClientStartJFRPoller) Done ¶ added in v0.3.0
func (p *DeploymentsClientStartJFRPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*DeploymentsClientStartJFRPoller) FinalResponse ¶ added in v0.3.0
func (p *DeploymentsClientStartJFRPoller) FinalResponse(ctx context.Context) (DeploymentsClientStartJFRResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final DeploymentsClientStartJFRResponse will be returned.
func (*DeploymentsClientStartJFRPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*DeploymentsClientStartJFRPoller) ResumeToken ¶ added in v0.3.0
func (p *DeploymentsClientStartJFRPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type DeploymentsClientStartJFRPollerResponse ¶ added in v0.3.0
type DeploymentsClientStartJFRPollerResponse struct { // Poller contains an initialized poller. Poller *DeploymentsClientStartJFRPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientStartJFRPollerResponse contains the response from method DeploymentsClient.StartJFR.
func (DeploymentsClientStartJFRPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l DeploymentsClientStartJFRPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (DeploymentsClientStartJFRResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*DeploymentsClientStartJFRPollerResponse) Resume ¶ added in v0.3.0
func (l *DeploymentsClientStartJFRPollerResponse) Resume(ctx context.Context, client *DeploymentsClient, token string) error
Resume rehydrates a DeploymentsClientStartJFRPollerResponse from the provided client and resume token.
type DeploymentsClientStartJFRResponse ¶ added in v0.3.0
type DeploymentsClientStartJFRResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientStartJFRResponse contains the response from method DeploymentsClient.StartJFR.
type DeploymentsClientStartPoller ¶ added in v0.3.0
type DeploymentsClientStartPoller struct {
// contains filtered or unexported fields
}
DeploymentsClientStartPoller provides polling facilities until the operation reaches a terminal state.
func (*DeploymentsClientStartPoller) Done ¶ added in v0.3.0
func (p *DeploymentsClientStartPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*DeploymentsClientStartPoller) FinalResponse ¶ added in v0.3.0
func (p *DeploymentsClientStartPoller) FinalResponse(ctx context.Context) (DeploymentsClientStartResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final DeploymentsClientStartResponse will be returned.
func (*DeploymentsClientStartPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*DeploymentsClientStartPoller) ResumeToken ¶ added in v0.3.0
func (p *DeploymentsClientStartPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type DeploymentsClientStartPollerResponse ¶ added in v0.3.0
type DeploymentsClientStartPollerResponse struct { // Poller contains an initialized poller. Poller *DeploymentsClientStartPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientStartPollerResponse contains the response from method DeploymentsClient.Start.
func (DeploymentsClientStartPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l DeploymentsClientStartPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (DeploymentsClientStartResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*DeploymentsClientStartPollerResponse) Resume ¶ added in v0.3.0
func (l *DeploymentsClientStartPollerResponse) Resume(ctx context.Context, client *DeploymentsClient, token string) error
Resume rehydrates a DeploymentsClientStartPollerResponse from the provided client and resume token.
type DeploymentsClientStartResponse ¶ added in v0.3.0
type DeploymentsClientStartResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientStartResponse contains the response from method DeploymentsClient.Start.
type DeploymentsClientStopPoller ¶ added in v0.3.0
type DeploymentsClientStopPoller struct {
// contains filtered or unexported fields
}
DeploymentsClientStopPoller provides polling facilities until the operation reaches a terminal state.
func (*DeploymentsClientStopPoller) Done ¶ added in v0.3.0
func (p *DeploymentsClientStopPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*DeploymentsClientStopPoller) FinalResponse ¶ added in v0.3.0
func (p *DeploymentsClientStopPoller) FinalResponse(ctx context.Context) (DeploymentsClientStopResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final DeploymentsClientStopResponse will be returned.
func (*DeploymentsClientStopPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*DeploymentsClientStopPoller) ResumeToken ¶ added in v0.3.0
func (p *DeploymentsClientStopPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type DeploymentsClientStopPollerResponse ¶ added in v0.3.0
type DeploymentsClientStopPollerResponse struct { // Poller contains an initialized poller. Poller *DeploymentsClientStopPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientStopPollerResponse contains the response from method DeploymentsClient.Stop.
func (DeploymentsClientStopPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l DeploymentsClientStopPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (DeploymentsClientStopResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*DeploymentsClientStopPollerResponse) Resume ¶ added in v0.3.0
func (l *DeploymentsClientStopPollerResponse) Resume(ctx context.Context, client *DeploymentsClient, token string) error
Resume rehydrates a DeploymentsClientStopPollerResponse from the provided client and resume token.
type DeploymentsClientStopResponse ¶ added in v0.3.0
type DeploymentsClientStopResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientStopResponse contains the response from method DeploymentsClient.Stop.
type DeploymentsClientUpdatePoller ¶ added in v0.3.0
type DeploymentsClientUpdatePoller struct {
// contains filtered or unexported fields
}
DeploymentsClientUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*DeploymentsClientUpdatePoller) Done ¶ added in v0.3.0
func (p *DeploymentsClientUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*DeploymentsClientUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *DeploymentsClientUpdatePoller) FinalResponse(ctx context.Context) (DeploymentsClientUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final DeploymentsClientUpdateResponse will be returned.
func (*DeploymentsClientUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*DeploymentsClientUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *DeploymentsClientUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type DeploymentsClientUpdatePollerResponse ¶ added in v0.3.0
type DeploymentsClientUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *DeploymentsClientUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientUpdatePollerResponse contains the response from method DeploymentsClient.Update.
func (DeploymentsClientUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l DeploymentsClientUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (DeploymentsClientUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*DeploymentsClientUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *DeploymentsClientUpdatePollerResponse) Resume(ctx context.Context, client *DeploymentsClient, token string) error
Resume rehydrates a DeploymentsClientUpdatePollerResponse from the provided client and resume token.
type DeploymentsClientUpdateResponse ¶ added in v0.3.0
type DeploymentsClientUpdateResponse struct { DeploymentsClientUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeploymentsClientUpdateResponse contains the response from method DeploymentsClient.Update.
type DeploymentsClientUpdateResult ¶ added in v0.3.0
type DeploymentsClientUpdateResult struct {
DeploymentResource
}
DeploymentsClientUpdateResult contains the result from method DeploymentsClient.Update.
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
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.
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
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.
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.
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
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
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.
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
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) (GatewayCustomDomainsClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create or update the Spring Cloud Gateway custom domain. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/GatewayCustomDomains_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewGatewayCustomDomainsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<gateway-name>", "<domain-name>", armappplatform.GatewayCustomDomainResource{ Properties: &armappplatform.GatewayCustomDomainProperties{ Thumbprint: to.StringPtr("<thumbprint>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.GatewayCustomDomainsClientCreateOrUpdateResult) }
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) (GatewayCustomDomainsClientDeletePollerResponse, error)
BeginDelete - Delete the Spring Cloud Gateway custom domain. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/GatewayCustomDomains_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewGatewayCustomDomainsClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<gateway-name>", "<domain-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewGatewayCustomDomainsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<gateway-name>", "<domain-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.GatewayCustomDomainsClientGetResult) }
Output:
func (*GatewayCustomDomainsClient) List ¶ added in v0.3.0
func (client *GatewayCustomDomainsClient) List(resourceGroupName string, serviceName string, gatewayName string, options *GatewayCustomDomainsClientListOptions) *GatewayCustomDomainsClientListPager
List - Handle requests to list all Spring Cloud Gateway custom domains. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewGatewayCustomDomainsClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", "<gateway-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type GatewayCustomDomainsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type GatewayCustomDomainsClientBeginCreateOrUpdateOptions struct { }
GatewayCustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewayCustomDomainsClient.BeginCreateOrUpdate method.
type GatewayCustomDomainsClientBeginDeleteOptions ¶ added in v0.3.0
type GatewayCustomDomainsClientBeginDeleteOptions struct { }
GatewayCustomDomainsClientBeginDeleteOptions contains the optional parameters for the GatewayCustomDomainsClient.BeginDelete method.
type GatewayCustomDomainsClientCreateOrUpdatePoller ¶ added in v0.3.0
type GatewayCustomDomainsClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
GatewayCustomDomainsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*GatewayCustomDomainsClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *GatewayCustomDomainsClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*GatewayCustomDomainsClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *GatewayCustomDomainsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (GatewayCustomDomainsClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final GatewayCustomDomainsClientCreateOrUpdateResponse will be returned.
func (*GatewayCustomDomainsClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
func (p *GatewayCustomDomainsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*GatewayCustomDomainsClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *GatewayCustomDomainsClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type GatewayCustomDomainsClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type GatewayCustomDomainsClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *GatewayCustomDomainsClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayCustomDomainsClientCreateOrUpdatePollerResponse contains the response from method GatewayCustomDomainsClient.CreateOrUpdate.
func (GatewayCustomDomainsClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l GatewayCustomDomainsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (GatewayCustomDomainsClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*GatewayCustomDomainsClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *GatewayCustomDomainsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *GatewayCustomDomainsClient, token string) error
Resume rehydrates a GatewayCustomDomainsClientCreateOrUpdatePollerResponse from the provided client and resume token.
type GatewayCustomDomainsClientCreateOrUpdateResponse ¶ added in v0.3.0
type GatewayCustomDomainsClientCreateOrUpdateResponse struct { GatewayCustomDomainsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayCustomDomainsClientCreateOrUpdateResponse contains the response from method GatewayCustomDomainsClient.CreateOrUpdate.
type GatewayCustomDomainsClientCreateOrUpdateResult ¶ added in v0.3.0
type GatewayCustomDomainsClientCreateOrUpdateResult struct {
GatewayCustomDomainResource
}
GatewayCustomDomainsClientCreateOrUpdateResult contains the result from method GatewayCustomDomainsClient.CreateOrUpdate.
type GatewayCustomDomainsClientDeletePoller ¶ added in v0.3.0
type GatewayCustomDomainsClientDeletePoller struct {
// contains filtered or unexported fields
}
GatewayCustomDomainsClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*GatewayCustomDomainsClientDeletePoller) Done ¶ added in v0.3.0
func (p *GatewayCustomDomainsClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*GatewayCustomDomainsClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *GatewayCustomDomainsClientDeletePoller) FinalResponse(ctx context.Context) (GatewayCustomDomainsClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final GatewayCustomDomainsClientDeleteResponse will be returned.
func (*GatewayCustomDomainsClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*GatewayCustomDomainsClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *GatewayCustomDomainsClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type GatewayCustomDomainsClientDeletePollerResponse ¶ added in v0.3.0
type GatewayCustomDomainsClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *GatewayCustomDomainsClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayCustomDomainsClientDeletePollerResponse contains the response from method GatewayCustomDomainsClient.Delete.
func (GatewayCustomDomainsClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l GatewayCustomDomainsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (GatewayCustomDomainsClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*GatewayCustomDomainsClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *GatewayCustomDomainsClientDeletePollerResponse) Resume(ctx context.Context, client *GatewayCustomDomainsClient, token string) error
Resume rehydrates a GatewayCustomDomainsClientDeletePollerResponse from the provided client and resume token.
type GatewayCustomDomainsClientDeleteResponse ¶ added in v0.3.0
type GatewayCustomDomainsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayCustomDomainsClientDeleteResponse contains the response from method GatewayCustomDomainsClient.Delete.
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 { GatewayCustomDomainsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayCustomDomainsClientGetResponse contains the response from method GatewayCustomDomainsClient.Get.
type GatewayCustomDomainsClientGetResult ¶ added in v0.3.0
type GatewayCustomDomainsClientGetResult struct {
GatewayCustomDomainResource
}
GatewayCustomDomainsClientGetResult contains the result from method GatewayCustomDomainsClient.Get.
type GatewayCustomDomainsClientListOptions ¶ added in v0.3.0
type GatewayCustomDomainsClientListOptions struct { }
GatewayCustomDomainsClientListOptions contains the optional parameters for the GatewayCustomDomainsClient.List method.
type GatewayCustomDomainsClientListPager ¶ added in v0.3.0
type GatewayCustomDomainsClientListPager struct {
// contains filtered or unexported fields
}
GatewayCustomDomainsClientListPager provides operations for iterating over paged responses.
func (*GatewayCustomDomainsClientListPager) Err ¶ added in v0.3.0
func (p *GatewayCustomDomainsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*GatewayCustomDomainsClientListPager) NextPage ¶ added in v0.3.0
func (p *GatewayCustomDomainsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*GatewayCustomDomainsClientListPager) PageResponse ¶ added in v0.3.0
func (p *GatewayCustomDomainsClientListPager) PageResponse() GatewayCustomDomainsClientListResponse
PageResponse returns the current GatewayCustomDomainsClientListResponse page.
type GatewayCustomDomainsClientListResponse ¶ added in v0.3.0
type GatewayCustomDomainsClientListResponse struct { GatewayCustomDomainsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayCustomDomainsClientListResponse contains the response from method GatewayCustomDomainsClient.List.
type GatewayCustomDomainsClientListResult ¶ added in v0.3.0
type GatewayCustomDomainsClientListResult struct {
GatewayCustomDomainResourceCollection
}
GatewayCustomDomainsClientListResult contains the result from method GatewayCustomDomainsClient.List.
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
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.
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.
type GatewayProperties ¶ added in v0.3.0
type GatewayProperties struct { // API metadata property for Spring Cloud Gateway APIMetadataProperties *GatewayAPIMetadataProperties `json:"apiMetadataProperties,omitempty"` // Cross-Origin Resource Sharing property CorsProperties *GatewayCorsProperties `json:"corsProperties,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.
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.
func (GatewayProvisioningState) ToPtr ¶ added in v0.3.0
func (c GatewayProvisioningState) ToPtr() *GatewayProvisioningState
ToPtr returns a *GatewayProvisioningState pointing to the current value.
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
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.
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.
type GatewayRouteConfigProperties ¶ added in v0.3.0
type GatewayRouteConfigProperties struct { // The resource Id of the Azure Spring Cloud app, required unless route defines uri. AppResourceID *string `json:"appResourceId,omitempty"` // Array of API routes, each route contains properties such as title, uri, ssoEnabled, predicates, filters. Routes []*GatewayAPIRoute `json:"routes,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.
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
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.
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
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) (GatewayRouteConfigsClientCreateOrUpdatePollerResponse, 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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/GatewayRouteConfigs_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewGatewayRouteConfigsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<gateway-name>", "<route-config-name>", armappplatform.GatewayRouteConfigResource{ Properties: &armappplatform.GatewayRouteConfigProperties{ AppResourceID: to.StringPtr("<app-resource-id>"), Routes: []*armappplatform.GatewayAPIRoute{ { Filters: []*string{ to.StringPtr("StripPrefix=2"), to.StringPtr("RateLimit=1,1s")}, Predicates: []*string{ to.StringPtr("Path=/api5/customer/**")}, SsoEnabled: to.BoolPtr(true), Title: to.StringPtr("<title>"), }}, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.GatewayRouteConfigsClientCreateOrUpdateResult) }
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) (GatewayRouteConfigsClientDeletePollerResponse, error)
BeginDelete - Delete the Spring Cloud Gateway route config. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/GatewayRouteConfigs_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewGatewayRouteConfigsClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<gateway-name>", "<route-config-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewGatewayRouteConfigsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<gateway-name>", "<route-config-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.GatewayRouteConfigsClientGetResult) }
Output:
func (*GatewayRouteConfigsClient) List ¶ added in v0.3.0
func (client *GatewayRouteConfigsClient) List(resourceGroupName string, serviceName string, gatewayName string, options *GatewayRouteConfigsClientListOptions) *GatewayRouteConfigsClientListPager
List - Handle requests to list all Spring Cloud Gateway route configs. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewGatewayRouteConfigsClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", "<gateway-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type GatewayRouteConfigsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type GatewayRouteConfigsClientBeginCreateOrUpdateOptions struct { }
GatewayRouteConfigsClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewayRouteConfigsClient.BeginCreateOrUpdate method.
type GatewayRouteConfigsClientBeginDeleteOptions ¶ added in v0.3.0
type GatewayRouteConfigsClientBeginDeleteOptions struct { }
GatewayRouteConfigsClientBeginDeleteOptions contains the optional parameters for the GatewayRouteConfigsClient.BeginDelete method.
type GatewayRouteConfigsClientCreateOrUpdatePoller ¶ added in v0.3.0
type GatewayRouteConfigsClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
GatewayRouteConfigsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*GatewayRouteConfigsClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *GatewayRouteConfigsClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*GatewayRouteConfigsClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *GatewayRouteConfigsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (GatewayRouteConfigsClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final GatewayRouteConfigsClientCreateOrUpdateResponse will be returned.
func (*GatewayRouteConfigsClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
func (p *GatewayRouteConfigsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*GatewayRouteConfigsClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *GatewayRouteConfigsClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type GatewayRouteConfigsClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type GatewayRouteConfigsClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *GatewayRouteConfigsClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayRouteConfigsClientCreateOrUpdatePollerResponse contains the response from method GatewayRouteConfigsClient.CreateOrUpdate.
func (GatewayRouteConfigsClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l GatewayRouteConfigsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (GatewayRouteConfigsClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*GatewayRouteConfigsClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *GatewayRouteConfigsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *GatewayRouteConfigsClient, token string) error
Resume rehydrates a GatewayRouteConfigsClientCreateOrUpdatePollerResponse from the provided client and resume token.
type GatewayRouteConfigsClientCreateOrUpdateResponse ¶ added in v0.3.0
type GatewayRouteConfigsClientCreateOrUpdateResponse struct { GatewayRouteConfigsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayRouteConfigsClientCreateOrUpdateResponse contains the response from method GatewayRouteConfigsClient.CreateOrUpdate.
type GatewayRouteConfigsClientCreateOrUpdateResult ¶ added in v0.3.0
type GatewayRouteConfigsClientCreateOrUpdateResult struct {
GatewayRouteConfigResource
}
GatewayRouteConfigsClientCreateOrUpdateResult contains the result from method GatewayRouteConfigsClient.CreateOrUpdate.
type GatewayRouteConfigsClientDeletePoller ¶ added in v0.3.0
type GatewayRouteConfigsClientDeletePoller struct {
// contains filtered or unexported fields
}
GatewayRouteConfigsClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*GatewayRouteConfigsClientDeletePoller) Done ¶ added in v0.3.0
func (p *GatewayRouteConfigsClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*GatewayRouteConfigsClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *GatewayRouteConfigsClientDeletePoller) FinalResponse(ctx context.Context) (GatewayRouteConfigsClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final GatewayRouteConfigsClientDeleteResponse will be returned.
func (*GatewayRouteConfigsClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*GatewayRouteConfigsClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *GatewayRouteConfigsClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type GatewayRouteConfigsClientDeletePollerResponse ¶ added in v0.3.0
type GatewayRouteConfigsClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *GatewayRouteConfigsClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayRouteConfigsClientDeletePollerResponse contains the response from method GatewayRouteConfigsClient.Delete.
func (GatewayRouteConfigsClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l GatewayRouteConfigsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (GatewayRouteConfigsClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*GatewayRouteConfigsClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *GatewayRouteConfigsClientDeletePollerResponse) Resume(ctx context.Context, client *GatewayRouteConfigsClient, token string) error
Resume rehydrates a GatewayRouteConfigsClientDeletePollerResponse from the provided client and resume token.
type GatewayRouteConfigsClientDeleteResponse ¶ added in v0.3.0
type GatewayRouteConfigsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayRouteConfigsClientDeleteResponse contains the response from method GatewayRouteConfigsClient.Delete.
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 { GatewayRouteConfigsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayRouteConfigsClientGetResponse contains the response from method GatewayRouteConfigsClient.Get.
type GatewayRouteConfigsClientGetResult ¶ added in v0.3.0
type GatewayRouteConfigsClientGetResult struct {
GatewayRouteConfigResource
}
GatewayRouteConfigsClientGetResult contains the result from method GatewayRouteConfigsClient.Get.
type GatewayRouteConfigsClientListOptions ¶ added in v0.3.0
type GatewayRouteConfigsClientListOptions struct { }
GatewayRouteConfigsClientListOptions contains the optional parameters for the GatewayRouteConfigsClient.List method.
type GatewayRouteConfigsClientListPager ¶ added in v0.3.0
type GatewayRouteConfigsClientListPager struct {
// contains filtered or unexported fields
}
GatewayRouteConfigsClientListPager provides operations for iterating over paged responses.
func (*GatewayRouteConfigsClientListPager) Err ¶ added in v0.3.0
func (p *GatewayRouteConfigsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*GatewayRouteConfigsClientListPager) NextPage ¶ added in v0.3.0
func (p *GatewayRouteConfigsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*GatewayRouteConfigsClientListPager) PageResponse ¶ added in v0.3.0
func (p *GatewayRouteConfigsClientListPager) PageResponse() GatewayRouteConfigsClientListResponse
PageResponse returns the current GatewayRouteConfigsClientListResponse page.
type GatewayRouteConfigsClientListResponse ¶ added in v0.3.0
type GatewayRouteConfigsClientListResponse struct { GatewayRouteConfigsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewayRouteConfigsClientListResponse contains the response from method GatewayRouteConfigsClient.List.
type GatewayRouteConfigsClientListResult ¶ added in v0.3.0
type GatewayRouteConfigsClientListResult struct {
GatewayRouteConfigResourceCollection
}
GatewayRouteConfigsClientListResult contains the result from method GatewayRouteConfigsClient.List.
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
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) (GatewaysClientCreateOrUpdatePollerResponse, 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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Gateways_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewGatewaysClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<gateway-name>", armappplatform.GatewayResource{ Properties: &armappplatform.GatewayProperties{ Public: to.BoolPtr(true), ResourceRequests: &armappplatform.GatewayResourceRequests{ CPU: to.StringPtr("<cpu>"), Memory: to.StringPtr("<memory>"), }, }, SKU: &armappplatform.SKU{ Name: to.StringPtr("<name>"), Capacity: to.Int32Ptr(2), Tier: to.StringPtr("<tier>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.GatewaysClientCreateOrUpdateResult) }
Output:
func (*GatewaysClient) BeginDelete ¶ added in v0.3.0
func (client *GatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, gatewayName string, options *GatewaysClientBeginDeleteOptions) (GatewaysClientDeletePollerResponse, error)
BeginDelete - Disable the default Spring Cloud Gateway. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Gateways_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewGatewaysClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<gateway-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewGatewaysClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<gateway-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.GatewaysClientGetResult) }
Output:
func (*GatewaysClient) List ¶ added in v0.3.0
func (client *GatewaysClient) List(resourceGroupName string, serviceName string, options *GatewaysClientListOptions) *GatewaysClientListPager
List - Handles requests to list all resources in a Service. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewGatewaysClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewGatewaysClient("<subscription-id>", cred, nil) res, err := client.ValidateDomain(ctx, "<resource-group-name>", "<service-name>", "<gateway-name>", armappplatform.CustomDomainValidatePayload{ Name: to.StringPtr("<name>"), }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.GatewaysClientValidateDomainResult) }
Output:
type GatewaysClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type GatewaysClientBeginCreateOrUpdateOptions struct { }
GatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewaysClient.BeginCreateOrUpdate method.
type GatewaysClientBeginDeleteOptions ¶ added in v0.3.0
type GatewaysClientBeginDeleteOptions struct { }
GatewaysClientBeginDeleteOptions contains the optional parameters for the GatewaysClient.BeginDelete method.
type GatewaysClientCreateOrUpdatePoller ¶ added in v0.3.0
type GatewaysClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
GatewaysClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*GatewaysClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *GatewaysClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*GatewaysClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *GatewaysClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (GatewaysClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final GatewaysClientCreateOrUpdateResponse will be returned.
func (*GatewaysClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*GatewaysClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *GatewaysClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type GatewaysClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type GatewaysClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *GatewaysClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewaysClientCreateOrUpdatePollerResponse contains the response from method GatewaysClient.CreateOrUpdate.
func (GatewaysClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l GatewaysClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (GatewaysClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*GatewaysClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *GatewaysClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *GatewaysClient, token string) error
Resume rehydrates a GatewaysClientCreateOrUpdatePollerResponse from the provided client and resume token.
type GatewaysClientCreateOrUpdateResponse ¶ added in v0.3.0
type GatewaysClientCreateOrUpdateResponse struct { GatewaysClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewaysClientCreateOrUpdateResponse contains the response from method GatewaysClient.CreateOrUpdate.
type GatewaysClientCreateOrUpdateResult ¶ added in v0.3.0
type GatewaysClientCreateOrUpdateResult struct {
GatewayResource
}
GatewaysClientCreateOrUpdateResult contains the result from method GatewaysClient.CreateOrUpdate.
type GatewaysClientDeletePoller ¶ added in v0.3.0
type GatewaysClientDeletePoller struct {
// contains filtered or unexported fields
}
GatewaysClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*GatewaysClientDeletePoller) Done ¶ added in v0.3.0
func (p *GatewaysClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*GatewaysClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *GatewaysClientDeletePoller) FinalResponse(ctx context.Context) (GatewaysClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final GatewaysClientDeleteResponse will be returned.
func (*GatewaysClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*GatewaysClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *GatewaysClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type GatewaysClientDeletePollerResponse ¶ added in v0.3.0
type GatewaysClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *GatewaysClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewaysClientDeletePollerResponse contains the response from method GatewaysClient.Delete.
func (GatewaysClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l GatewaysClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (GatewaysClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*GatewaysClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *GatewaysClientDeletePollerResponse) Resume(ctx context.Context, client *GatewaysClient, token string) error
Resume rehydrates a GatewaysClientDeletePollerResponse from the provided client and resume token.
type GatewaysClientDeleteResponse ¶ added in v0.3.0
type GatewaysClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewaysClientDeleteResponse contains the response from method GatewaysClient.Delete.
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 { GatewaysClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewaysClientGetResponse contains the response from method GatewaysClient.Get.
type GatewaysClientGetResult ¶ added in v0.3.0
type GatewaysClientGetResult struct {
GatewayResource
}
GatewaysClientGetResult contains the result from method GatewaysClient.Get.
type GatewaysClientListOptions ¶ added in v0.3.0
type GatewaysClientListOptions struct { }
GatewaysClientListOptions contains the optional parameters for the GatewaysClient.List method.
type GatewaysClientListPager ¶ added in v0.3.0
type GatewaysClientListPager struct {
// contains filtered or unexported fields
}
GatewaysClientListPager provides operations for iterating over paged responses.
func (*GatewaysClientListPager) Err ¶ added in v0.3.0
func (p *GatewaysClientListPager) Err() error
Err returns the last error encountered while paging.
func (*GatewaysClientListPager) NextPage ¶ added in v0.3.0
func (p *GatewaysClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*GatewaysClientListPager) PageResponse ¶ added in v0.3.0
func (p *GatewaysClientListPager) PageResponse() GatewaysClientListResponse
PageResponse returns the current GatewaysClientListResponse page.
type GatewaysClientListResponse ¶ added in v0.3.0
type GatewaysClientListResponse struct { GatewaysClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewaysClientListResponse contains the response from method GatewaysClient.List.
type GatewaysClientListResult ¶ added in v0.3.0
type GatewaysClientListResult struct {
GatewayResourceCollection
}
GatewaysClientListResult contains the result from method GatewaysClient.List.
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 { GatewaysClientValidateDomainResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
GatewaysClientValidateDomainResponse contains the response from method GatewaysClient.ValidateDomain.
type GatewaysClientValidateDomainResult ¶ added in v0.3.0
type GatewaysClientValidateDomainResult struct {
CustomDomainValidateResult
}
GatewaysClientValidateDomainResult contains the result 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.
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
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.
func (KPackBuildStageProvisioningState) ToPtr ¶ added in v0.3.0
func (c KPackBuildStageProvisioningState) ToPtr() *KPackBuildStageProvisioningState
ToPtr returns a *KPackBuildStageProvisioningState pointing to the current value.
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; 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.
func (LastModifiedByType) ToPtr ¶ added in v0.3.0
func (c LastModifiedByType) ToPtr() *LastModifiedByType
ToPtr returns a *LastModifiedByType pointing to the current value.
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
type LogFileURLResponse ¶
type LogFileURLResponse struct { // REQUIRED; URL of the log file URL *string `json:"url,omitempty"` }
LogFileURLResponse - Log file URL payload
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
type ManagedIdentityProperties ¶
type ManagedIdentityProperties struct { // Principal Id PrincipalID *string `json:"principalId,omitempty"` // Tenant Id TenantID *string `json:"tenantId,omitempty"` // Type of the managed identity Type *ManagedIdentityType `json:"type,omitempty"` }
ManagedIdentityProperties - Managed identity properties retrieved from ARM request headers.
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.
func (ManagedIdentityType) ToPtr ¶
func (c ManagedIdentityType) ToPtr() *ManagedIdentityType
ToPtr returns a *ManagedIdentityType pointing to the current value.
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
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.
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
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.
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.
func (MonitoringSettingState) ToPtr ¶
func (c MonitoringSettingState) ToPtr() *MonitoringSettingState
ToPtr returns a *MonitoringSettingState pointing to the current value.
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
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) (MonitoringSettingsClientUpdatePatchPollerResponse, error)
BeginUpdatePatch - Update the Monitoring Setting. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/MonitoringSettings_UpdatePatch.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewMonitoringSettingsClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdatePatch(ctx, "<resource-group-name>", "<service-name>", armappplatform.MonitoringSettingResource{ Properties: &armappplatform.MonitoringSettingProperties{ AppInsightsInstrumentationKey: to.StringPtr("<app-insights-instrumentation-key>"), AppInsightsSamplingRate: to.Float64Ptr(10), TraceEnabled: to.BoolPtr(true), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.MonitoringSettingsClientUpdatePatchResult) }
Output:
func (*MonitoringSettingsClient) BeginUpdatePut ¶
func (client *MonitoringSettingsClient) BeginUpdatePut(ctx context.Context, resourceGroupName string, serviceName string, monitoringSettingResource MonitoringSettingResource, options *MonitoringSettingsClientBeginUpdatePutOptions) (MonitoringSettingsClientUpdatePutPollerResponse, error)
BeginUpdatePut - Update the Monitoring Setting. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/MonitoringSettings_UpdatePut.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewMonitoringSettingsClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdatePut(ctx, "<resource-group-name>", "<service-name>", armappplatform.MonitoringSettingResource{ Properties: &armappplatform.MonitoringSettingProperties{ AppInsightsInstrumentationKey: to.StringPtr("<app-insights-instrumentation-key>"), AppInsightsSamplingRate: to.Float64Ptr(10), TraceEnabled: to.BoolPtr(true), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.MonitoringSettingsClientUpdatePutResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewMonitoringSettingsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.MonitoringSettingsClientGetResult) }
Output:
type MonitoringSettingsClientBeginUpdatePatchOptions ¶ added in v0.3.0
type MonitoringSettingsClientBeginUpdatePatchOptions struct { }
MonitoringSettingsClientBeginUpdatePatchOptions contains the optional parameters for the MonitoringSettingsClient.BeginUpdatePatch method.
type MonitoringSettingsClientBeginUpdatePutOptions ¶ added in v0.3.0
type MonitoringSettingsClientBeginUpdatePutOptions struct { }
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 { MonitoringSettingsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MonitoringSettingsClientGetResponse contains the response from method MonitoringSettingsClient.Get.
type MonitoringSettingsClientGetResult ¶ added in v0.3.0
type MonitoringSettingsClientGetResult struct {
MonitoringSettingResource
}
MonitoringSettingsClientGetResult contains the result from method MonitoringSettingsClient.Get.
type MonitoringSettingsClientUpdatePatchPoller ¶ added in v0.3.0
type MonitoringSettingsClientUpdatePatchPoller struct {
// contains filtered or unexported fields
}
MonitoringSettingsClientUpdatePatchPoller provides polling facilities until the operation reaches a terminal state.
func (*MonitoringSettingsClientUpdatePatchPoller) Done ¶ added in v0.3.0
func (p *MonitoringSettingsClientUpdatePatchPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*MonitoringSettingsClientUpdatePatchPoller) FinalResponse ¶ added in v0.3.0
func (p *MonitoringSettingsClientUpdatePatchPoller) FinalResponse(ctx context.Context) (MonitoringSettingsClientUpdatePatchResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final MonitoringSettingsClientUpdatePatchResponse will be returned.
func (*MonitoringSettingsClientUpdatePatchPoller) Poll ¶ added in v0.3.0
func (p *MonitoringSettingsClientUpdatePatchPoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*MonitoringSettingsClientUpdatePatchPoller) ResumeToken ¶ added in v0.3.0
func (p *MonitoringSettingsClientUpdatePatchPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type MonitoringSettingsClientUpdatePatchPollerResponse ¶ added in v0.3.0
type MonitoringSettingsClientUpdatePatchPollerResponse struct { // Poller contains an initialized poller. Poller *MonitoringSettingsClientUpdatePatchPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MonitoringSettingsClientUpdatePatchPollerResponse contains the response from method MonitoringSettingsClient.UpdatePatch.
func (MonitoringSettingsClientUpdatePatchPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l MonitoringSettingsClientUpdatePatchPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (MonitoringSettingsClientUpdatePatchResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*MonitoringSettingsClientUpdatePatchPollerResponse) Resume ¶ added in v0.3.0
func (l *MonitoringSettingsClientUpdatePatchPollerResponse) Resume(ctx context.Context, client *MonitoringSettingsClient, token string) error
Resume rehydrates a MonitoringSettingsClientUpdatePatchPollerResponse from the provided client and resume token.
type MonitoringSettingsClientUpdatePatchResponse ¶ added in v0.3.0
type MonitoringSettingsClientUpdatePatchResponse struct { MonitoringSettingsClientUpdatePatchResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MonitoringSettingsClientUpdatePatchResponse contains the response from method MonitoringSettingsClient.UpdatePatch.
type MonitoringSettingsClientUpdatePatchResult ¶ added in v0.3.0
type MonitoringSettingsClientUpdatePatchResult struct {
MonitoringSettingResource
}
MonitoringSettingsClientUpdatePatchResult contains the result from method MonitoringSettingsClient.UpdatePatch.
type MonitoringSettingsClientUpdatePutPoller ¶ added in v0.3.0
type MonitoringSettingsClientUpdatePutPoller struct {
// contains filtered or unexported fields
}
MonitoringSettingsClientUpdatePutPoller provides polling facilities until the operation reaches a terminal state.
func (*MonitoringSettingsClientUpdatePutPoller) Done ¶ added in v0.3.0
func (p *MonitoringSettingsClientUpdatePutPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*MonitoringSettingsClientUpdatePutPoller) FinalResponse ¶ added in v0.3.0
func (p *MonitoringSettingsClientUpdatePutPoller) FinalResponse(ctx context.Context) (MonitoringSettingsClientUpdatePutResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final MonitoringSettingsClientUpdatePutResponse will be returned.
func (*MonitoringSettingsClientUpdatePutPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*MonitoringSettingsClientUpdatePutPoller) ResumeToken ¶ added in v0.3.0
func (p *MonitoringSettingsClientUpdatePutPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type MonitoringSettingsClientUpdatePutPollerResponse ¶ added in v0.3.0
type MonitoringSettingsClientUpdatePutPollerResponse struct { // Poller contains an initialized poller. Poller *MonitoringSettingsClientUpdatePutPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MonitoringSettingsClientUpdatePutPollerResponse contains the response from method MonitoringSettingsClient.UpdatePut.
func (MonitoringSettingsClientUpdatePutPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l MonitoringSettingsClientUpdatePutPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (MonitoringSettingsClientUpdatePutResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*MonitoringSettingsClientUpdatePutPollerResponse) Resume ¶ added in v0.3.0
func (l *MonitoringSettingsClientUpdatePutPollerResponse) Resume(ctx context.Context, client *MonitoringSettingsClient, token string) error
Resume rehydrates a MonitoringSettingsClientUpdatePutPollerResponse from the provided client and resume token.
type MonitoringSettingsClientUpdatePutResponse ¶ added in v0.3.0
type MonitoringSettingsClientUpdatePutResponse struct { MonitoringSettingsClientUpdatePutResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MonitoringSettingsClientUpdatePutResponse contains the response from method MonitoringSettingsClient.UpdatePut.
type MonitoringSettingsClientUpdatePutResult ¶ added in v0.3.0
type MonitoringSettingsClientUpdatePutResult struct {
MonitoringSettingResource
}
MonitoringSettingsClientUpdatePutResult contains the result from method MonitoringSettingsClient.UpdatePut.
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
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
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 of Azure Spring Cloud Apps AppNetworkResourceGroup *string `json:"appNetworkResourceGroup,omitempty"` // Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps AppSubnetID *string `json:"appSubnetId,omitempty"` // Azure Spring Cloud service reserved CIDR ServiceCidr *string `json:"serviceCidr,omitempty"` // Name of the resource group containing network resources of Azure Spring Cloud Service Runtime ServiceRuntimeNetworkResourceGroup *string `json:"serviceRuntimeNetworkResourceGroup,omitempty"` // Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime ServiceRuntimeSubnetID *string `json:"serviceRuntimeSubnetId,omitempty"` // READ-ONLY; Desired outbound IP resources for Azure Spring Cloud instance. OutboundIPs *NetworkProfileOutboundIPs `json:"outboundIPs,omitempty" azure:"ro"` // READ-ONLY; Required inbound or outbound traffics for Azure Spring Cloud instance. 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.
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 Cloud instance.
func (NetworkProfileOutboundIPs) MarshalJSON ¶
func (n NetworkProfileOutboundIPs) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller 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"` }
OperationDetail - Operation detail payload
type OperationDisplay ¶
type OperationDisplay struct { // Localized friendly description for the operation Description *string `json:"description,omitempty"` // Localized friendly name for the operation Operation *string `json:"operation,omitempty"` // Resource provider of the operation Provider *string `json:"provider,omitempty"` // Resource of the operation Resource *string `json:"resource,omitempty"` }
OperationDisplay - Operation display payload
type OperationProperties ¶
type OperationProperties struct { // Service specifications of the operation ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` }
OperationProperties - Extra Operation properties
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
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(options *OperationsClientListOptions) *OperationsClientListPager
List - Lists all of the available REST API operations of the Microsoft.AppPlatform provider. If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Operations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewOperationsClient(cred, nil) pager := client.List(nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type OperationsClientListOptions ¶ added in v0.3.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListPager ¶ added in v0.3.0
type OperationsClientListPager struct {
// contains filtered or unexported fields
}
OperationsClientListPager provides operations for iterating over paged responses.
func (*OperationsClientListPager) Err ¶ added in v0.3.0
func (p *OperationsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*OperationsClientListPager) NextPage ¶ added in v0.3.0
func (p *OperationsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*OperationsClientListPager) PageResponse ¶ added in v0.3.0
func (p *OperationsClientListPager) PageResponse() OperationsClientListResponse
PageResponse returns the current OperationsClientListResponse page.
type OperationsClientListResponse ¶ added in v0.3.0
type OperationsClientListResponse struct { OperationsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
OperationsClientListResponse contains the response from method OperationsClient.List.
type OperationsClientListResult ¶ added in v0.3.0
type OperationsClientListResult struct {
AvailableOperations
}
OperationsClientListResult contains the result from method OperationsClient.List.
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
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.
func (PowerState) ToPtr ¶ added in v0.2.0
func (c PowerState) ToPtr() *PowerState
ToPtr returns a *PowerState pointing to the current value.
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" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
func (ProvisioningState) ToPtr ¶
func (c ProvisioningState) ToPtr() *ProvisioningState
ToPtr returns a *ProvisioningState pointing to the current value.
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.
type RegenerateTestKeyRequestPayload ¶
type RegenerateTestKeyRequestPayload struct { // REQUIRED; Type of the test key KeyType *TestKeyType `json:"keyType,omitempty"` }
RegenerateTestKeyRequestPayload - Regenerate test key request payload
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 Cloud instance.
func (RequiredTraffic) MarshalJSON ¶
func (r RequiredTraffic) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller 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.
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
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 Cloud SKU.
func (ResourceSKU) MarshalJSON ¶
func (r ResourceSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKU.
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 Cloud 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.
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.
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.
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.
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.
func (ResourceSKURestrictionsReasonCode) ToPtr ¶
func (c ResourceSKURestrictionsReasonCode) ToPtr() *ResourceSKURestrictionsReasonCode
ToPtr returns a *ResourceSKURestrictionsReasonCode pointing to the current value.
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.
func (ResourceSKURestrictionsType) ToPtr ¶
func (c ResourceSKURestrictionsType) ToPtr() *ResourceSKURestrictionsType
ToPtr returns a *ResourceSKURestrictionsType pointing to the current value.
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.
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
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
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. options - RuntimeVersionsClientListRuntimeVersionsOptions contains the optional parameters for the RuntimeVersionsClient.ListRuntimeVersions method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewRuntimeVersionsClient(cred, nil) res, err := client.ListRuntimeVersions(ctx, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.RuntimeVersionsClientListRuntimeVersionsResult) }
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 { RuntimeVersionsClientListRuntimeVersionsResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
RuntimeVersionsClientListRuntimeVersionsResponse contains the response from method RuntimeVersionsClient.ListRuntimeVersions.
type RuntimeVersionsClientListRuntimeVersionsResult ¶ added in v0.3.0
type RuntimeVersionsClientListRuntimeVersionsResult struct {
AvailableRuntimeVersions
}
RuntimeVersionsClientListRuntimeVersionsResult contains the result 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 Cloud
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
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.
func (SKUScaleType) ToPtr ¶
func (c SKUScaleType) ToPtr() *SKUScaleType
ToPtr returns a *SKUScaleType pointing to the current value.
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
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) List ¶
func (client *SKUsClient) List(options *SKUsClientListOptions) *SKUsClientListPager
List - Lists all of the available skus of the Microsoft.AppPlatform provider. If the operation fails it returns an *azcore.ResponseError type. options - SKUsClientListOptions contains the optional parameters for the SKUsClient.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewSKUsClient("<subscription-id>", cred, nil) pager := client.List(nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type SKUsClientListOptions ¶ added in v0.3.0
type SKUsClientListOptions struct { }
SKUsClientListOptions contains the optional parameters for the SKUsClient.List method.
type SKUsClientListPager ¶ added in v0.3.0
type SKUsClientListPager struct {
// contains filtered or unexported fields
}
SKUsClientListPager provides operations for iterating over paged responses.
func (*SKUsClientListPager) Err ¶ added in v0.3.0
func (p *SKUsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*SKUsClientListPager) NextPage ¶ added in v0.3.0
func (p *SKUsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*SKUsClientListPager) PageResponse ¶ added in v0.3.0
func (p *SKUsClientListPager) PageResponse() SKUsClientListResponse
PageResponse returns the current SKUsClientListResponse page.
type SKUsClientListResponse ¶ added in v0.3.0
type SKUsClientListResponse struct { SKUsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
SKUsClientListResponse contains the response from method SKUsClient.List.
type SKUsClientListResult ¶ added in v0.3.0
type SKUsClientListResult struct {
ResourceSKUCollection
}
SKUsClientListResult contains the result from method SKUsClient.List.
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
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) (ServiceRegistriesClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create the default Service Registry or update the existing Service Registry. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ServiceRegistries_CreateOrUpdate.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewServiceRegistriesClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<service-registry-name>", nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServiceRegistriesClientCreateOrUpdateResult) }
Output:
func (*ServiceRegistriesClient) BeginDelete ¶ added in v0.3.0
func (client *ServiceRegistriesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, serviceRegistryName string, options *ServiceRegistriesClientBeginDeleteOptions) (ServiceRegistriesClientDeletePollerResponse, error)
BeginDelete - Disable the default Service Registry. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/ServiceRegistries_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewServiceRegistriesClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<service-registry-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewServiceRegistriesClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<service-registry-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServiceRegistriesClientGetResult) }
Output:
func (*ServiceRegistriesClient) List ¶ added in v0.3.0
func (client *ServiceRegistriesClient) List(resourceGroupName string, serviceName string, options *ServiceRegistriesClientListOptions) *ServiceRegistriesClientListPager
List - Handles requests to list all resources in a Service. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewServiceRegistriesClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type ServiceRegistriesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ServiceRegistriesClientBeginCreateOrUpdateOptions struct { }
ServiceRegistriesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServiceRegistriesClient.BeginCreateOrUpdate method.
type ServiceRegistriesClientBeginDeleteOptions ¶ added in v0.3.0
type ServiceRegistriesClientBeginDeleteOptions struct { }
ServiceRegistriesClientBeginDeleteOptions contains the optional parameters for the ServiceRegistriesClient.BeginDelete method.
type ServiceRegistriesClientCreateOrUpdatePoller ¶ added in v0.3.0
type ServiceRegistriesClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
ServiceRegistriesClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*ServiceRegistriesClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *ServiceRegistriesClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ServiceRegistriesClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *ServiceRegistriesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ServiceRegistriesClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ServiceRegistriesClientCreateOrUpdateResponse will be returned.
func (*ServiceRegistriesClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
func (p *ServiceRegistriesClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ServiceRegistriesClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *ServiceRegistriesClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ServiceRegistriesClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type ServiceRegistriesClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *ServiceRegistriesClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceRegistriesClientCreateOrUpdatePollerResponse contains the response from method ServiceRegistriesClient.CreateOrUpdate.
func (ServiceRegistriesClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ServiceRegistriesClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ServiceRegistriesClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ServiceRegistriesClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *ServiceRegistriesClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ServiceRegistriesClient, token string) error
Resume rehydrates a ServiceRegistriesClientCreateOrUpdatePollerResponse from the provided client and resume token.
type ServiceRegistriesClientCreateOrUpdateResponse ¶ added in v0.3.0
type ServiceRegistriesClientCreateOrUpdateResponse struct { ServiceRegistriesClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceRegistriesClientCreateOrUpdateResponse contains the response from method ServiceRegistriesClient.CreateOrUpdate.
type ServiceRegistriesClientCreateOrUpdateResult ¶ added in v0.3.0
type ServiceRegistriesClientCreateOrUpdateResult struct {
ServiceRegistryResource
}
ServiceRegistriesClientCreateOrUpdateResult contains the result from method ServiceRegistriesClient.CreateOrUpdate.
type ServiceRegistriesClientDeletePoller ¶ added in v0.3.0
type ServiceRegistriesClientDeletePoller struct {
// contains filtered or unexported fields
}
ServiceRegistriesClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*ServiceRegistriesClientDeletePoller) Done ¶ added in v0.3.0
func (p *ServiceRegistriesClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ServiceRegistriesClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *ServiceRegistriesClientDeletePoller) FinalResponse(ctx context.Context) (ServiceRegistriesClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ServiceRegistriesClientDeleteResponse will be returned.
func (*ServiceRegistriesClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ServiceRegistriesClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *ServiceRegistriesClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ServiceRegistriesClientDeletePollerResponse ¶ added in v0.3.0
type ServiceRegistriesClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *ServiceRegistriesClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceRegistriesClientDeletePollerResponse contains the response from method ServiceRegistriesClient.Delete.
func (ServiceRegistriesClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ServiceRegistriesClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ServiceRegistriesClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ServiceRegistriesClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *ServiceRegistriesClientDeletePollerResponse) Resume(ctx context.Context, client *ServiceRegistriesClient, token string) error
Resume rehydrates a ServiceRegistriesClientDeletePollerResponse from the provided client and resume token.
type ServiceRegistriesClientDeleteResponse ¶ added in v0.3.0
type ServiceRegistriesClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceRegistriesClientDeleteResponse contains the response from method ServiceRegistriesClient.Delete.
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 { ServiceRegistriesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceRegistriesClientGetResponse contains the response from method ServiceRegistriesClient.Get.
type ServiceRegistriesClientGetResult ¶ added in v0.3.0
type ServiceRegistriesClientGetResult struct {
ServiceRegistryResource
}
ServiceRegistriesClientGetResult contains the result from method ServiceRegistriesClient.Get.
type ServiceRegistriesClientListOptions ¶ added in v0.3.0
type ServiceRegistriesClientListOptions struct { }
ServiceRegistriesClientListOptions contains the optional parameters for the ServiceRegistriesClient.List method.
type ServiceRegistriesClientListPager ¶ added in v0.3.0
type ServiceRegistriesClientListPager struct {
// contains filtered or unexported fields
}
ServiceRegistriesClientListPager provides operations for iterating over paged responses.
func (*ServiceRegistriesClientListPager) Err ¶ added in v0.3.0
func (p *ServiceRegistriesClientListPager) Err() error
Err returns the last error encountered while paging.
func (*ServiceRegistriesClientListPager) NextPage ¶ added in v0.3.0
func (p *ServiceRegistriesClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ServiceRegistriesClientListPager) PageResponse ¶ added in v0.3.0
func (p *ServiceRegistriesClientListPager) PageResponse() ServiceRegistriesClientListResponse
PageResponse returns the current ServiceRegistriesClientListResponse page.
type ServiceRegistriesClientListResponse ¶ added in v0.3.0
type ServiceRegistriesClientListResponse struct { ServiceRegistriesClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServiceRegistriesClientListResponse contains the response from method ServiceRegistriesClient.List.
type ServiceRegistriesClientListResult ¶ added in v0.3.0
type ServiceRegistriesClientListResult struct {
ServiceRegistryResourceCollection
}
ServiceRegistriesClientListResult contains the result from method ServiceRegistriesClient.List.
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
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.
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.
func (ServiceRegistryProvisioningState) ToPtr ¶ added in v0.3.0
func (c ServiceRegistryProvisioningState) ToPtr() *ServiceRegistryProvisioningState
ToPtr returns a *ServiceRegistryProvisioningState pointing to the current value.
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
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.
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
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.
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.
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.
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
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) (ServicesClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create a new Service or update an exiting Service. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Services_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", armappplatform.ServiceResource{ Location: to.StringPtr("<location>"), Tags: map[string]*string{ "key1": to.StringPtr("value1"), }, Properties: &armappplatform.ClusterResourceProperties{}, SKU: &armappplatform.SKU{ Name: to.StringPtr("<name>"), Tier: to.StringPtr("<tier>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServicesClientCreateOrUpdateResult) }
Output:
func (*ServicesClient) BeginDelete ¶
func (client *ServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, options *ServicesClientBeginDeleteOptions) (ServicesClientDeletePollerResponse, error)
BeginDelete - Operation to delete a Service. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Services_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*ServicesClient) BeginStart ¶ added in v0.2.0
func (client *ServicesClient) BeginStart(ctx context.Context, resourceGroupName string, serviceName string, options *ServicesClientBeginStartOptions) (ServicesClientStartPollerResponse, error)
BeginStart - Start a Service. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Services_Start.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) poller, err := client.BeginStart(ctx, "<resource-group-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*ServicesClient) BeginStop ¶ added in v0.2.0
func (client *ServicesClient) BeginStop(ctx context.Context, resourceGroupName string, serviceName string, options *ServicesClientBeginStopOptions) (ServicesClientStopPollerResponse, error)
BeginStop - Stop a Service. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Services_Stop.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) poller, err := client.BeginStop(ctx, "<resource-group-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*ServicesClient) BeginUpdate ¶
func (client *ServicesClient) BeginUpdate(ctx context.Context, resourceGroupName string, serviceName string, resource ServiceResource, options *ServicesClientBeginUpdateOptions) (ServicesClientUpdatePollerResponse, error)
BeginUpdate - Operation to update an exiting Service. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Services_Update.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdate(ctx, "<resource-group-name>", "<service-name>", armappplatform.ServiceResource{ Location: to.StringPtr("<location>"), Tags: map[string]*string{ "key1": to.StringPtr("value1"), }, Properties: &armappplatform.ClusterResourceProperties{}, SKU: &armappplatform.SKU{ Name: to.StringPtr("<name>"), Tier: to.StringPtr("<tier>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServicesClientUpdateResult) }
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. location - the region availabilityParameters - Parameters supplied to the operation. options - ServicesClientCheckNameAvailabilityOptions contains the optional parameters for the ServicesClient.CheckNameAvailability method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) res, err := client.CheckNameAvailability(ctx, "<location>", armappplatform.NameAvailabilityParameters{ Name: to.StringPtr("<name>"), Type: to.StringPtr("<type>"), }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServicesClientCheckNameAvailabilityResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) _, err = client.DisableTestEndpoint(ctx, "<resource-group-name>", "<service-name>", nil) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) res, err := client.EnableTestEndpoint(ctx, "<resource-group-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServicesClientEnableTestEndpointResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServicesClientGetResult) }
Output:
func (*ServicesClient) List ¶
func (client *ServicesClient) List(resourceGroupName string, options *ServicesClientListOptions) *ServicesClientListPager
List - Handles requests to list all resources in a resource group. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*ServicesClient) ListBySubscription ¶
func (client *ServicesClient) ListBySubscription(options *ServicesClientListBySubscriptionOptions) *ServicesClientListBySubscriptionPager
ListBySubscription - Handles requests to list all resources in a subscription. If the operation fails it returns an *azcore.ResponseError type. options - ServicesClientListBySubscriptionOptions contains the optional parameters for the ServicesClient.ListBySubscription method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) pager := client.ListBySubscription(nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) res, err := client.ListTestKeys(ctx, "<resource-group-name>", "<service-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServicesClientListTestKeysResult) }
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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Services_RegenerateTestKey.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() client := armappplatform.NewServicesClient("<subscription-id>", cred, nil) res, err := client.RegenerateTestKey(ctx, "<resource-group-name>", "<service-name>", armappplatform.RegenerateTestKeyRequestPayload{ KeyType: armappplatform.TestKeyType("Primary").ToPtr(), }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ServicesClientRegenerateTestKeyResult) }
Output:
type ServicesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ServicesClientBeginCreateOrUpdateOptions struct { }
ServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServicesClient.BeginCreateOrUpdate method.
type ServicesClientBeginDeleteOptions ¶ added in v0.3.0
type ServicesClientBeginDeleteOptions struct { }
ServicesClientBeginDeleteOptions contains the optional parameters for the ServicesClient.BeginDelete method.
type ServicesClientBeginStartOptions ¶ added in v0.3.0
type ServicesClientBeginStartOptions struct { }
ServicesClientBeginStartOptions contains the optional parameters for the ServicesClient.BeginStart method.
type ServicesClientBeginStopOptions ¶ added in v0.3.0
type ServicesClientBeginStopOptions struct { }
ServicesClientBeginStopOptions contains the optional parameters for the ServicesClient.BeginStop method.
type ServicesClientBeginUpdateOptions ¶ added in v0.3.0
type ServicesClientBeginUpdateOptions struct { }
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 { ServicesClientCheckNameAvailabilityResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientCheckNameAvailabilityResponse contains the response from method ServicesClient.CheckNameAvailability.
type ServicesClientCheckNameAvailabilityResult ¶ added in v0.3.0
type ServicesClientCheckNameAvailabilityResult struct {
NameAvailability
}
ServicesClientCheckNameAvailabilityResult contains the result from method ServicesClient.CheckNameAvailability.
type ServicesClientCreateOrUpdatePoller ¶ added in v0.3.0
type ServicesClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
ServicesClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*ServicesClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *ServicesClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ServicesClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *ServicesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ServicesClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ServicesClientCreateOrUpdateResponse will be returned.
func (*ServicesClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ServicesClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *ServicesClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ServicesClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type ServicesClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *ServicesClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientCreateOrUpdatePollerResponse contains the response from method ServicesClient.CreateOrUpdate.
func (ServicesClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ServicesClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ServicesClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ServicesClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *ServicesClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ServicesClient, token string) error
Resume rehydrates a ServicesClientCreateOrUpdatePollerResponse from the provided client and resume token.
type ServicesClientCreateOrUpdateResponse ¶ added in v0.3.0
type ServicesClientCreateOrUpdateResponse struct { ServicesClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientCreateOrUpdateResponse contains the response from method ServicesClient.CreateOrUpdate.
type ServicesClientCreateOrUpdateResult ¶ added in v0.3.0
type ServicesClientCreateOrUpdateResult struct {
ServiceResource
}
ServicesClientCreateOrUpdateResult contains the result from method ServicesClient.CreateOrUpdate.
type ServicesClientDeletePoller ¶ added in v0.3.0
type ServicesClientDeletePoller struct {
// contains filtered or unexported fields
}
ServicesClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*ServicesClientDeletePoller) Done ¶ added in v0.3.0
func (p *ServicesClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ServicesClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *ServicesClientDeletePoller) FinalResponse(ctx context.Context) (ServicesClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ServicesClientDeleteResponse will be returned.
func (*ServicesClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ServicesClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *ServicesClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ServicesClientDeletePollerResponse ¶ added in v0.3.0
type ServicesClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *ServicesClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientDeletePollerResponse contains the response from method ServicesClient.Delete.
func (ServicesClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ServicesClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ServicesClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ServicesClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *ServicesClientDeletePollerResponse) Resume(ctx context.Context, client *ServicesClient, token string) error
Resume rehydrates a ServicesClientDeletePollerResponse from the provided client and resume token.
type ServicesClientDeleteResponse ¶ added in v0.3.0
type ServicesClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientDeleteResponse contains the response from method ServicesClient.Delete.
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 { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
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 { ServicesClientEnableTestEndpointResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientEnableTestEndpointResponse contains the response from method ServicesClient.EnableTestEndpoint.
type ServicesClientEnableTestEndpointResult ¶ added in v0.3.0
type ServicesClientEnableTestEndpointResult struct {
TestKeys
}
ServicesClientEnableTestEndpointResult contains the result 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 { ServicesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientGetResponse contains the response from method ServicesClient.Get.
type ServicesClientGetResult ¶ added in v0.3.0
type ServicesClientGetResult struct {
ServiceResource
}
ServicesClientGetResult contains the result from method ServicesClient.Get.
type ServicesClientListBySubscriptionOptions ¶ added in v0.3.0
type ServicesClientListBySubscriptionOptions struct { }
ServicesClientListBySubscriptionOptions contains the optional parameters for the ServicesClient.ListBySubscription method.
type ServicesClientListBySubscriptionPager ¶ added in v0.3.0
type ServicesClientListBySubscriptionPager struct {
// contains filtered or unexported fields
}
ServicesClientListBySubscriptionPager provides operations for iterating over paged responses.
func (*ServicesClientListBySubscriptionPager) Err ¶ added in v0.3.0
func (p *ServicesClientListBySubscriptionPager) Err() error
Err returns the last error encountered while paging.
func (*ServicesClientListBySubscriptionPager) NextPage ¶ added in v0.3.0
func (p *ServicesClientListBySubscriptionPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ServicesClientListBySubscriptionPager) PageResponse ¶ added in v0.3.0
func (p *ServicesClientListBySubscriptionPager) PageResponse() ServicesClientListBySubscriptionResponse
PageResponse returns the current ServicesClientListBySubscriptionResponse page.
type ServicesClientListBySubscriptionResponse ¶ added in v0.3.0
type ServicesClientListBySubscriptionResponse struct { ServicesClientListBySubscriptionResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientListBySubscriptionResponse contains the response from method ServicesClient.ListBySubscription.
type ServicesClientListBySubscriptionResult ¶ added in v0.3.0
type ServicesClientListBySubscriptionResult struct {
ServiceResourceList
}
ServicesClientListBySubscriptionResult contains the result from method ServicesClient.ListBySubscription.
type ServicesClientListOptions ¶ added in v0.3.0
type ServicesClientListOptions struct { }
ServicesClientListOptions contains the optional parameters for the ServicesClient.List method.
type ServicesClientListPager ¶ added in v0.3.0
type ServicesClientListPager struct {
// contains filtered or unexported fields
}
ServicesClientListPager provides operations for iterating over paged responses.
func (*ServicesClientListPager) Err ¶ added in v0.3.0
func (p *ServicesClientListPager) Err() error
Err returns the last error encountered while paging.
func (*ServicesClientListPager) NextPage ¶ added in v0.3.0
func (p *ServicesClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ServicesClientListPager) PageResponse ¶ added in v0.3.0
func (p *ServicesClientListPager) PageResponse() ServicesClientListResponse
PageResponse returns the current ServicesClientListResponse page.
type ServicesClientListResponse ¶ added in v0.3.0
type ServicesClientListResponse struct { ServicesClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientListResponse contains the response from method ServicesClient.List.
type ServicesClientListResult ¶ added in v0.3.0
type ServicesClientListResult struct {
ServiceResourceList
}
ServicesClientListResult contains the result from method ServicesClient.List.
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 { ServicesClientListTestKeysResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientListTestKeysResponse contains the response from method ServicesClient.ListTestKeys.
type ServicesClientListTestKeysResult ¶ added in v0.3.0
type ServicesClientListTestKeysResult struct {
TestKeys
}
ServicesClientListTestKeysResult contains the result 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 { ServicesClientRegenerateTestKeyResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientRegenerateTestKeyResponse contains the response from method ServicesClient.RegenerateTestKey.
type ServicesClientRegenerateTestKeyResult ¶ added in v0.3.0
type ServicesClientRegenerateTestKeyResult struct {
TestKeys
}
ServicesClientRegenerateTestKeyResult contains the result from method ServicesClient.RegenerateTestKey.
type ServicesClientStartPoller ¶ added in v0.3.0
type ServicesClientStartPoller struct {
// contains filtered or unexported fields
}
ServicesClientStartPoller provides polling facilities until the operation reaches a terminal state.
func (*ServicesClientStartPoller) Done ¶ added in v0.3.0
func (p *ServicesClientStartPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ServicesClientStartPoller) FinalResponse ¶ added in v0.3.0
func (p *ServicesClientStartPoller) FinalResponse(ctx context.Context) (ServicesClientStartResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ServicesClientStartResponse will be returned.
func (*ServicesClientStartPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ServicesClientStartPoller) ResumeToken ¶ added in v0.3.0
func (p *ServicesClientStartPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ServicesClientStartPollerResponse ¶ added in v0.3.0
type ServicesClientStartPollerResponse struct { // Poller contains an initialized poller. Poller *ServicesClientStartPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientStartPollerResponse contains the response from method ServicesClient.Start.
func (ServicesClientStartPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ServicesClientStartPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ServicesClientStartResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ServicesClientStartPollerResponse) Resume ¶ added in v0.3.0
func (l *ServicesClientStartPollerResponse) Resume(ctx context.Context, client *ServicesClient, token string) error
Resume rehydrates a ServicesClientStartPollerResponse from the provided client and resume token.
type ServicesClientStartResponse ¶ added in v0.3.0
type ServicesClientStartResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientStartResponse contains the response from method ServicesClient.Start.
type ServicesClientStopPoller ¶ added in v0.3.0
type ServicesClientStopPoller struct {
// contains filtered or unexported fields
}
ServicesClientStopPoller provides polling facilities until the operation reaches a terminal state.
func (*ServicesClientStopPoller) Done ¶ added in v0.3.0
func (p *ServicesClientStopPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ServicesClientStopPoller) FinalResponse ¶ added in v0.3.0
func (p *ServicesClientStopPoller) FinalResponse(ctx context.Context) (ServicesClientStopResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ServicesClientStopResponse will be returned.
func (*ServicesClientStopPoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ServicesClientStopPoller) ResumeToken ¶ added in v0.3.0
func (p *ServicesClientStopPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ServicesClientStopPollerResponse ¶ added in v0.3.0
type ServicesClientStopPollerResponse struct { // Poller contains an initialized poller. Poller *ServicesClientStopPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientStopPollerResponse contains the response from method ServicesClient.Stop.
func (ServicesClientStopPollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ServicesClientStopPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ServicesClientStopResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ServicesClientStopPollerResponse) Resume ¶ added in v0.3.0
func (l *ServicesClientStopPollerResponse) Resume(ctx context.Context, client *ServicesClient, token string) error
Resume rehydrates a ServicesClientStopPollerResponse from the provided client and resume token.
type ServicesClientStopResponse ¶ added in v0.3.0
type ServicesClientStopResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientStopResponse contains the response from method ServicesClient.Stop.
type ServicesClientUpdatePoller ¶ added in v0.3.0
type ServicesClientUpdatePoller struct {
// contains filtered or unexported fields
}
ServicesClientUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*ServicesClientUpdatePoller) Done ¶ added in v0.3.0
func (p *ServicesClientUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ServicesClientUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *ServicesClientUpdatePoller) FinalResponse(ctx context.Context) (ServicesClientUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ServicesClientUpdateResponse will be returned.
func (*ServicesClientUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ServicesClientUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *ServicesClientUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ServicesClientUpdatePollerResponse ¶ added in v0.3.0
type ServicesClientUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *ServicesClientUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientUpdatePollerResponse contains the response from method ServicesClient.Update.
func (ServicesClientUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l ServicesClientUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ServicesClientUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ServicesClientUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *ServicesClientUpdatePollerResponse) Resume(ctx context.Context, client *ServicesClient, token string) error
Resume rehydrates a ServicesClientUpdatePollerResponse from the provided client and resume token.
type ServicesClientUpdateResponse ¶ added in v0.3.0
type ServicesClientUpdateResponse struct { ServicesClientUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ServicesClientUpdateResponse contains the response from method ServicesClient.Update.
type ServicesClientUpdateResult ¶ added in v0.3.0
type ServicesClientUpdateResult struct {
ServiceResource
}
ServicesClientUpdateResult contains the result from method ServicesClient.Update.
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.
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
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 *StoragePropertiesStorageType `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 *StoragePropertiesStorageType `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.
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 StoragePropertiesStorageType ¶ added in v0.2.0
type StoragePropertiesStorageType string
StoragePropertiesStorageType - The type of the storage.
const (
StoragePropertiesStorageTypeStorageAccount StoragePropertiesStorageType = "StorageAccount"
)
func PossibleStoragePropertiesStorageTypeValues ¶ added in v0.2.0
func PossibleStoragePropertiesStorageTypeValues() []StoragePropertiesStorageType
PossibleStoragePropertiesStorageTypeValues returns the possible values for the StoragePropertiesStorageType const type.
func (StoragePropertiesStorageType) ToPtr ¶ added in v0.2.0
func (c StoragePropertiesStorageType) ToPtr() *StoragePropertiesStorageType
ToPtr returns a *StoragePropertiesStorageType pointing to the current value.
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.
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
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) (StoragesClientCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create or update storage resource. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Storages_CreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/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() client := armappplatform.NewStoragesClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<service-name>", "<storage-name>", armappplatform.StorageResource{ Properties: &armappplatform.StorageAccount{ StorageType: armappplatform.StoragePropertiesStorageType("StorageAccount").ToPtr(), AccountKey: to.StringPtr("<account-key>"), AccountName: to.StringPtr("<account-name>"), }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.StoragesClientCreateOrUpdateResult) }
Output:
func (*StoragesClient) BeginDelete ¶ added in v0.2.0
func (client *StoragesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, storageName string, options *StoragesClientBeginDeleteOptions) (StoragesClientDeletePollerResponse, error)
BeginDelete - Delete the storage resource. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-01-preview/examples/Storages_Delete.json
package main import ( "context" "log" "time" "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() client := armappplatform.NewStoragesClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<service-name>", "<storage-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewStoragesClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<service-name>", "<storage-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.StoragesClientGetResult) }
Output:
func (*StoragesClient) List ¶ added in v0.2.0
func (client *StoragesClient) List(resourceGroupName string, serviceName string, options *StoragesClientListOptions) *StoragesClientListPager
List - List all the storages of one Azure Spring Cloud instance. If the operation fails it returns an *azcore.ResponseError type. 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.List method.
Example ¶
x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-01-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() client := armappplatform.NewStoragesClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", "<service-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type StoragesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type StoragesClientBeginCreateOrUpdateOptions struct { }
StoragesClientBeginCreateOrUpdateOptions contains the optional parameters for the StoragesClient.BeginCreateOrUpdate method.
type StoragesClientBeginDeleteOptions ¶ added in v0.3.0
type StoragesClientBeginDeleteOptions struct { }
StoragesClientBeginDeleteOptions contains the optional parameters for the StoragesClient.BeginDelete method.
type StoragesClientCreateOrUpdatePoller ¶ added in v0.3.0
type StoragesClientCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
StoragesClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*StoragesClientCreateOrUpdatePoller) Done ¶ added in v0.3.0
func (p *StoragesClientCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*StoragesClientCreateOrUpdatePoller) FinalResponse ¶ added in v0.3.0
func (p *StoragesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (StoragesClientCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final StoragesClientCreateOrUpdateResponse will be returned.
func (*StoragesClientCreateOrUpdatePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*StoragesClientCreateOrUpdatePoller) ResumeToken ¶ added in v0.3.0
func (p *StoragesClientCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type StoragesClientCreateOrUpdatePollerResponse ¶ added in v0.3.0
type StoragesClientCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *StoragesClientCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StoragesClientCreateOrUpdatePollerResponse contains the response from method StoragesClient.CreateOrUpdate.
func (StoragesClientCreateOrUpdatePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l StoragesClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (StoragesClientCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*StoragesClientCreateOrUpdatePollerResponse) Resume ¶ added in v0.3.0
func (l *StoragesClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *StoragesClient, token string) error
Resume rehydrates a StoragesClientCreateOrUpdatePollerResponse from the provided client and resume token.
type StoragesClientCreateOrUpdateResponse ¶ added in v0.3.0
type StoragesClientCreateOrUpdateResponse struct { StoragesClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StoragesClientCreateOrUpdateResponse contains the response from method StoragesClient.CreateOrUpdate.
type StoragesClientCreateOrUpdateResult ¶ added in v0.3.0
type StoragesClientCreateOrUpdateResult struct {
StorageResource
}
StoragesClientCreateOrUpdateResult contains the result from method StoragesClient.CreateOrUpdate.
type StoragesClientDeletePoller ¶ added in v0.3.0
type StoragesClientDeletePoller struct {
// contains filtered or unexported fields
}
StoragesClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*StoragesClientDeletePoller) Done ¶ added in v0.3.0
func (p *StoragesClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*StoragesClientDeletePoller) FinalResponse ¶ added in v0.3.0
func (p *StoragesClientDeletePoller) FinalResponse(ctx context.Context) (StoragesClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final StoragesClientDeleteResponse will be returned.
func (*StoragesClientDeletePoller) Poll ¶ added in v0.3.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*StoragesClientDeletePoller) ResumeToken ¶ added in v0.3.0
func (p *StoragesClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type StoragesClientDeletePollerResponse ¶ added in v0.3.0
type StoragesClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *StoragesClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StoragesClientDeletePollerResponse contains the response from method StoragesClient.Delete.
func (StoragesClientDeletePollerResponse) PollUntilDone ¶ added in v0.3.0
func (l StoragesClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (StoragesClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*StoragesClientDeletePollerResponse) Resume ¶ added in v0.3.0
func (l *StoragesClientDeletePollerResponse) Resume(ctx context.Context, client *StoragesClient, token string) error
Resume rehydrates a StoragesClientDeletePollerResponse from the provided client and resume token.
type StoragesClientDeleteResponse ¶ added in v0.3.0
type StoragesClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StoragesClientDeleteResponse contains the response from method StoragesClient.Delete.
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 { StoragesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StoragesClientGetResponse contains the response from method StoragesClient.Get.
type StoragesClientGetResult ¶ added in v0.3.0
type StoragesClientGetResult struct {
StorageResource
}
StoragesClientGetResult contains the result from method StoragesClient.Get.
type StoragesClientListOptions ¶ added in v0.3.0
type StoragesClientListOptions struct { }
StoragesClientListOptions contains the optional parameters for the StoragesClient.List method.
type StoragesClientListPager ¶ added in v0.3.0
type StoragesClientListPager struct {
// contains filtered or unexported fields
}
StoragesClientListPager provides operations for iterating over paged responses.
func (*StoragesClientListPager) Err ¶ added in v0.3.0
func (p *StoragesClientListPager) Err() error
Err returns the last error encountered while paging.
func (*StoragesClientListPager) NextPage ¶ added in v0.3.0
func (p *StoragesClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*StoragesClientListPager) PageResponse ¶ added in v0.3.0
func (p *StoragesClientListPager) PageResponse() StoragesClientListResponse
PageResponse returns the current StoragesClientListResponse page.
type StoragesClientListResponse ¶ added in v0.3.0
type StoragesClientListResponse struct { StoragesClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StoragesClientListResponse contains the response from method StoragesClient.List.
type StoragesClientListResult ¶ added in v0.3.0
type StoragesClientListResult struct {
StorageResourceCollection
}
StoragesClientListResult contains the result from method StoragesClient.List.
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
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
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.
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.
func (SupportedRuntimePlatform) ToPtr ¶
func (c SupportedRuntimePlatform) ToPtr() *SupportedRuntimePlatform
ToPtr returns a *SupportedRuntimePlatform pointing to the current value.
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.
func (SupportedRuntimeValue) ToPtr ¶
func (c SupportedRuntimeValue) ToPtr() *SupportedRuntimeValue
ToPtr returns a *SupportedRuntimeValue pointing to the current value.
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.
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
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
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.
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 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
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.
func (TestKeyType) ToPtr ¶
func (c TestKeyType) ToPtr() *TestKeyType
ToPtr returns a *TestKeyType pointing to the current value.
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
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.
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.
func (TrafficDirection) ToPtr ¶
func (c TrafficDirection) ToPtr() *TrafficDirection
ToPtr returns a *TrafficDirection pointing to the current value.
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
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 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.
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.
Source Files
¶
- build.go
- zz_generated_apiportalcustomdomains_client.go
- zz_generated_apiportals_client.go
- zz_generated_apps_client.go
- zz_generated_bindings_client.go
- zz_generated_buildpackbinding_client.go
- zz_generated_buildservice_client.go
- zz_generated_buildserviceagentpool_client.go
- zz_generated_buildservicebuilder_client.go
- zz_generated_certificates_client.go
- zz_generated_configservers_client.go
- zz_generated_configurationservices_client.go
- zz_generated_constants.go
- zz_generated_customdomains_client.go
- zz_generated_deployments_client.go
- zz_generated_gatewaycustomdomains_client.go
- zz_generated_gatewayrouteconfigs_client.go
- zz_generated_gateways_client.go
- zz_generated_models.go
- zz_generated_monitoringsettings_client.go
- zz_generated_operations_client.go
- zz_generated_pagers.go
- zz_generated_pollers.go
- zz_generated_polymorphic_helpers.go
- zz_generated_response_types.go
- zz_generated_runtimeversions_client.go
- zz_generated_serviceregistries_client.go
- zz_generated_services_client.go
- zz_generated_skus_client.go
- zz_generated_storages_client.go
- zz_generated_time_rfc3339.go