Secret class

Class representing a Secret.

Constructors

Secret(ServiceFabricMeshManagementClientContext)

Create a Secret.

Methods

create(string, string, SecretResourceDescription, RequestOptionsBase)

Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties.

create(string, string, SecretResourceDescription, RequestOptionsBase, ServiceCallback<SecretResourceDescription>)
create(string, string, SecretResourceDescription, ServiceCallback<SecretResourceDescription>)
deleteMethod(string, string, RequestOptionsBase)

Deletes the secret resource identified by the name.

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, ServiceCallback<void>)
get(string, string, RequestOptionsBase)

Gets the information about the secret resource with the given name. The information include the description and other properties of the secret.

get(string, string, RequestOptionsBase, ServiceCallback<SecretResourceDescription>)
get(string, string, ServiceCallback<SecretResourceDescription>)
listByResourceGroup(string, RequestOptionsBase)

Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret.

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<SecretResourceDescriptionList>)
listByResourceGroup(string, ServiceCallback<SecretResourceDescriptionList>)
listByResourceGroupNext(string, RequestOptionsBase)

Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret.

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<SecretResourceDescriptionList>)
listByResourceGroupNext(string, ServiceCallback<SecretResourceDescriptionList>)
listBySubscription(RequestOptionsBase)

Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret.

listBySubscription(RequestOptionsBase, ServiceCallback<SecretResourceDescriptionList>)
listBySubscription(ServiceCallback<SecretResourceDescriptionList>)
listBySubscriptionNext(string, RequestOptionsBase)

Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret.

listBySubscriptionNext(string, RequestOptionsBase, ServiceCallback<SecretResourceDescriptionList>)
listBySubscriptionNext(string, ServiceCallback<SecretResourceDescriptionList>)

Constructor Details

Secret(ServiceFabricMeshManagementClientContext)

Create a Secret.

new Secret(client: ServiceFabricMeshManagementClientContext)

Parameters

client
ServiceFabricMeshManagementClientContext

Reference to the service client.

Method Details

create(string, string, SecretResourceDescription, RequestOptionsBase)

Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties.

function create(resourceGroupName: string, secretResourceName: string, secretResourceDescription: SecretResourceDescription, options?: RequestOptionsBase): Promise<SecretCreateResponse>

Parameters

resourceGroupName

string

Azure resource group name

secretResourceName

string

The name of the secret resource.

secretResourceDescription
SecretResourceDescription

Description for creating a secret resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SecretCreateResponse>

create(string, string, SecretResourceDescription, RequestOptionsBase, ServiceCallback<SecretResourceDescription>)

function create(resourceGroupName: string, secretResourceName: string, secretResourceDescription: SecretResourceDescription, options: RequestOptionsBase, callback: ServiceCallback<SecretResourceDescription>)

Parameters

resourceGroupName

string

Azure resource group name

secretResourceName

string

The name of the secret resource.

secretResourceDescription
SecretResourceDescription

Description for creating a secret resource.

options
RequestOptionsBase

The optional parameters

create(string, string, SecretResourceDescription, ServiceCallback<SecretResourceDescription>)

function create(resourceGroupName: string, secretResourceName: string, secretResourceDescription: SecretResourceDescription, callback: ServiceCallback<SecretResourceDescription>)

Parameters

resourceGroupName

string

Azure resource group name

secretResourceName

string

The name of the secret resource.

secretResourceDescription
SecretResourceDescription

Description for creating a secret resource.

deleteMethod(string, string, RequestOptionsBase)

Deletes the secret resource identified by the name.

function deleteMethod(resourceGroupName: string, secretResourceName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

Azure resource group name

secretResourceName

string

The name of the secret resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, secretResourceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Azure resource group name

secretResourceName

string

The name of the secret resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, secretResourceName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Azure resource group name

secretResourceName

string

The name of the secret resource.

callback

ServiceCallback<void>

The callback

get(string, string, RequestOptionsBase)

Gets the information about the secret resource with the given name. The information include the description and other properties of the secret.

function get(resourceGroupName: string, secretResourceName: string, options?: RequestOptionsBase): Promise<SecretGetResponse>

Parameters

resourceGroupName

string

Azure resource group name

secretResourceName

string

The name of the secret resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SecretGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<SecretResourceDescription>)

function get(resourceGroupName: string, secretResourceName: string, options: RequestOptionsBase, callback: ServiceCallback<SecretResourceDescription>)

Parameters

resourceGroupName

string

Azure resource group name

secretResourceName

string

The name of the secret resource.

options
RequestOptionsBase

The optional parameters

get(string, string, ServiceCallback<SecretResourceDescription>)

function get(resourceGroupName: string, secretResourceName: string, callback: ServiceCallback<SecretResourceDescription>)

Parameters

resourceGroupName

string

Azure resource group name

secretResourceName

string

The name of the secret resource.

listByResourceGroup(string, RequestOptionsBase)

Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret.

function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<SecretListByResourceGroupResponse>

Parameters

resourceGroupName

string

Azure resource group name

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SecretListByResourceGroupResponse>

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<SecretResourceDescriptionList>)

function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<SecretResourceDescriptionList>)

Parameters

resourceGroupName

string

Azure resource group name

options
RequestOptionsBase

The optional parameters

listByResourceGroup(string, ServiceCallback<SecretResourceDescriptionList>)

function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<SecretResourceDescriptionList>)

Parameters

resourceGroupName

string

Azure resource group name

listByResourceGroupNext(string, RequestOptionsBase)

Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret.

function listByResourceGroupNext(nextPageLink: string, options?: RequestOptionsBase): Promise<SecretListByResourceGroupNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SecretListByResourceGroupNextResponse>

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<SecretResourceDescriptionList>)

function listByResourceGroupNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<SecretResourceDescriptionList>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

listByResourceGroupNext(string, ServiceCallback<SecretResourceDescriptionList>)

function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<SecretResourceDescriptionList>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

listBySubscription(RequestOptionsBase)

Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret.

function listBySubscription(options?: RequestOptionsBase): Promise<SecretListBySubscriptionResponse>

Parameters

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SecretListBySubscriptionResponse>

listBySubscription(RequestOptionsBase, ServiceCallback<SecretResourceDescriptionList>)

function listBySubscription(options: RequestOptionsBase, callback: ServiceCallback<SecretResourceDescriptionList>)

Parameters

options
RequestOptionsBase

The optional parameters

listBySubscription(ServiceCallback<SecretResourceDescriptionList>)

function listBySubscription(callback: ServiceCallback<SecretResourceDescriptionList>)

Parameters

listBySubscriptionNext(string, RequestOptionsBase)

Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret.

function listBySubscriptionNext(nextPageLink: string, options?: RequestOptionsBase): Promise<SecretListBySubscriptionNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SecretListBySubscriptionNextResponse>

listBySubscriptionNext(string, RequestOptionsBase, ServiceCallback<SecretResourceDescriptionList>)

function listBySubscriptionNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<SecretResourceDescriptionList>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

listBySubscriptionNext(string, ServiceCallback<SecretResourceDescriptionList>)

function listBySubscriptionNext(nextPageLink: string, callback: ServiceCallback<SecretResourceDescriptionList>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.