Documentation ¶
Overview ¶
+azure:enableclientgen:=true
Code generated by client-gen. DO NOT EDIT.
Index ¶
- Constants
- type Client
- func (client *Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (result *armcompute.Disk, err error)
- func (client *Client) Delete(ctx context.Context, resourceGroupName string, resourceName string) (err error)
- func (client *Client) Get(ctx context.Context, resourceGroupName string, resourceName string) (result *armcompute.Disk, err error)
- func (client *Client) List(ctx context.Context, resourceGroupName string) (result []*armcompute.Disk, err error)
- func (client *Client) Patch(ctx context.Context, resourceGroupName string, resourceName string, ...) (result *armcompute.Disk, err error)
- type Interface
Constants ¶
View Source
const CreateOrUpdateOperationName = "DisksClient.Create"
View Source
const DeleteOperationName = "DisksClient.Delete"
View Source
const GetOperationName = "DisksClient.Get"
View Source
const ListOperationName = "DisksClient.List"
View Source
const PatchOperationName = "DisksClient.Patch"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *armcompute.DisksClient // contains filtered or unexported fields }
func (*Client) CreateOrUpdate ¶
func (client *Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, resource armcompute.Disk) (result *armcompute.Disk, err error)
CreateOrUpdate creates or updates a Disk.
func (*Client) Delete ¶
func (client *Client) Delete(ctx context.Context, resourceGroupName string, resourceName string) (err error)
Delete deletes a Disk by name.
func (*Client) Get ¶
func (client *Client) Get(ctx context.Context, resourceGroupName string, resourceName string) (result *armcompute.Disk, err error)
Get gets the Disk
func (*Client) List ¶
func (client *Client) List(ctx context.Context, resourceGroupName string) (result []*armcompute.Disk, err error)
List gets a list of Disk in the resource group.
func (*Client) Patch ¶
func (client *Client) Patch(ctx context.Context, resourceGroupName string, resourceName string, parameters armcompute.DiskUpdate) (result *armcompute.Disk, err error)
type Interface ¶
type Interface interface { utils.GetFunc[armcompute.Disk] utils.CreateOrUpdateFunc[armcompute.Disk] utils.DeleteFunc[armcompute.Disk] utils.ListFunc[armcompute.Disk] Patch(ctx context.Context, resourceGroupName string, resourceName string, parameters armcompute.DiskUpdate) (result *armcompute.Disk, err error) }
+azure:client:verbs=get;createorupdate;delete;listbyrg,resource=Disk,packageName=github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6,packageAlias=armcompute,clientName=DisksClient,expand=false,rateLimitKey=diskRateLimit,crossSubFactory=true
func New ¶
func New(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (Interface, error)
Directories ¶
Path | Synopsis |
---|---|
Package mock_diskclient is a generated GoMock package.
|
Package mock_diskclient is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.