sshpublickeyresourceclient

package
v0.0.38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

+azure:enableclientgen:=true

Code generated by client-gen. DO NOT EDIT.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL