models.azure_credentials module¶
-
class
models.azure_credentials.
AzureCredentials
(application_id=None, application_key=None, azure_type=None, subscription_id=None, subscription_type=None, tenant_id=None)[source]¶ Bases:
object
Implementation of the ‘AzureCredentials’ model.
Specifies the credentials to authenticate with Azure Cloud Platform.
- Attributes:
- application_id (string): Specifies Application Id of the active
directory of Azure account.
- application_key (string): Specifies Application key of the active
directory of Azure account.
- azure_type (AzureTypeEnum): Specifies the entity type such as
‘kSubscription’ if the environment is kAzure. Specifies the type of an Azure source entity. ‘kSubscription’ indicates a billing unit within Azure account. ‘kResourceGroup’ indicates a container that holds related resources. ‘kVirtualMachine’ indicates a Virtual Machine in Azure environment. ‘kStorageAccount’ represents a collection of storage containers. ‘kStorageKey’ indicates a key required to access the storage account. ‘kStorageContainer’ represents a storage container within a storage account. ‘kStorageBlob’ represents a storage blog within a storage container. ‘kStorageResourceGroup’ indicates a container that holds related storage resources. ‘kNetworkSecurityGroup’ represents a network security group. ‘kVirtualNetwork’ represents a virtual network. ‘kNetworkResourceGroup’ indicates a container that holds related network resources. ‘kSubnet’ represents a subnet within the virtual network. ‘kComputeOptions’ indicates the number of CPU cores and memory size available for a type of a Virtual Machine.
- subscription_id (string): Specifies Subscription id inside a
customer’s Azure account. It represents sub-section within the Azure account where a customer allows us to create VMs, storage account etc.
- subscription_type (SubscriptionTypeAzureCredentialsEnum):
Specifies the subscription type of Azure such as ‘kAzureCommercial’, ‘kAzureGovCloud’ or ‘kAzureStackCommercial’ Specifies the subscription type of an Azure source entity. ‘kAzureCommercial’ indicates a standard Azure subscription. ‘kAzureGovCloud’ indicates a govt Azure subscription. ‘kAzureStackCommercial’ indicates a stack commercial Azure subscription.
- tenant_id (string): Specifies Tenant Id of the active directory of
Azure account.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.