Documentation
¶
Index ¶
- type AccessMode
- type ActionType
- type AdvertiseMode
- type BgpPeer
- type BgpPeerListResult
- type BgpPeerProperties
- type BgpPeersClient
- func (client *BgpPeersClient) BeginCreateOrUpdate(ctx context.Context, resourceURI string, bgpPeerName string, resource BgpPeer, ...) (*runtime.Poller[BgpPeersClientCreateOrUpdateResponse], error)
- func (client *BgpPeersClient) Delete(ctx context.Context, resourceURI string, bgpPeerName string, ...) (BgpPeersClientDeleteResponse, error)
- func (client *BgpPeersClient) Get(ctx context.Context, resourceURI string, bgpPeerName string, ...) (BgpPeersClientGetResponse, error)
- func (client *BgpPeersClient) NewListPager(resourceURI string, options *BgpPeersClientListOptions) *runtime.Pager[BgpPeersClientListResponse]
- type BgpPeersClientBeginCreateOrUpdateOptions
- type BgpPeersClientCreateOrUpdateResponse
- type BgpPeersClientDeleteOptions
- type BgpPeersClientDeleteResponse
- type BgpPeersClientGetOptions
- type BgpPeersClientGetResponse
- type BgpPeersClientListOptions
- type BgpPeersClientListResponse
- type BlobStorageClassTypeProperties
- type ClientFactory
- func (c *ClientFactory) NewBgpPeersClient() *BgpPeersClient
- func (c *ClientFactory) NewLoadBalancersClient() *LoadBalancersClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewServicesClient() *ServicesClient
- func (c *ClientFactory) NewStorageClassClient() *StorageClassClient
- type CreatedByType
- type DataResilienceTier
- type FailoverTier
- type LoadBalancer
- type LoadBalancerListResult
- type LoadBalancerProperties
- type LoadBalancersClient
- func (client *LoadBalancersClient) BeginCreateOrUpdate(ctx context.Context, resourceURI string, loadBalancerName string, ...) (*runtime.Poller[LoadBalancersClientCreateOrUpdateResponse], error)
- func (client *LoadBalancersClient) Delete(ctx context.Context, resourceURI string, loadBalancerName string, ...) (LoadBalancersClientDeleteResponse, error)
- func (client *LoadBalancersClient) Get(ctx context.Context, resourceURI string, loadBalancerName string, ...) (LoadBalancersClientGetResponse, error)
- func (client *LoadBalancersClient) NewListPager(resourceURI string, options *LoadBalancersClientListOptions) *runtime.Pager[LoadBalancersClientListResponse]
- type LoadBalancersClientBeginCreateOrUpdateOptions
- type LoadBalancersClientCreateOrUpdateResponse
- type LoadBalancersClientDeleteOptions
- type LoadBalancersClientDeleteResponse
- type LoadBalancersClientGetOptions
- type LoadBalancersClientGetResponse
- type LoadBalancersClientListOptions
- type LoadBalancersClientListResponse
- type NativeStorageClassTypeProperties
- type NfsDirectoryActionOnVolumeDeletion
- type NfsStorageClassTypeProperties
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type PerformanceTier
- type ProvisioningState
- type RwxStorageClassTypeProperties
- type SCType
- type ServiceProperties
- type ServiceResource
- type ServiceResourceListResult
- type ServicesClient
- func (client *ServicesClient) CreateOrUpdate(ctx context.Context, resourceURI string, serviceName string, ...) (ServicesClientCreateOrUpdateResponse, error)
- func (client *ServicesClient) Delete(ctx context.Context, resourceURI string, serviceName string, ...) (ServicesClientDeleteResponse, error)
- func (client *ServicesClient) Get(ctx context.Context, resourceURI string, serviceName string, ...) (ServicesClientGetResponse, error)
- func (client *ServicesClient) NewListPager(resourceURI string, options *ServicesClientListOptions) *runtime.Pager[ServicesClientListResponse]
- type ServicesClientCreateOrUpdateOptions
- type ServicesClientCreateOrUpdateResponse
- type ServicesClientDeleteOptions
- type ServicesClientDeleteResponse
- type ServicesClientGetOptions
- type ServicesClientGetResponse
- type ServicesClientListOptions
- type ServicesClientListResponse
- type SmbStorageClassTypeProperties
- type StorageClassClient
- func (client *StorageClassClient) BeginCreateOrUpdate(ctx context.Context, resourceURI string, storageClassName string, ...) (*runtime.Poller[StorageClassClientCreateOrUpdateResponse], error)
- func (client *StorageClassClient) BeginDelete(ctx context.Context, resourceURI string, storageClassName string, ...) (*runtime.Poller[StorageClassClientDeleteResponse], error)
- func (client *StorageClassClient) BeginUpdate(ctx context.Context, resourceURI string, storageClassName string, ...) (*runtime.Poller[StorageClassClientUpdateResponse], error)
- func (client *StorageClassClient) Get(ctx context.Context, resourceURI string, storageClassName string, ...) (StorageClassClientGetResponse, error)
- func (client *StorageClassClient) NewListPager(resourceURI string, options *StorageClassClientListOptions) *runtime.Pager[StorageClassClientListResponse]
- type StorageClassClientBeginCreateOrUpdateOptions
- type StorageClassClientBeginDeleteOptions
- type StorageClassClientBeginUpdateOptions
- type StorageClassClientCreateOrUpdateResponse
- type StorageClassClientDeleteResponse
- type StorageClassClientGetOptions
- type StorageClassClientGetResponse
- type StorageClassClientListOptions
- type StorageClassClientListResponse
- type StorageClassClientUpdateResponse
- type StorageClassProperties
- type StorageClassPropertiesUpdate
- type StorageClassResource
- type StorageClassResourceListResult
- type StorageClassResourceUpdate
- type StorageClassTypeProperties
- type StorageClassTypePropertiesClassification
- type StorageClassTypePropertiesUpdate
- type SystemData
- type VolumeBindingMode
- type VolumeExpansion
Examples ¶
- BgpPeersClient.BeginCreateOrUpdate
- BgpPeersClient.Delete
- BgpPeersClient.Get
- BgpPeersClient.NewListPager
- LoadBalancersClient.BeginCreateOrUpdate
- LoadBalancersClient.Delete
- LoadBalancersClient.Get
- LoadBalancersClient.NewListPager
- OperationsClient.NewListPager
- ServicesClient.CreateOrUpdate
- ServicesClient.Delete
- ServicesClient.Get
- ServicesClient.NewListPager
- StorageClassClient.BeginCreateOrUpdate
- StorageClassClient.BeginDelete
- StorageClassClient.BeginUpdate
- StorageClassClient.Get
- StorageClassClient.NewListPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessMode ¶
type AccessMode string
AccessMode - Storage Class Access Mode
const ( // AccessModeReadWriteMany - Read Write Many (RWX) access mode AccessModeReadWriteMany AccessMode = "ReadWriteMany" // AccessModeReadWriteOnce - Read Write Once (RWO) access mode AccessModeReadWriteOnce AccessMode = "ReadWriteOnce" )
func PossibleAccessModeValues ¶
func PossibleAccessModeValues() []AccessMode
PossibleAccessModeValues returns the possible values for the AccessMode const type.
type ActionType ¶
type ActionType string
ActionType - Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const ( // ActionTypeInternal - Actions are for internal-only APIs. ActionTypeInternal ActionType = "Internal" )
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type AdvertiseMode ¶
type AdvertiseMode string
AdvertiseMode - Enum of advertise mode
const ( // AdvertiseModeARP - ARP advertise mode AdvertiseModeARP AdvertiseMode = "ARP" // AdvertiseModeBGP - BGP advertise mode AdvertiseModeBGP AdvertiseMode = "BGP" // AdvertiseModeBoth - both ARP and BGP advertise mode AdvertiseModeBoth AdvertiseMode = "Both" )
func PossibleAdvertiseModeValues ¶
func PossibleAdvertiseModeValues() []AdvertiseMode
PossibleAdvertiseModeValues returns the possible values for the AdvertiseMode const type.
type BgpPeer ¶
type BgpPeer struct { // The resource-specific properties for this resource. Properties *BgpPeerProperties // READ-ONLY; The name of the BgpPeer Name *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
BgpPeer - A BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters)
func (BgpPeer) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type BgpPeer.
func (*BgpPeer) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type BgpPeer.
type BgpPeerListResult ¶
type BgpPeerListResult struct { // REQUIRED; The BgpPeer items on this page Value []*BgpPeer // The link to the next page of items NextLink *string }
BgpPeerListResult - The response of a BgpPeer list operation.
func (BgpPeerListResult) MarshalJSON ¶
func (b BgpPeerListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BgpPeerListResult.
func (*BgpPeerListResult) UnmarshalJSON ¶
func (b *BgpPeerListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BgpPeerListResult.
type BgpPeerProperties ¶
type BgpPeerProperties struct { // REQUIRED; My ASN MyAsn *int32 // REQUIRED; Peer Address PeerAddress *string // REQUIRED; Peer ASN PeerAsn *int32 // READ-ONLY; Resource provision state ProvisioningState *ProvisioningState }
BgpPeerProperties - Details of the BgpPeer.
func (BgpPeerProperties) MarshalJSON ¶
func (b BgpPeerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BgpPeerProperties.
func (*BgpPeerProperties) UnmarshalJSON ¶
func (b *BgpPeerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BgpPeerProperties.
type BgpPeersClient ¶
type BgpPeersClient struct {
// contains filtered or unexported fields
}
BgpPeersClient contains the methods for the BgpPeers group. Don't use this type directly, use NewBgpPeersClient() instead.
func NewBgpPeersClient ¶
func NewBgpPeersClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*BgpPeersClient, error)
NewBgpPeersClient creates a new instance of BgpPeersClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BgpPeersClient) BeginCreateOrUpdate ¶
func (client *BgpPeersClient) BeginCreateOrUpdate(ctx context.Context, resourceURI string, bgpPeerName string, resource BgpPeer, options *BgpPeersClientBeginCreateOrUpdateOptions) (*runtime.Poller[BgpPeersClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a BgpPeer If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- bgpPeerName - The name of the BgpPeer
- resource - Resource create parameters.
- options - BgpPeersClientBeginCreateOrUpdateOptions contains the optional parameters for the BgpPeersClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: 2024-03-01/BgpPeers_CreateOrUpdate.json
package main import ( "context" "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/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBgpPeersClient().BeginCreateOrUpdate(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "testpeer", armcontainerorchestratorruntime.BgpPeer{ Properties: &armcontainerorchestratorruntime.BgpPeerProperties{ MyAsn: to.Ptr[int32](64500), PeerAsn: to.Ptr[int32](64501), PeerAddress: to.Ptr("10.0.0.1"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.BgpPeersClientCreateOrUpdateResponse{ // BgpPeer: &armcontainerorchestratorruntime.BgpPeer{ // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/bgpPeers/testpeer"), // Name: to.Ptr("testpeer"), // Type: to.Ptr("Microsoft.KubernetesRuntime/BgpPeers"), // Properties: &armcontainerorchestratorruntime.BgpPeerProperties{ // ProvisioningState: to.Ptr(armcontainerorchestratorruntime.ProvisioningStateSucceeded), // MyAsn: to.Ptr[int32](64500), // PeerAsn: to.Ptr[int32](64501), // PeerAddress: to.Ptr("10.0.0.1"), // }, // }, // } }
func (*BgpPeersClient) Delete ¶
func (client *BgpPeersClient) Delete(ctx context.Context, resourceURI string, bgpPeerName string, options *BgpPeersClientDeleteOptions) (BgpPeersClientDeleteResponse, error)
Delete - Delete a BgpPeer If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- bgpPeerName - The name of the BgpPeer
- options - BgpPeersClientDeleteOptions contains the optional parameters for the BgpPeersClient.Delete method.
Example ¶
Generated from example definition: 2024-03-01/BgpPeers_Delete.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBgpPeersClient().Delete(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "testpeer", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.BgpPeersClientDeleteResponse{ // } }
func (*BgpPeersClient) Get ¶
func (client *BgpPeersClient) Get(ctx context.Context, resourceURI string, bgpPeerName string, options *BgpPeersClientGetOptions) (BgpPeersClientGetResponse, error)
Get - Get a BgpPeer If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- bgpPeerName - The name of the BgpPeer
- options - BgpPeersClientGetOptions contains the optional parameters for the BgpPeersClient.Get method.
Example ¶
Generated from example definition: 2024-03-01/BgpPeers_Get.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBgpPeersClient().Get(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "testpeer", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.BgpPeersClientGetResponse{ // BgpPeer: &armcontainerorchestratorruntime.BgpPeer{ // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/bgpPeers/testpeer"), // Name: to.Ptr("testpeer"), // Type: to.Ptr("Microsoft.KubernetesRuntime/BgpPeers"), // Properties: &armcontainerorchestratorruntime.BgpPeerProperties{ // ProvisioningState: to.Ptr(armcontainerorchestratorruntime.ProvisioningStateSucceeded), // MyAsn: to.Ptr[int32](64500), // PeerAsn: to.Ptr[int32](64501), // PeerAddress: to.Ptr("10.0.0.1"), // }, // }, // } }
func (*BgpPeersClient) NewListPager ¶
func (client *BgpPeersClient) NewListPager(resourceURI string, options *BgpPeersClientListOptions) *runtime.Pager[BgpPeersClientListResponse]
NewListPager - List BgpPeer resources by parent
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- options - BgpPeersClientListOptions contains the optional parameters for the BgpPeersClient.NewListPager method.
Example ¶
Generated from example definition: 2024-03-01/BgpPeers_List.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBgpPeersClient().NewListPager("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page = armcontainerorchestratorruntime.BgpPeersClientListResponse{ // BgpPeerListResult: armcontainerorchestratorruntime.BgpPeerListResult{ // Value: []*armcontainerorchestratorruntime.BgpPeer{ // { // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/bgpPeers/testpeer"), // Name: to.Ptr("testpeer"), // Type: to.Ptr("Microsoft.KubernetesRuntime/BgpPeers"), // Properties: &armcontainerorchestratorruntime.BgpPeerProperties{ // ProvisioningState: to.Ptr(armcontainerorchestratorruntime.ProvisioningStateSucceeded), // MyAsn: to.Ptr[int32](64500), // PeerAsn: to.Ptr[int32](64501), // PeerAddress: to.Ptr("10.0.0.1"), // }, // }, // }, // }, // } } }
type BgpPeersClientBeginCreateOrUpdateOptions ¶
type BgpPeersClientBeginCreateOrUpdateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
BgpPeersClientBeginCreateOrUpdateOptions contains the optional parameters for the BgpPeersClient.BeginCreateOrUpdate method.
type BgpPeersClientCreateOrUpdateResponse ¶
type BgpPeersClientCreateOrUpdateResponse struct { // A BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) BgpPeer }
BgpPeersClientCreateOrUpdateResponse contains the response from method BgpPeersClient.BeginCreateOrUpdate.
type BgpPeersClientDeleteOptions ¶
type BgpPeersClientDeleteOptions struct { }
BgpPeersClientDeleteOptions contains the optional parameters for the BgpPeersClient.Delete method.
type BgpPeersClientDeleteResponse ¶
type BgpPeersClientDeleteResponse struct { }
BgpPeersClientDeleteResponse contains the response from method BgpPeersClient.Delete.
type BgpPeersClientGetOptions ¶
type BgpPeersClientGetOptions struct { }
BgpPeersClientGetOptions contains the optional parameters for the BgpPeersClient.Get method.
type BgpPeersClientGetResponse ¶
type BgpPeersClientGetResponse struct { // A BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) BgpPeer }
BgpPeersClientGetResponse contains the response from method BgpPeersClient.Get.
type BgpPeersClientListOptions ¶
type BgpPeersClientListOptions struct { }
BgpPeersClientListOptions contains the optional parameters for the BgpPeersClient.NewListPager method.
type BgpPeersClientListResponse ¶
type BgpPeersClientListResponse struct { // The response of a BgpPeer list operation. BgpPeerListResult }
BgpPeersClientListResponse contains the response from method BgpPeersClient.NewListPager.
type BlobStorageClassTypeProperties ¶
type BlobStorageClassTypeProperties struct { // REQUIRED; Azure Storage Account Key AzureStorageAccountKey *string // REQUIRED; Azure Storage Account Name AzureStorageAccountName *string // CONSTANT; Blob StorageClass // Field has constant value SCTypeBlob, any specified value is ignored. Type *SCType }
BlobStorageClassTypeProperties - The properties of Blob StorageClass
func (*BlobStorageClassTypeProperties) GetStorageClassTypeProperties ¶
func (b *BlobStorageClassTypeProperties) GetStorageClassTypeProperties() *StorageClassTypeProperties
GetStorageClassTypeProperties implements the StorageClassTypePropertiesClassification interface for type BlobStorageClassTypeProperties.
func (BlobStorageClassTypeProperties) MarshalJSON ¶
func (b BlobStorageClassTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobStorageClassTypeProperties.
func (*BlobStorageClassTypeProperties) UnmarshalJSON ¶
func (b *BlobStorageClassTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BlobStorageClassTypeProperties.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewBgpPeersClient ¶
func (c *ClientFactory) NewBgpPeersClient() *BgpPeersClient
NewBgpPeersClient creates a new instance of BgpPeersClient.
func (*ClientFactory) NewLoadBalancersClient ¶
func (c *ClientFactory) NewLoadBalancersClient() *LoadBalancersClient
NewLoadBalancersClient creates a new instance of LoadBalancersClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewServicesClient ¶
func (c *ClientFactory) NewServicesClient() *ServicesClient
NewServicesClient creates a new instance of ServicesClient.
func (*ClientFactory) NewStorageClassClient ¶
func (c *ClientFactory) NewStorageClassClient() *StorageClassClient
NewStorageClassClient creates a new instance of StorageClassClient.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The kind of entity that created the resource.
const ( // CreatedByTypeApplication - The entity was created by an application. CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey - The entity was created by a key. CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity - The entity was created by a managed identity. CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser - The entity was created by a user. CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type DataResilienceTier ¶
type DataResilienceTier string
DataResilienceTier - Data resilience tier of a storage class
const ( // DataResilienceTierDataResilient - Data resilient DataResilienceTierDataResilient DataResilienceTier = "DataResilient" // DataResilienceTierNotDataResilient - Not data resilient DataResilienceTierNotDataResilient DataResilienceTier = "NotDataResilient" )
func PossibleDataResilienceTierValues ¶
func PossibleDataResilienceTierValues() []DataResilienceTier
PossibleDataResilienceTierValues returns the possible values for the DataResilienceTier const type.
type FailoverTier ¶
type FailoverTier string
FailoverTier - Failover tier of a storage class
const ( // FailoverTierFast - Fast Failover Tier FailoverTierFast FailoverTier = "Fast" // FailoverTierNotAvailable - Not available Failover Tier FailoverTierNotAvailable FailoverTier = "NotAvailable" // FailoverTierSlow - Slow Failover Tier FailoverTierSlow FailoverTier = "Slow" // FailoverTierSuper - Super Failover Tier FailoverTierSuper FailoverTier = "Super" )
func PossibleFailoverTierValues ¶
func PossibleFailoverTierValues() []FailoverTier
PossibleFailoverTierValues returns the possible values for the FailoverTier const type.
type LoadBalancer ¶
type LoadBalancer struct { // The resource-specific properties for this resource. Properties *LoadBalancerProperties // READ-ONLY; The name of the LoadBalancer Name *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
LoadBalancer - A LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters)
func (LoadBalancer) MarshalJSON ¶
func (l LoadBalancer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancer.
func (*LoadBalancer) UnmarshalJSON ¶
func (l *LoadBalancer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancer.
type LoadBalancerListResult ¶
type LoadBalancerListResult struct { // REQUIRED; The LoadBalancer items on this page Value []*LoadBalancer // The link to the next page of items NextLink *string }
LoadBalancerListResult - The response of a LoadBalancer list operation.
func (LoadBalancerListResult) MarshalJSON ¶
func (l LoadBalancerListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancerListResult.
func (*LoadBalancerListResult) UnmarshalJSON ¶
func (l *LoadBalancerListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerListResult.
type LoadBalancerProperties ¶
type LoadBalancerProperties struct { // REQUIRED; IP Range Addresses []*string // REQUIRED; Advertise Mode AdvertiseMode *AdvertiseMode // The list of BGP peers it should advertise to. Null or empty means to advertise to all peers. BgpPeers []*string // A dynamic label mapping to select related services. For instance, if you want to create a load balancer only for services // with label "a=b", then please specify {"a": "b"} in the field. ServiceSelector map[string]*string // READ-ONLY; Resource provision state ProvisioningState *ProvisioningState }
LoadBalancerProperties - Details of the LoadBalancer.
func (LoadBalancerProperties) MarshalJSON ¶
func (l LoadBalancerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancerProperties.
func (*LoadBalancerProperties) UnmarshalJSON ¶
func (l *LoadBalancerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerProperties.
type LoadBalancersClient ¶
type LoadBalancersClient struct {
// contains filtered or unexported fields
}
LoadBalancersClient contains the methods for the LoadBalancers group. Don't use this type directly, use NewLoadBalancersClient() instead.
func NewLoadBalancersClient ¶
func NewLoadBalancersClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*LoadBalancersClient, error)
NewLoadBalancersClient creates a new instance of LoadBalancersClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*LoadBalancersClient) BeginCreateOrUpdate ¶
func (client *LoadBalancersClient) BeginCreateOrUpdate(ctx context.Context, resourceURI string, loadBalancerName string, resource LoadBalancer, options *LoadBalancersClientBeginCreateOrUpdateOptions) (*runtime.Poller[LoadBalancersClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a LoadBalancer If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- loadBalancerName - The name of the LoadBalancer
- resource - Resource create parameters.
- options - LoadBalancersClientBeginCreateOrUpdateOptions contains the optional parameters for the LoadBalancersClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: 2024-03-01/LoadBalancers_CreateOrUpdate.json
package main import ( "context" "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/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewLoadBalancersClient().BeginCreateOrUpdate(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "testlb", armcontainerorchestratorruntime.LoadBalancer{ Properties: &armcontainerorchestratorruntime.LoadBalancerProperties{ Addresses: []*string{ to.Ptr("192.168.50.1/24"), to.Ptr("192.168.51.2-192.168.51.10"), }, ServiceSelector: map[string]*string{ "app": to.Ptr("frontend"), }, AdvertiseMode: to.Ptr(armcontainerorchestratorruntime.AdvertiseModeARP), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.LoadBalancersClientCreateOrUpdateResponse{ // LoadBalancer: &armcontainerorchestratorruntime.LoadBalancer{ // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/loadBalancers/testlb"), // Name: to.Ptr("testlb"), // Type: to.Ptr("Microsoft.KubernetesRuntime/loadBalancers"), // Properties: &armcontainerorchestratorruntime.LoadBalancerProperties{ // ProvisioningState: to.Ptr(armcontainerorchestratorruntime.ProvisioningStateSucceeded), // Addresses: []*string{ // to.Ptr("192.168.50.1/24"), // to.Ptr("192.168.51.2-192.168.51.10"), // }, // ServiceSelector: map[string]*string{ // "app": to.Ptr("frontend"), // }, // AdvertiseMode: to.Ptr(armcontainerorchestratorruntime.AdvertiseModeARP), // }, // }, // } }
func (*LoadBalancersClient) Delete ¶
func (client *LoadBalancersClient) Delete(ctx context.Context, resourceURI string, loadBalancerName string, options *LoadBalancersClientDeleteOptions) (LoadBalancersClientDeleteResponse, error)
Delete - Delete a LoadBalancer If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- loadBalancerName - The name of the LoadBalancer
- options - LoadBalancersClientDeleteOptions contains the optional parameters for the LoadBalancersClient.Delete method.
Example ¶
Generated from example definition: 2024-03-01/LoadBalancers_Delete.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewLoadBalancersClient().Delete(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "testlb", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.LoadBalancersClientDeleteResponse{ // } }
func (*LoadBalancersClient) Get ¶
func (client *LoadBalancersClient) Get(ctx context.Context, resourceURI string, loadBalancerName string, options *LoadBalancersClientGetOptions) (LoadBalancersClientGetResponse, error)
Get - Get a LoadBalancer If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- loadBalancerName - The name of the LoadBalancer
- options - LoadBalancersClientGetOptions contains the optional parameters for the LoadBalancersClient.Get method.
Example ¶
Generated from example definition: 2024-03-01/LoadBalancers_Get.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewLoadBalancersClient().Get(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "testlb", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.LoadBalancersClientGetResponse{ // LoadBalancer: &armcontainerorchestratorruntime.LoadBalancer{ // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/loadBalancers/testlb"), // Name: to.Ptr("testlb"), // Type: to.Ptr("Microsoft.KubernetesRuntime/loadBalancers"), // Properties: &armcontainerorchestratorruntime.LoadBalancerProperties{ // ProvisioningState: to.Ptr(armcontainerorchestratorruntime.ProvisioningStateSucceeded), // Addresses: []*string{ // to.Ptr("192.168.50.1/24"), // to.Ptr("192.168.51.2-192.168.51.10"), // }, // ServiceSelector: map[string]*string{ // "app": to.Ptr("frontend"), // }, // AdvertiseMode: to.Ptr(armcontainerorchestratorruntime.AdvertiseModeARP), // BgpPeers: []*string{ // to.Ptr("bgpPeer1"), // }, // }, // }, // } }
func (*LoadBalancersClient) NewListPager ¶
func (client *LoadBalancersClient) NewListPager(resourceURI string, options *LoadBalancersClientListOptions) *runtime.Pager[LoadBalancersClientListResponse]
NewListPager - List LoadBalancer resources by parent
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- options - LoadBalancersClientListOptions contains the optional parameters for the LoadBalancersClient.NewListPager method.
Example ¶
Generated from example definition: 2024-03-01/LoadBalancers_List.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewLoadBalancersClient().NewListPager("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page = armcontainerorchestratorruntime.LoadBalancersClientListResponse{ // LoadBalancerListResult: armcontainerorchestratorruntime.LoadBalancerListResult{ // Value: []*armcontainerorchestratorruntime.LoadBalancer{ // { // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/loadBalancers/testlb"), // Name: to.Ptr("testlb"), // Type: to.Ptr("Microsoft.KubernetesRuntime/loadBalancers"), // Properties: &armcontainerorchestratorruntime.LoadBalancerProperties{ // ProvisioningState: to.Ptr(armcontainerorchestratorruntime.ProvisioningStateSucceeded), // Addresses: []*string{ // to.Ptr("192.168.50.1/24"), // to.Ptr("192.168.51.2-192.168.51.10"), // }, // ServiceSelector: map[string]*string{ // "app": to.Ptr("frontend"), // }, // AdvertiseMode: to.Ptr(armcontainerorchestratorruntime.AdvertiseModeARP), // }, // }, // }, // }, // } } }
type LoadBalancersClientBeginCreateOrUpdateOptions ¶
type LoadBalancersClientBeginCreateOrUpdateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
LoadBalancersClientBeginCreateOrUpdateOptions contains the optional parameters for the LoadBalancersClient.BeginCreateOrUpdate method.
type LoadBalancersClientCreateOrUpdateResponse ¶
type LoadBalancersClientCreateOrUpdateResponse struct { // A LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) LoadBalancer }
LoadBalancersClientCreateOrUpdateResponse contains the response from method LoadBalancersClient.BeginCreateOrUpdate.
type LoadBalancersClientDeleteOptions ¶
type LoadBalancersClientDeleteOptions struct { }
LoadBalancersClientDeleteOptions contains the optional parameters for the LoadBalancersClient.Delete method.
type LoadBalancersClientDeleteResponse ¶
type LoadBalancersClientDeleteResponse struct { }
LoadBalancersClientDeleteResponse contains the response from method LoadBalancersClient.Delete.
type LoadBalancersClientGetOptions ¶
type LoadBalancersClientGetOptions struct { }
LoadBalancersClientGetOptions contains the optional parameters for the LoadBalancersClient.Get method.
type LoadBalancersClientGetResponse ¶
type LoadBalancersClientGetResponse struct { // A LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) LoadBalancer }
LoadBalancersClientGetResponse contains the response from method LoadBalancersClient.Get.
type LoadBalancersClientListOptions ¶
type LoadBalancersClientListOptions struct { }
LoadBalancersClientListOptions contains the optional parameters for the LoadBalancersClient.NewListPager method.
type LoadBalancersClientListResponse ¶
type LoadBalancersClientListResponse struct { // The response of a LoadBalancer list operation. LoadBalancerListResult }
LoadBalancersClientListResponse contains the response from method LoadBalancersClient.NewListPager.
type NativeStorageClassTypeProperties ¶
type NativeStorageClassTypeProperties struct { // CONSTANT; Native StorageClass // Field has constant value SCTypeNative, any specified value is ignored. Type *SCType }
NativeStorageClassTypeProperties - The properties of Native StorageClass
func (*NativeStorageClassTypeProperties) GetStorageClassTypeProperties ¶
func (n *NativeStorageClassTypeProperties) GetStorageClassTypeProperties() *StorageClassTypeProperties
GetStorageClassTypeProperties implements the StorageClassTypePropertiesClassification interface for type NativeStorageClassTypeProperties.
func (NativeStorageClassTypeProperties) MarshalJSON ¶
func (n NativeStorageClassTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NativeStorageClassTypeProperties.
func (*NativeStorageClassTypeProperties) UnmarshalJSON ¶
func (n *NativeStorageClassTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NativeStorageClassTypeProperties.
type NfsDirectoryActionOnVolumeDeletion ¶
type NfsDirectoryActionOnVolumeDeletion string
NfsDirectoryActionOnVolumeDeletion - The action to take when a NFS volume is deleted
const ( // NfsDirectoryActionOnVolumeDeletionDelete - When the volume is deleted, delete the directory NfsDirectoryActionOnVolumeDeletionDelete NfsDirectoryActionOnVolumeDeletion = "Delete" // NfsDirectoryActionOnVolumeDeletionRetain - When the volume is deleted, retain the directory NfsDirectoryActionOnVolumeDeletionRetain NfsDirectoryActionOnVolumeDeletion = "Retain" )
func PossibleNfsDirectoryActionOnVolumeDeletionValues ¶
func PossibleNfsDirectoryActionOnVolumeDeletionValues() []NfsDirectoryActionOnVolumeDeletion
PossibleNfsDirectoryActionOnVolumeDeletionValues returns the possible values for the NfsDirectoryActionOnVolumeDeletion const type.
type NfsStorageClassTypeProperties ¶
type NfsStorageClassTypeProperties struct { // REQUIRED; NFS Server Server *string Share *string // CONSTANT; NFS StorageClass // Field has constant value SCTypeNFS, any specified value is ignored. Type *SCType // Mounted folder permissions. Default is 0. If set as non-zero, driver will perform `chmod` after mount MountPermissions *string // The action to take when a NFS volume is deleted. Default is Delete OnDelete *NfsDirectoryActionOnVolumeDeletion // Sub directory under share. If the sub directory doesn't exist, driver will create it SubDir *string }
NfsStorageClassTypeProperties - The properties of NFS StorageClass
func (*NfsStorageClassTypeProperties) GetStorageClassTypeProperties ¶
func (n *NfsStorageClassTypeProperties) GetStorageClassTypeProperties() *StorageClassTypeProperties
GetStorageClassTypeProperties implements the StorageClassTypePropertiesClassification interface for type NfsStorageClassTypeProperties.
func (NfsStorageClassTypeProperties) MarshalJSON ¶
func (n NfsStorageClassTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NfsStorageClassTypeProperties.
func (*NfsStorageClassTypeProperties) UnmarshalJSON ¶
func (n *NfsStorageClassTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NfsStorageClassTypeProperties.
type Operation ¶
type Operation struct { // Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. ActionType *ActionType // READ-ONLY; Localized display information for this particular operation. Display *OperationDisplay // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure // Resource Manager/control-plane operations. IsDataAction *bool // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" Name *string // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" Origin *Origin }
Operation - Details of a REST API operation, returned from the Resource Provider Operations API
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. Description *string // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". Operation *string // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". Provider *string // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". Resource *string }
OperationDisplay - Localized display information for and operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // REQUIRED; The Operation items on this page Value []*Operation // The link to the next page of items NextLink *string }
OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - List the operations for the provider
Generated from API version 2024-03-01
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: 2024-03-01/Operations_List.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewOperationsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page = armcontainerorchestratorruntime.OperationsClientListResponse{ // OperationListResult: armcontainerorchestratorruntime.OperationListResult{ // Value: []*armcontainerorchestratorruntime.Operation{ // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Register the subscription for Microsoft.KubernetesRuntime"), // Operation: to.Ptr("Register the Microsoft.KubernetesRuntime"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("Microsoft.KubernetesRuntime"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/register/action"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Unregister the subscription for Microsoft.KubernetesRuntime"), // Operation: to.Ptr("Unregister the Microsoft.KubernetesRuntime"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("Microsoft.KubernetesRuntime"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/unregister/action"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("read operations"), // Operation: to.Ptr("read_operations"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("operations"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/operations/read"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("read operationStatuses"), // Operation: to.Ptr("read_operationStatuses"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("locations/operationStatuses"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/locations/operationStatuses/read"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("write operationStatuses"), // Operation: to.Ptr("write_operationStatuses"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("locations/operationStatuses"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/locations/operationStatuses/write"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("List StorageClassResource resources by parent"), // Operation: to.Ptr("StorageClass_List"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("storageClasses"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/storageClasses/read"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Get a StorageClassResource"), // Operation: to.Ptr("StorageClass_Get"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("storageClasses"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/storageClasses/read"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Create a StorageClassResource"), // Operation: to.Ptr("StorageClass_CreateOrUpdate"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("storageClasses"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/storageClasses/write"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Delete a StorageClassResource"), // Operation: to.Ptr("StorageClass_Delete"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("storageClasses"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/storageClasses/delete"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Update a StorageClassResource"), // Operation: to.Ptr("StorageClass_Update"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("storageClasses"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/storageClasses/write"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("List ServiceResource resources by parent"), // Operation: to.Ptr("Services_List"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("services"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/services/read"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Get a ServiceResource"), // Operation: to.Ptr("Services_Get"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("services"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/services/read"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Create a ServiceResource"), // Operation: to.Ptr("Services_CreateOrUpdate"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("services"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/services/write"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Delete a ServiceResource"), // Operation: to.Ptr("Services_Delete"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("services"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/services/delete"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("List LoadBalancer resources by parent"), // Operation: to.Ptr("LoadBalancers_List"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("loadBalancers"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/loadBalancers/read"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Get a LoadBalancer"), // Operation: to.Ptr("LoadBalancers_Get"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("loadBalancers"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/loadBalancers/read"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Create a LoadBalancer"), // Operation: to.Ptr("LoadBalancers_CreateOrUpdate"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("loadBalancers"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/loadBalancers/write"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Delete a LoadBalancer"), // Operation: to.Ptr("LoadBalancers_Delete"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("loadBalancers"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/loadBalancers/delete"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("List BgpPeer resources by parent"), // Operation: to.Ptr("BgpPeers_List"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("bgpPeers"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/bgpPeers/read"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Get a BgpPeer"), // Operation: to.Ptr("BgpPeers_Get"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("bgpPeers"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/bgpPeers/read"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Create a BgpPeer"), // Operation: to.Ptr("BgpPeers_CreateOrUpdate"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("bgpPeers"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/bgpPeers/write"), // }, // { // Display: &armcontainerorchestratorruntime.OperationDisplay{ // Description: to.Ptr("Delete a BgpPeer"), // Operation: to.Ptr("BgpPeers_Delete"), // Provider: to.Ptr("Microsoft.KubernetesRuntime"), // Resource: to.Ptr("bgpPeers"), // }, // IsDataAction: to.Ptr(false), // Name: to.Ptr("Microsoft.KubernetesRuntime/bgpPeers/delete"), // }, // }, // }, // } } }
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct { // A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. OperationListResult }
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type Origin ¶
type Origin string
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
const ( // OriginSystem - Indicates the operation is initiated by a system. OriginSystem Origin = "system" // OriginUser - Indicates the operation is initiated by a user. OriginUser Origin = "user" // OriginUserSystem - Indicates the operation is initiated by a user or system. OriginUserSystem Origin = "user,system" )
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type PerformanceTier ¶
type PerformanceTier string
PerformanceTier - Performance tier of a storage class
const ( // PerformanceTierBasic - Basic Performance Tier PerformanceTierBasic PerformanceTier = "Basic" // PerformanceTierPremium - Premium Performance Tier PerformanceTierPremium PerformanceTier = "Premium" // PerformanceTierStandard - Standard Performance Tier PerformanceTierStandard PerformanceTier = "Standard" // PerformanceTierUltra - Ultra Performance Tier PerformanceTierUltra PerformanceTier = "Ultra" // PerformanceTierUndefined - Undefined Performance Tier PerformanceTierUndefined PerformanceTier = "Undefined" )
func PossiblePerformanceTierValues ¶
func PossiblePerformanceTierValues() []PerformanceTier
PossiblePerformanceTierValues returns the possible values for the PerformanceTier const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - The status of the current operation.
const ( // ProvisioningStateAccepted - Change accepted for processing ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCanceled - Resource creation was canceled. ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateDeleting - Deletion in progress ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed - Resource creation failed. ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateProvisioning - Initial provisioning in progress ProvisioningStateProvisioning ProvisioningState = "Provisioning" // ProvisioningStateSucceeded - Resource has been created. ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUpdating - Update in progress ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type RwxStorageClassTypeProperties ¶
type RwxStorageClassTypeProperties struct { // REQUIRED; The backing storageclass used to create new storageclass BackingStorageClassName *string // CONSTANT; RWX StorageClass // Field has constant value SCTypeRWX, any specified value is ignored. Type *SCType }
RwxStorageClassTypeProperties - The properties of RWX StorageClass
func (*RwxStorageClassTypeProperties) GetStorageClassTypeProperties ¶
func (r *RwxStorageClassTypeProperties) GetStorageClassTypeProperties() *StorageClassTypeProperties
GetStorageClassTypeProperties implements the StorageClassTypePropertiesClassification interface for type RwxStorageClassTypeProperties.
func (RwxStorageClassTypeProperties) MarshalJSON ¶
func (r RwxStorageClassTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RwxStorageClassTypeProperties.
func (*RwxStorageClassTypeProperties) UnmarshalJSON ¶
func (r *RwxStorageClassTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RwxStorageClassTypeProperties.
type SCType ¶
type SCType string
SCType - Type of a storage class
const ( // SCTypeBlob - Blob storage class SCTypeBlob SCType = "Blob" // SCTypeNFS - NFS storage class SCTypeNFS SCType = "NFS" // SCTypeNative - Native storage class SCTypeNative SCType = "Native" // SCTypeRWX - RWX storage class SCTypeRWX SCType = "RWX" // SCTypeSMB - SMB storage class SCTypeSMB SCType = "SMB" )
func PossibleSCTypeValues ¶
func PossibleSCTypeValues() []SCType
PossibleSCTypeValues returns the possible values for the SCType const type.
type ServiceProperties ¶
type ServiceProperties struct { // READ-ONLY; Resource provision state ProvisioningState *ProvisioningState // READ-ONLY; The object id of the service principal of the RP provisioned in the tenant RpObjectID *string }
ServiceProperties - Properties for the service resource
func (ServiceProperties) MarshalJSON ¶
func (s ServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceProperties.
func (*ServiceProperties) UnmarshalJSON ¶
func (s *ServiceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceProperties.
type ServiceResource ¶
type ServiceResource struct { // The resource-specific properties for this resource. Properties *ServiceProperties // READ-ONLY; The name of the the service Name *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
ServiceResource - A Service resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters)
func (ServiceResource) MarshalJSON ¶
func (s ServiceResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceResource.
func (*ServiceResource) UnmarshalJSON ¶
func (s *ServiceResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceResource.
type ServiceResourceListResult ¶
type ServiceResourceListResult struct { // REQUIRED; The ServiceResource items on this page Value []*ServiceResource // The link to the next page of items NextLink *string }
ServiceResourceListResult - The response of a ServiceResource list operation.
func (ServiceResourceListResult) MarshalJSON ¶
func (s ServiceResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceResourceListResult.
func (*ServiceResourceListResult) UnmarshalJSON ¶
func (s *ServiceResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceResourceListResult.
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(credential azcore.TokenCredential, options *arm.ClientOptions) (*ServicesClient, error)
NewServicesClient creates a new instance of ServicesClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ServicesClient) CreateOrUpdate ¶
func (client *ServicesClient) CreateOrUpdate(ctx context.Context, resourceURI string, serviceName string, resource ServiceResource, options *ServicesClientCreateOrUpdateOptions) (ServicesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create a ServiceResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- serviceName - The name of the the service
- resource - Resource create parameters.
- options - ServicesClientCreateOrUpdateOptions contains the optional parameters for the ServicesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: 2024-03-01/Services_CreateOrUpdate.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServicesClient().CreateOrUpdate(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "storageclass", armcontainerorchestratorruntime.ServiceResource{ Properties: &armcontainerorchestratorruntime.ServiceProperties{}, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.ServicesClientCreateOrUpdateResponse{ // ServiceResource: &armcontainerorchestratorruntime.ServiceResource{ // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/services/storageclass"), // Name: to.Ptr("storageclass"), // Type: to.Ptr("Microsoft.KubernetesRuntime/services"), // Properties: &armcontainerorchestratorruntime.ServiceProperties{ // RpObjectID: to.Ptr("00000000-1111-2222-3333-444444444444"), // }, // }, // } }
func (*ServicesClient) Delete ¶
func (client *ServicesClient) Delete(ctx context.Context, resourceURI string, serviceName string, options *ServicesClientDeleteOptions) (ServicesClientDeleteResponse, error)
Delete - Delete a ServiceResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- serviceName - The name of the the service
- options - ServicesClientDeleteOptions contains the optional parameters for the ServicesClient.Delete method.
Example ¶
Generated from example definition: 2024-03-01/Services_Delete.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServicesClient().Delete(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "storageclass", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.ServicesClientDeleteResponse{ // } }
func (*ServicesClient) Get ¶
func (client *ServicesClient) Get(ctx context.Context, resourceURI string, serviceName string, options *ServicesClientGetOptions) (ServicesClientGetResponse, error)
Get - Get a ServiceResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- serviceName - The name of the the service
- options - ServicesClientGetOptions contains the optional parameters for the ServicesClient.Get method.
Example ¶
Generated from example definition: 2024-03-01/Services_Get.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServicesClient().Get(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "storageclass", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.ServicesClientGetResponse{ // ServiceResource: &armcontainerorchestratorruntime.ServiceResource{ // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/services/storageclass"), // Name: to.Ptr("storageclass"), // Type: to.Ptr("Microsoft.KubernetesRuntime/services"), // Properties: &armcontainerorchestratorruntime.ServiceProperties{ // RpObjectID: to.Ptr("00000000-1111-2222-3333-444444444444"), // }, // }, // } }
func (*ServicesClient) NewListPager ¶
func (client *ServicesClient) NewListPager(resourceURI string, options *ServicesClientListOptions) *runtime.Pager[ServicesClientListResponse]
NewListPager - List ServiceResource resources by parent
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- options - ServicesClientListOptions contains the optional parameters for the ServicesClient.NewListPager method.
Example ¶
Generated from example definition: 2024-03-01/Services_List.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServicesClient().NewListPager("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page = armcontainerorchestratorruntime.ServicesClientListResponse{ // ServiceResourceListResult: armcontainerorchestratorruntime.ServiceResourceListResult{ // Value: []*armcontainerorchestratorruntime.ServiceResource{ // { // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/services/storageclass"), // Name: to.Ptr("storageclass"), // Type: to.Ptr("Microsoft.KubernetesRuntime/Services"), // Properties: &armcontainerorchestratorruntime.ServiceProperties{ // RpObjectID: to.Ptr("00000000-1111-2222-3333-444444444444"), // }, // }, // }, // }, // } } }
type ServicesClientCreateOrUpdateOptions ¶
type ServicesClientCreateOrUpdateOptions struct { }
ServicesClientCreateOrUpdateOptions contains the optional parameters for the ServicesClient.CreateOrUpdate method.
type ServicesClientCreateOrUpdateResponse ¶
type ServicesClientCreateOrUpdateResponse struct { // A Service resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) ServiceResource }
ServicesClientCreateOrUpdateResponse contains the response from method ServicesClient.CreateOrUpdate.
type ServicesClientDeleteOptions ¶
type ServicesClientDeleteOptions struct { }
ServicesClientDeleteOptions contains the optional parameters for the ServicesClient.Delete method.
type ServicesClientDeleteResponse ¶
type ServicesClientDeleteResponse struct { }
ServicesClientDeleteResponse contains the response from method ServicesClient.Delete.
type ServicesClientGetOptions ¶
type ServicesClientGetOptions struct { }
ServicesClientGetOptions contains the optional parameters for the ServicesClient.Get method.
type ServicesClientGetResponse ¶
type ServicesClientGetResponse struct { // A Service resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) ServiceResource }
ServicesClientGetResponse contains the response from method ServicesClient.Get.
type ServicesClientListOptions ¶
type ServicesClientListOptions struct { }
ServicesClientListOptions contains the optional parameters for the ServicesClient.NewListPager method.
type ServicesClientListResponse ¶
type ServicesClientListResponse struct { // The response of a ServiceResource list operation. ServiceResourceListResult }
ServicesClientListResponse contains the response from method ServicesClient.NewListPager.
type SmbStorageClassTypeProperties ¶
type SmbStorageClassTypeProperties struct { // REQUIRED; SMB Source Source *string // CONSTANT; SMB StorageClass // Field has constant value SCTypeSMB, any specified value is ignored. Type *SCType // Server domain Domain *string // Server password Password *string // Sub directory under share. If the sub directory doesn't exist, driver will create it SubDir *string // Server username Username *string }
SmbStorageClassTypeProperties - The properties of SMB StorageClass
func (*SmbStorageClassTypeProperties) GetStorageClassTypeProperties ¶
func (s *SmbStorageClassTypeProperties) GetStorageClassTypeProperties() *StorageClassTypeProperties
GetStorageClassTypeProperties implements the StorageClassTypePropertiesClassification interface for type SmbStorageClassTypeProperties.
func (SmbStorageClassTypeProperties) MarshalJSON ¶
func (s SmbStorageClassTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SmbStorageClassTypeProperties.
func (*SmbStorageClassTypeProperties) UnmarshalJSON ¶
func (s *SmbStorageClassTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SmbStorageClassTypeProperties.
type StorageClassClient ¶
type StorageClassClient struct {
// contains filtered or unexported fields
}
StorageClassClient contains the methods for the StorageClass group. Don't use this type directly, use NewStorageClassClient() instead.
func NewStorageClassClient ¶
func NewStorageClassClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*StorageClassClient, error)
NewStorageClassClient creates a new instance of StorageClassClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*StorageClassClient) BeginCreateOrUpdate ¶
func (client *StorageClassClient) BeginCreateOrUpdate(ctx context.Context, resourceURI string, storageClassName string, resource StorageClassResource, options *StorageClassClientBeginCreateOrUpdateOptions) (*runtime.Poller[StorageClassClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a StorageClassResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- storageClassName - The name of the the storage class
- resource - Resource create parameters.
- options - StorageClassClientBeginCreateOrUpdateOptions contains the optional parameters for the StorageClassClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: 2024-03-01/StorageClass_CreateOrUpdate.json
package main import ( "context" "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/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewStorageClassClient().BeginCreateOrUpdate(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "testrwx", armcontainerorchestratorruntime.StorageClassResource{ Properties: &armcontainerorchestratorruntime.StorageClassProperties{ TypeProperties: &armcontainerorchestratorruntime.RwxStorageClassTypeProperties{ Type: to.Ptr(armcontainerorchestratorruntime.SCType("RWX")), BackingStorageClassName: to.Ptr("default"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.StorageClassClientCreateOrUpdateResponse{ // StorageClassResource: &armcontainerorchestratorruntime.StorageClassResource{ // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/storageclasses/testrwx"), // Name: to.Ptr("testrwx"), // Type: to.Ptr("microsoft.kubernetesruntime/storageclass"), // Properties: &armcontainerorchestratorruntime.StorageClassProperties{ // Performance: to.Ptr(armcontainerorchestratorruntime.PerformanceTierBasic), // TypeProperties: &armcontainerorchestratorruntime.RwxStorageClassTypeProperties{ // Type: to.Ptr("RWX"), // BackingStorageClassName: to.Ptr("default"), // }, // AccessModes: []*armcontainerorchestratorruntime.AccessMode{ // to.Ptr(armcontainerorchestratorruntime.AccessModeReadWriteOnce), // to.Ptr(armcontainerorchestratorruntime.AccessModeReadWriteMany), // }, // AllowVolumeExpansion: to.Ptr(armcontainerorchestratorruntime.VolumeExpansionAllow), // Provisioner: to.Ptr("rwx.csi.microsoft.com"), // VolumeBindingMode: to.Ptr(armcontainerorchestratorruntime.VolumeBindingModeImmediate), // }, // }, // } }
func (*StorageClassClient) BeginDelete ¶
func (client *StorageClassClient) BeginDelete(ctx context.Context, resourceURI string, storageClassName string, options *StorageClassClientBeginDeleteOptions) (*runtime.Poller[StorageClassClientDeleteResponse], error)
BeginDelete - Delete a StorageClassResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- storageClassName - The name of the the storage class
- options - StorageClassClientBeginDeleteOptions contains the optional parameters for the StorageClassClient.BeginDelete method.
Example ¶
Generated from example definition: 2024-03-01/StorageClass_Delete.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewStorageClassClient().BeginDelete(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "testrwx", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
func (*StorageClassClient) BeginUpdate ¶
func (client *StorageClassClient) BeginUpdate(ctx context.Context, resourceURI string, storageClassName string, properties StorageClassResourceUpdate, options *StorageClassClientBeginUpdateOptions) (*runtime.Poller[StorageClassClientUpdateResponse], error)
BeginUpdate - Update a StorageClassResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- storageClassName - The name of the the storage class
- properties - The resource properties to be updated.
- options - StorageClassClientBeginUpdateOptions contains the optional parameters for the StorageClassClient.BeginUpdate method.
Example ¶
Generated from example definition: 2024-03-01/StorageClass_Update.json
package main import ( "context" "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/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewStorageClassClient().BeginUpdate(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "testrwx", armcontainerorchestratorruntime.StorageClassResourceUpdate{ Properties: &armcontainerorchestratorruntime.StorageClassPropertiesUpdate{ TypeProperties: &armcontainerorchestratorruntime.StorageClassTypePropertiesUpdate{ BackingStorageClassName: to.Ptr("default"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.StorageClassClientUpdateResponse{ // StorageClassResource: &armcontainerorchestratorruntime.StorageClassResource{ // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/storageclasses/testrwx"), // Name: to.Ptr("testrwx"), // Type: to.Ptr("microsoft.kubernetesruntime/storageclass"), // Properties: &armcontainerorchestratorruntime.StorageClassProperties{ // Performance: to.Ptr(armcontainerorchestratorruntime.PerformanceTierBasic), // TypeProperties: &armcontainerorchestratorruntime.RwxStorageClassTypeProperties{ // Type: to.Ptr("RWX"), // BackingStorageClassName: to.Ptr("default"), // }, // AccessModes: []*armcontainerorchestratorruntime.AccessMode{ // to.Ptr(armcontainerorchestratorruntime.AccessModeReadWriteOnce), // to.Ptr(armcontainerorchestratorruntime.AccessModeReadWriteMany), // }, // AllowVolumeExpansion: to.Ptr(armcontainerorchestratorruntime.VolumeExpansionAllow), // Provisioner: to.Ptr("rwx.csi.microsoft.com"), // VolumeBindingMode: to.Ptr(armcontainerorchestratorruntime.VolumeBindingModeImmediate), // }, // }, // } }
func (*StorageClassClient) Get ¶
func (client *StorageClassClient) Get(ctx context.Context, resourceURI string, storageClassName string, options *StorageClassClientGetOptions) (StorageClassClientGetResponse, error)
Get - Get a StorageClassResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- storageClassName - The name of the the storage class
- options - StorageClassClientGetOptions contains the optional parameters for the StorageClassClient.Get method.
Example ¶
Generated from example definition: 2024-03-01/StorageClass_Get.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewStorageClassClient().Get(ctx, "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", "testrwx", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res = armcontainerorchestratorruntime.StorageClassClientGetResponse{ // StorageClassResource: &armcontainerorchestratorruntime.StorageClassResource{ // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/storageclasses/testrwx"), // Name: to.Ptr("testrwx"), // Type: to.Ptr("microsoft.kubernetesruntime/storageclass"), // Properties: &armcontainerorchestratorruntime.StorageClassProperties{ // Performance: to.Ptr(armcontainerorchestratorruntime.PerformanceTierBasic), // TypeProperties: &armcontainerorchestratorruntime.RwxStorageClassTypeProperties{ // Type: to.Ptr("RWX"), // BackingStorageClassName: to.Ptr("default"), // }, // AccessModes: []*armcontainerorchestratorruntime.AccessMode{ // to.Ptr(armcontainerorchestratorruntime.AccessModeReadWriteOnce), // to.Ptr(armcontainerorchestratorruntime.AccessModeReadWriteMany), // }, // AllowVolumeExpansion: to.Ptr(armcontainerorchestratorruntime.VolumeExpansionAllow), // Provisioner: to.Ptr("rwx.csi.microsoft.com"), // VolumeBindingMode: to.Ptr(armcontainerorchestratorruntime.VolumeBindingModeImmediate), // }, // }, // } }
func (*StorageClassClient) NewListPager ¶
func (client *StorageClassClient) NewListPager(resourceURI string, options *StorageClassClientListOptions) *runtime.Pager[StorageClassClientListResponse]
NewListPager - List StorageClassResource resources by parent
Generated from API version 2024-03-01
- resourceURI - The fully qualified Azure Resource manager identifier of the resource.
- options - StorageClassClientListOptions contains the optional parameters for the StorageClassClient.NewListPager method.
Example ¶
Generated from example definition: 2024-03-01/StorageClass_List.json
package main import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime" "log" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewStorageClassClient().NewListPager("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page = armcontainerorchestratorruntime.StorageClassClientListResponse{ // StorageClassResourceListResult: armcontainerorchestratorruntime.StorageClassResourceListResult{ // Value: []*armcontainerorchestratorruntime.StorageClassResource{ // { // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1/providers/Microsoft.KubernetesRuntime/storageclasses/testrwx"), // Name: to.Ptr("testrwx"), // Type: to.Ptr("microsoft.kubernetesruntime/storageclass"), // Properties: &armcontainerorchestratorruntime.StorageClassProperties{ // ProvisioningState: to.Ptr(armcontainerorchestratorruntime.ProvisioningStateSucceeded), // Performance: to.Ptr(armcontainerorchestratorruntime.PerformanceTierBasic), // TypeProperties: &armcontainerorchestratorruntime.RwxStorageClassTypeProperties{ // Type: to.Ptr("RWX"), // BackingStorageClassName: to.Ptr("default"), // }, // AccessModes: []*armcontainerorchestratorruntime.AccessMode{ // to.Ptr(armcontainerorchestratorruntime.AccessModeReadWriteOnce), // to.Ptr(armcontainerorchestratorruntime.AccessModeReadWriteMany), // }, // AllowVolumeExpansion: to.Ptr(armcontainerorchestratorruntime.VolumeExpansionAllow), // Provisioner: to.Ptr("rwx.csi.microsoft.com"), // VolumeBindingMode: to.Ptr(armcontainerorchestratorruntime.VolumeBindingModeImmediate), // }, // }, // }, // }, // } } }
type StorageClassClientBeginCreateOrUpdateOptions ¶
type StorageClassClientBeginCreateOrUpdateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
StorageClassClientBeginCreateOrUpdateOptions contains the optional parameters for the StorageClassClient.BeginCreateOrUpdate method.
type StorageClassClientBeginDeleteOptions ¶
type StorageClassClientBeginDeleteOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
StorageClassClientBeginDeleteOptions contains the optional parameters for the StorageClassClient.BeginDelete method.
type StorageClassClientBeginUpdateOptions ¶
type StorageClassClientBeginUpdateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
StorageClassClientBeginUpdateOptions contains the optional parameters for the StorageClassClient.BeginUpdate method.
type StorageClassClientCreateOrUpdateResponse ¶
type StorageClassClientCreateOrUpdateResponse struct { // A StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) StorageClassResource }
StorageClassClientCreateOrUpdateResponse contains the response from method StorageClassClient.BeginCreateOrUpdate.
type StorageClassClientDeleteResponse ¶
type StorageClassClientDeleteResponse struct { }
StorageClassClientDeleteResponse contains the response from method StorageClassClient.BeginDelete.
type StorageClassClientGetOptions ¶
type StorageClassClientGetOptions struct { }
StorageClassClientGetOptions contains the optional parameters for the StorageClassClient.Get method.
type StorageClassClientGetResponse ¶
type StorageClassClientGetResponse struct { // A StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) StorageClassResource }
StorageClassClientGetResponse contains the response from method StorageClassClient.Get.
type StorageClassClientListOptions ¶
type StorageClassClientListOptions struct { }
StorageClassClientListOptions contains the optional parameters for the StorageClassClient.NewListPager method.
type StorageClassClientListResponse ¶
type StorageClassClientListResponse struct { // The response of a StorageClassResource list operation. StorageClassResourceListResult }
StorageClassClientListResponse contains the response from method StorageClassClient.NewListPager.
type StorageClassClientUpdateResponse ¶
type StorageClassClientUpdateResponse struct { // A StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) StorageClassResource }
StorageClassClientUpdateResponse contains the response from method StorageClassClient.BeginUpdate.
type StorageClassProperties ¶
type StorageClassProperties struct { // REQUIRED; Properties of the StorageClass TypeProperties StorageClassTypePropertiesClassification // The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce] AccessModes []*AccessMode // Volume can be expanded or not AllowVolumeExpansion *VolumeExpansion // Allow single data node failure DataResilience *DataResilienceTier // Failover speed: NA, Slow, Fast FailoverSpeed *FailoverTier // Limitations of the storage class Limitations []*string // Additional mount options MountOptions []*string // Performance tier Performance *PerformanceTier // Selection priority when multiple storage classes meet the criteria. 0: Highest, -1: Never use Priority *int64 // Provisioner name Provisioner *string // Binding mode of volumes: Immediate, WaitForFirstConsumer VolumeBindingMode *VolumeBindingMode // READ-ONLY; Resource provision state ProvisioningState *ProvisioningState }
StorageClassProperties - Details of the StorageClass StorageClass.
func (StorageClassProperties) MarshalJSON ¶
func (s StorageClassProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageClassProperties.
func (*StorageClassProperties) UnmarshalJSON ¶
func (s *StorageClassProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassProperties.
type StorageClassPropertiesUpdate ¶
type StorageClassPropertiesUpdate struct { // The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce] AccessModes []*AccessMode // Volume can be expanded or not AllowVolumeExpansion *VolumeExpansion // Allow single data node failure DataResilience *DataResilienceTier // Failover speed: NA, Slow, Fast FailoverSpeed *FailoverTier // Limitations of the storage class Limitations []*string // Additional mount options MountOptions []*string // Performance tier Performance *PerformanceTier // Selection priority when multiple storage classes meet the criteria. 0: Highest, -1: Never use Priority *int64 // New storage class type of storageClass TypeProperties *StorageClassTypePropertiesUpdate }
StorageClassPropertiesUpdate - The model for updating storageClass properties
func (StorageClassPropertiesUpdate) MarshalJSON ¶
func (s StorageClassPropertiesUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageClassPropertiesUpdate.
func (*StorageClassPropertiesUpdate) UnmarshalJSON ¶
func (s *StorageClassPropertiesUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassPropertiesUpdate.
type StorageClassResource ¶
type StorageClassResource struct { // The resource-specific properties for this resource. Properties *StorageClassProperties // READ-ONLY; The name of the the storage class Name *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
StorageClassResource - A StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters)
func (StorageClassResource) MarshalJSON ¶
func (s StorageClassResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageClassResource.
func (*StorageClassResource) UnmarshalJSON ¶
func (s *StorageClassResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassResource.
type StorageClassResourceListResult ¶
type StorageClassResourceListResult struct { // REQUIRED; The StorageClassResource items on this page Value []*StorageClassResource // The link to the next page of items NextLink *string }
StorageClassResourceListResult - The response of a StorageClassResource list operation.
func (StorageClassResourceListResult) MarshalJSON ¶
func (s StorageClassResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageClassResourceListResult.
func (*StorageClassResourceListResult) UnmarshalJSON ¶
func (s *StorageClassResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassResourceListResult.
type StorageClassResourceUpdate ¶
type StorageClassResourceUpdate struct { // The properties of StorageClass Properties *StorageClassPropertiesUpdate }
StorageClassResourceUpdate - The model for updating a storageClass
func (StorageClassResourceUpdate) MarshalJSON ¶
func (s StorageClassResourceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageClassResourceUpdate.
func (*StorageClassResourceUpdate) UnmarshalJSON ¶
func (s *StorageClassResourceUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassResourceUpdate.
type StorageClassTypeProperties ¶
type StorageClassTypeProperties struct { // REQUIRED; Type of the storage class. Type *SCType }
StorageClassTypeProperties - The properties of storage class of the StorageClass
func (*StorageClassTypeProperties) GetStorageClassTypeProperties ¶
func (s *StorageClassTypeProperties) GetStorageClassTypeProperties() *StorageClassTypeProperties
GetStorageClassTypeProperties implements the StorageClassTypePropertiesClassification interface for type StorageClassTypeProperties.
func (StorageClassTypeProperties) MarshalJSON ¶
func (s StorageClassTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageClassTypeProperties.
func (*StorageClassTypeProperties) UnmarshalJSON ¶
func (s *StorageClassTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassTypeProperties.
type StorageClassTypePropertiesClassification ¶
type StorageClassTypePropertiesClassification interface { // GetStorageClassTypeProperties returns the StorageClassTypeProperties content of the underlying type. GetStorageClassTypeProperties() *StorageClassTypeProperties }
StorageClassTypePropertiesClassification provides polymorphic access to related types. Call the interface's GetStorageClassTypeProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *BlobStorageClassTypeProperties, *NativeStorageClassTypeProperties, *NfsStorageClassTypeProperties, *RwxStorageClassTypeProperties, - *SmbStorageClassTypeProperties, *StorageClassTypeProperties
type StorageClassTypePropertiesUpdate ¶
type StorageClassTypePropertiesUpdate struct { // Azure Storage Account Key AzureStorageAccountKey *string // Azure Storage Account Name AzureStorageAccountName *string // The backing storageclass used to create new storageclass BackingStorageClassName *string // Server domain Domain *string // Mounted folder permissions. Default is 0. If set as non-zero, driver will perform `chmod` after mount MountPermissions *string // The action to take when a NFS volume is deleted. Default is Delete OnDelete *NfsDirectoryActionOnVolumeDeletion // Server password Password *string // NFS Server Server *string Share *string // SMB Source Source *string // Sub directory under share. If the sub directory doesn't exist, driver will create it SubDir *string // Server username Username *string }
StorageClassTypePropertiesUpdate - The model for update a storageClass
func (StorageClassTypePropertiesUpdate) MarshalJSON ¶
func (s StorageClassTypePropertiesUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageClassTypePropertiesUpdate.
func (*StorageClassTypePropertiesUpdate) UnmarshalJSON ¶
func (s *StorageClassTypePropertiesUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassTypePropertiesUpdate.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. CreatedBy *string // The type of identity that created the resource. CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time // The identity that last modified the resource. LastModifiedBy *string // The type of identity that last modified the resource. LastModifiedByType *CreatedByType }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type VolumeBindingMode ¶
type VolumeBindingMode string
VolumeBindingMode - Storage class volume binding mode
const ( // VolumeBindingModeImmediate - Immediate binding mode VolumeBindingModeImmediate VolumeBindingMode = "Immediate" // VolumeBindingModeWaitForFirstConsumer - Wait for first consumer binding mode VolumeBindingModeWaitForFirstConsumer VolumeBindingMode = "WaitForFirstConsumer" )
func PossibleVolumeBindingModeValues ¶
func PossibleVolumeBindingModeValues() []VolumeBindingMode
PossibleVolumeBindingModeValues returns the possible values for the VolumeBindingMode const type.
type VolumeExpansion ¶
type VolumeExpansion string
VolumeExpansion - Ability to expand volumes of a storage class
const ( // VolumeExpansionAllow - Allow volume expansion VolumeExpansionAllow VolumeExpansion = "Allow" // VolumeExpansionDisallow - Disallow volume expansion VolumeExpansionDisallow VolumeExpansion = "Disallow" )
func PossibleVolumeExpansionValues ¶
func PossibleVolumeExpansionValues() []VolumeExpansion
PossibleVolumeExpansionValues returns the possible values for the VolumeExpansion const type.