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.Snapshot, 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.Snapshot, rerr error)
- func (client *Client) List(ctx context.Context, resourceGroupName string) (result []*armcompute.Snapshot, rerr error)
- type Interface
Constants ¶
View Source
const CreateOrUpdateOperationName = "SnapshotsClient.Create"
View Source
const DeleteOperationName = "SnapshotsClient.Delete"
View Source
const GetOperationName = "SnapshotsClient.Get"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *armcompute.SnapshotsClient // contains filtered or unexported fields }
func (*Client) CreateOrUpdate ¶
func (client *Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, resource armcompute.Snapshot) (result *armcompute.Snapshot, err error)
CreateOrUpdate creates or updates a Snapshot.
func (*Client) Delete ¶
func (client *Client) Delete(ctx context.Context, resourceGroupName string, resourceName string) (err error)
Delete deletes a Snapshot by name.
type Interface ¶
type Interface interface { utils.GetFunc[armcompute.Snapshot] utils.CreateOrUpdateFunc[armcompute.Snapshot] utils.DeleteFunc[armcompute.Snapshot] utils.ListFunc[armcompute.Snapshot] }
+azure:client:verbs=get;createorupdate;delete,resource=Snapshot,packageName=github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5,packageAlias=armcompute,clientName=SnapshotsClient,expand=false,rateLimitKey=snapshotRateLimit,crossSubFactory=true
func New ¶
func New(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (Interface, error)
Directories ¶
Path | Synopsis |
---|---|
Package mock_snapshotclient is a generated GoMock package.
|
Package mock_snapshotclient is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.