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