@azure/arm-compute
Version:
A generated SDK for ComputeManagementClient.
96 lines • 5.71 kB
TypeScript
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
import type { SshPublicKeys } from "../operationsInterfaces/index.js";
import type { ComputeManagementClient } from "../computeManagementClient.js";
import type { SshPublicKeyResource, SshPublicKeysListBySubscriptionOptionalParams, SshPublicKeysListByResourceGroupOptionalParams, SshPublicKeysGetOptionalParams, SshPublicKeysGetResponse, SshPublicKeysCreateOptionalParams, SshPublicKeysCreateResponse, SshPublicKeyUpdateResource, SshPublicKeysUpdateOptionalParams, SshPublicKeysUpdateResponse, SshPublicKeysDeleteOptionalParams, SshPublicKeysGenerateKeyPairOptionalParams, SshPublicKeysGenerateKeyPairResponse } from "../models/index.js";
/** Class containing SshPublicKeys operations. */
export declare class SshPublicKeysImpl implements SshPublicKeys {
private readonly client;
/**
* Initialize a new instance of the class SshPublicKeys class.
* @param client Reference to the service client
*/
constructor(client: ComputeManagementClient);
/**
* Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to
* get the next page of SSH public keys.
* @param options The options parameters.
*/
listBySubscription(options?: SshPublicKeysListBySubscriptionOptionalParams): PagedAsyncIterableIterator<SshPublicKeyResource>;
private listBySubscriptionPagingPage;
private listBySubscriptionPagingAll;
/**
* Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the
* response to get the next page of SSH public keys.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: SshPublicKeysListByResourceGroupOptionalParams): PagedAsyncIterableIterator<SshPublicKeyResource>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to
* get the next page of SSH public keys.
* @param options The options parameters.
*/
private _listBySubscription;
/**
* Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the
* response to get the next page of SSH public keys.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* Retrieves information about an SSH public key.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sshPublicKeyName The name of the SSH public key.
* @param options The options parameters.
*/
get(resourceGroupName: string, sshPublicKeyName: string, options?: SshPublicKeysGetOptionalParams): Promise<SshPublicKeysGetResponse>;
/**
* Creates a new SSH public key resource.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sshPublicKeyName The name of the SSH public key.
* @param parameters Parameters supplied to create the SSH public key.
* @param options The options parameters.
*/
create(resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyResource, options?: SshPublicKeysCreateOptionalParams): Promise<SshPublicKeysCreateResponse>;
/**
* Updates a new SSH public key resource.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sshPublicKeyName The name of the SSH public key.
* @param parameters Parameters supplied to update the SSH public key.
* @param options The options parameters.
*/
update(resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyUpdateResource, options?: SshPublicKeysUpdateOptionalParams): Promise<SshPublicKeysUpdateResponse>;
/**
* Delete an SSH public key.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sshPublicKeyName The name of the SSH public key.
* @param options The options parameters.
*/
delete(resourceGroupName: string, sshPublicKeyName: string, options?: SshPublicKeysDeleteOptionalParams): Promise<void>;
/**
* Generates and returns a public/private key pair and populates the SSH public key resource with the
* public key. The length of the key will be 3072 bits. This operation can only be performed once per
* SSH public key resource.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sshPublicKeyName The name of the SSH public key.
* @param options The options parameters.
*/
generateKeyPair(resourceGroupName: string, sshPublicKeyName: string, options?: SshPublicKeysGenerateKeyPairOptionalParams): Promise<SshPublicKeysGenerateKeyPairResponse>;
/**
* ListBySubscriptionNext
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
* @param options The options parameters.
*/
private _listBySubscriptionNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
}
//# sourceMappingURL=sshPublicKeys.d.ts.map