Secret class
Class representing a Secret.
Constructors
Secret(Service |
Create a Secret. |
Methods
Constructor Details
Secret(ServiceFabricMeshManagementClientContext)
Create a Secret.
new Secret(client: ServiceFabricMeshManagementClientContext)
Parameters
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<SecretCreateResponse>
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
- callback
The callback
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.
- callback
The callback
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<SecretGetResponse>
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
- callback
The callback
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.
- callback
The callback
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<SecretListByResourceGroupResponse>
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
- callback
The callback
listByResourceGroup(string, ServiceCallback<SecretResourceDescriptionList>)
function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<SecretResourceDescriptionList>)
Parameters
- resourceGroupName
-
string
Azure resource group name
- callback
The callback
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
- callback
The callback
listByResourceGroupNext(string, ServiceCallback<SecretResourceDescriptionList>)
function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<SecretResourceDescriptionList>)
Parameters
- nextPageLink
-
string
The NextLink from the previous successful call to List operation.
- callback
The callback
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<SecretListBySubscriptionResponse>
Promise<Models.SecretListBySubscriptionResponse>
listBySubscription(RequestOptionsBase, ServiceCallback<SecretResourceDescriptionList>)
function listBySubscription(options: RequestOptionsBase, callback: ServiceCallback<SecretResourceDescriptionList>)
Parameters
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
listBySubscription(ServiceCallback<SecretResourceDescriptionList>)
function listBySubscription(callback: ServiceCallback<SecretResourceDescriptionList>)
Parameters
- callback
The callback
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<SecretListBySubscriptionNextResponse>
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
- callback
The callback
listBySubscriptionNext(string, ServiceCallback<SecretResourceDescriptionList>)
function listBySubscriptionNext(nextPageLink: string, callback: ServiceCallback<SecretResourceDescriptionList>)
Parameters
- nextPageLink
-
string
The NextLink from the previous successful call to List operation.
- callback
The callback