Skip to content

Commit

Permalink
Generated from 8cec28b5ea477566500a9013a2c95d8afa00942c (#7939)
Browse files Browse the repository at this point in the history
Update C/ST_Create to C/ST_CreateOrUpdate
  • Loading branch information
AutorestCI authored Oct 21, 2019
1 parent a02cbde commit 23cc5a9
Show file tree
Hide file tree
Showing 12 changed files with 187 additions and 255 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# regenerated.
# --------------------------------------------------------------------------

from ._configuration import StorageCacheMgmtClientConfiguration
from ._storage_cache_mgmt_client import StorageCacheMgmtClient
__all__ = ['StorageCacheMgmtClient', 'StorageCacheMgmtClientConfiguration']
from ._configuration import StorageCacheManagementClientConfiguration
from ._storage_cache_management_client import StorageCacheManagementClient
__all__ = ['StorageCacheManagementClient', 'StorageCacheManagementClientConfiguration']

from .version import VERSION

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from .version import VERSION


class StorageCacheMgmtClientConfiguration(AzureConfiguration):
"""Configuration for StorageCacheMgmtClient
class StorageCacheManagementClientConfiguration(AzureConfiguration):
"""Configuration for StorageCacheManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
Expand All @@ -38,7 +38,7 @@ def __init__(
if not base_url:
base_url = 'https://management.azure.com'

super(StorageCacheMgmtClientConfiguration, self).__init__(base_url)
super(StorageCacheManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import StorageCacheMgmtClientConfiguration
from ._configuration import StorageCacheManagementClientConfiguration
from .operations import Operations
from .operations import SkusOperations
from .operations import UsageModelsOperations
Expand All @@ -21,11 +21,11 @@
from . import models


class StorageCacheMgmtClient(SDKClient):
"""A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage caches.
class StorageCacheManagementClient(SDKClient):
"""A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches.
:ivar config: Configuration for client.
:vartype config: StorageCacheMgmtClientConfiguration
:vartype config: StorageCacheManagementClientConfiguration
:ivar operations: Operations operations
:vartype operations: azure.mgmt.storagecache.operations.Operations
Expand All @@ -51,11 +51,11 @@ class StorageCacheMgmtClient(SDKClient):
def __init__(
self, credentials, subscription_id, base_url=None):

self.config = StorageCacheMgmtClientConfiguration(credentials, subscription_id, base_url)
super(StorageCacheMgmtClient, self).__init__(self.config.credentials, self.config)
self.config = StorageCacheManagementClientConfiguration(credentials, subscription_id, base_url)
super(StorageCacheManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-08-01-preview'
self.api_version = '2019-11-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
from ._paged_models import ResourceSkuPaged
from ._paged_models import StorageTargetPaged
from ._paged_models import UsageModelPaged
from ._storage_cache_mgmt_client_enums import (
from ._storage_cache_management_client_enums import (
HealthStateType,
ProvisioningStateType,
FirmwareStatusType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ApiOperationDisplay(Model):
:type operation: str
:param provider: Service provider: Microsoft.StorageCache
:type provider: str
:param resource: Resource on which the operation is performed: cache, etc.
:param resource: Resource on which the operation is performed: Cache, etc.
:type resource: str
"""

Expand All @@ -59,25 +59,25 @@ def __init__(self, **kwargs):


class Cache(Model):
"""A cache instance. Follows Azure Resource Manager standards:
"""A Cache instance. Follows Azure Resource Manager standards:
https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md.
Variables are only populated by the server, and will be ignored when
sending a request.
:param tags: ARM tags as name/value pairs.
:type tags: object
:ivar id: Fully qualified URL of the cache.
:ivar id: Resource ID of the Cache.
:vartype id: str
:param location: Region name string.
:type location: str
:ivar name: Name of cache.
:ivar name: Name of Cache.
:vartype name: str
:ivar type: Type for the cache; Microsoft.StorageCache/Cache
:ivar type: Type of the Cache; Microsoft.StorageCache/Cache
:vartype type: str
:param cache_size_gb: The size of this cache's cache, in GB.
:param cache_size_gb: The size of this Cache, in GB.
:type cache_size_gb: int
:ivar health: Health of the cache.
:ivar health: Health of the Cache.
:vartype health: ~azure.mgmt.storagecache.models.CacheHealth
:ivar mount_addresses: Array of IP addresses that can be used by clients
mounting this Cache.
Expand All @@ -88,11 +88,11 @@ class Cache(Model):
'Deleting', 'Updating'
:type provisioning_state: str or
~azure.mgmt.storagecache.models.ProvisioningStateType
:param subnet: Subnet used for the cache.
:param subnet: Subnet used for the Cache.
:type subnet: str
:param upgrade_status: Upgrade status of the cache.
:param upgrade_status: Upgrade status of the Cache.
:type upgrade_status: ~azure.mgmt.storagecache.models.CacheUpgradeStatus
:param sku: Sku for the cache.
:param sku: SKU for the Cache.
:type sku: ~azure.mgmt.storagecache.models.CacheSku
"""

Expand Down Expand Up @@ -136,10 +136,10 @@ def __init__(self, **kwargs):


class CacheHealth(Model):
"""An indication of cache health. Gives more information about health than
"""An indication of Cache health. Gives more information about health than
just that related to provisioning.
:param state: List of cache health states. Possible values include:
:param state: List of Cache health states. Possible values include:
'Unknown', 'Healthy', 'Degraded', 'Down', 'Transitioning', 'Stopping',
'Stopped', 'Upgrading', 'Flushing'
:type state: str or ~azure.mgmt.storagecache.models.HealthStateType
Expand All @@ -159,9 +159,9 @@ def __init__(self, **kwargs):


class CacheSku(Model):
"""Sku for the cache.
"""SKU for the Cache.
:param name: Sku name for this cache.
:param name: SKU name for this Cache.
:type name: str
"""

Expand All @@ -175,22 +175,22 @@ def __init__(self, **kwargs):


class CacheUpgradeStatus(Model):
"""Properties describing the software upgrade state of the cache.
"""Properties describing the software upgrade state of the Cache.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar current_firmware_version: Version string of the firmware currently
installed on this cache.
installed on this Cache.
:vartype current_firmware_version: str
:ivar firmware_update_status: True if there is a firmware update ready to
install on this cache. The firmware will automatically be installed after
install on this Cache. The firmware will automatically be installed after
firmwareUpdateDeadline if not triggered earlier via the upgrade operation.
Possible values include: 'available', 'unavailable'
:vartype firmware_update_status: str or
~azure.mgmt.storagecache.models.FirmwareStatusType
:ivar firmware_update_deadline: Time at which the pending firmware update
will automatically be installed on the cache.
will automatically be installed on the Cache.
:vartype firmware_update_deadline: datetime
:ivar last_firmware_update: Time of the last successful firmware update.
:vartype last_firmware_update: datetime
Expand Down Expand Up @@ -225,9 +225,9 @@ def __init__(self, **kwargs):


class ClfsTarget(Model):
"""Storage container for use as a CLFS StorageTarget.
"""Storage container for use as a CLFS Storage Target.
:param target: URL of storage container.
:param target: Resource ID of storage container.
:type target: str
"""

Expand Down Expand Up @@ -302,9 +302,9 @@ def __init__(self, **kwargs):
class NamespaceJunction(Model):
"""A namespace junction.
:param namespace_path: Namespace path on a cache for a storage target.
:param namespace_path: Namespace path on a Cache for a Storage Target.
:type namespace_path: str
:param target_path: Path in storage target to which namespacePath points.
:param target_path: Path in Storage Target to which namespacePath points.
:type target_path: str
:param nfs_export: NFS export where targetPath exists.
:type nfs_export: str
Expand All @@ -324,12 +324,13 @@ def __init__(self, **kwargs):


class Nfs3Target(Model):
"""An NFS mount point for use as a StorageTarget.
"""An NFSv3 mount point for use as a Storage Target.
:param target: IP or name of an NFS Storage Target host, ie: 10.0.44.44
:param target: IP address or host name of an NFSv3 host (e.g.,
10.0.44.44).
:type target: str
:param usage_model: Identifies the primary usage model to be used for this
storage target. GET choices from .../usageModels
Storage Target. Get choices from .../usageModels
:type usage_model: str
"""

Expand All @@ -354,22 +355,22 @@ class ResourceSku(Model):
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar resource_type: The type of resource the sku applies to.
:ivar resource_type: The type of resource the SKU applies to.
:vartype resource_type: str
:param capabilities: A list of capabilities of this SKU, such as
throughput or ops/sec
throughput or ops/sec.
:type capabilities:
list[~azure.mgmt.storagecache.models.ResourceSkuCapabilities]
:ivar locations: The set of locations that the SKU is available. This will
be supported and registered Azure Geo Regions (e.g. West US, East US,
be supported and registered Azure Geo Regions (e.g., West US, East US,
Southeast Asia, etc.).
:vartype locations: list[str]
:param location_info: The set of locations that the SKU is available.
:type location_info:
list[~azure.mgmt.storagecache.models.ResourceSkuLocationInfo]
:param name: The name of this sku.
:param name: The name of this SKU.
:type name: str
:param restrictions: The restrictions because of which SKU cannot be used.
:param restrictions: The restrictions preventing this SKU from being used.
This is empty if there are no restrictions.
:type restrictions: list[~azure.mgmt.storagecache.models.Restriction]
"""
Expand Down Expand Up @@ -401,9 +402,9 @@ def __init__(self, **kwargs):
class ResourceSkuCapabilities(Model):
"""A resource SKU capability.
:param name: Name of a capability, such as ops/sec
:param name: Name of a capability, such as ops/sec.
:type name: str
:param value: Quantity, if the capability is measured by quantity
:param value: Quantity, if the capability is measured by quantity.
:type value: str
"""

Expand All @@ -421,7 +422,7 @@ def __init__(self, **kwargs):
class ResourceSkuLocationInfo(Model):
"""Resource SKU location information.
:param location: Location where this Sku is available
:param location: Location where this SKU is available.
:type location: str
:param zones: Zones if any.
:type zones: list[str]
Expand All @@ -439,22 +440,24 @@ def __init__(self, **kwargs):


class Restriction(Model):
"""The restriction because of which SKU cannot be used.
"""The restrictions preventing this SKU from being used.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar type: The type of restrictions. As of now only possible value for
this is location.
:ivar type: The type of restrictions. In this version, the only possible
value for this is location.
:vartype type: str
:ivar values: The value of restrictions. If the restriction type is set to
location. This would be different locations where the SKU is restricted.
location, then this would be the different locations where the SKU is
restricted.
:vartype values: list[str]
:param reason_code: The reason for the restriction. As of now this can be
"QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU
"QuotaId" or "NotAvailableForSubscription". "QuotaId" is set when the SKU
has requiredQuotas parameter as the subscription does not belong to that
quota. The "NotAvailableForSubscription" is related to capacity at DC.
Possible values include: 'QuotaId', 'NotAvailableForSubscription'
quota. "NotAvailableForSubscription" is related to capacity at the
datacenter. Possible values include: 'QuotaId',
'NotAvailableForSubscription'
:type reason_code: str or ~azure.mgmt.storagecache.models.ReasonCode
"""

Expand Down Expand Up @@ -482,17 +485,17 @@ class StorageTarget(Model):
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar name: A fully qualified URL.
:ivar name: Name of the Storage Target.
:vartype name: str
:ivar id: Resource Id
:ivar id: Resource ID of the Storage Target.
:vartype id: str
:ivar type: Type for the storage target;
:ivar type: Type of the Storage Target;
Microsoft.StorageCache/Cache/StorageTarget
:vartype type: str
:param junctions: List of cache namespace to target namespace
associations.
:param junctions: List of Cache namespace junctions to target for
namespace associations.
:type junctions: list[~azure.mgmt.storagecache.models.NamespaceJunction]
:param target_type: Type for storage target. Possible values include:
:param target_type: Type of the Storage Target. Possible values include:
'nfs3', 'clfs', 'unknown'
:type target_type: str or
~azure.mgmt.storagecache.models.StorageTargetType
Expand All @@ -502,11 +505,11 @@ class StorageTarget(Model):
'Deleting', 'Updating'
:type provisioning_state: str or
~azure.mgmt.storagecache.models.ProvisioningStateType
:param nfs3: Properties when nfs3 target.
:param nfs3: Properties when targetType is nfs3.
:type nfs3: ~azure.mgmt.storagecache.models.Nfs3Target
:param clfs: Properties when clfs target.
:param clfs: Properties when targetType is clfs.
:type clfs: ~azure.mgmt.storagecache.models.ClfsTarget
:param unknown: Properties when unknown target.
:param unknown: Properties when targetType is unknown.
:type unknown: ~azure.mgmt.storagecache.models.UnknownTarget
"""

Expand Down Expand Up @@ -542,10 +545,10 @@ def __init__(self, **kwargs):


class UnknownTarget(Model):
"""Storage container for use as a Unknown StorageTarget.
"""Storage container for use as an Unknown Storage Target.
:param unknown_map: Dictionary of string->string pairs containing
information about the StorageTarget.
information about the Storage Target.
:type unknown_map: dict[str, str]
"""

Expand All @@ -563,10 +566,10 @@ class UsageModel(Model):
:param display: Localized information describing this usage model.
:type display: ~azure.mgmt.storagecache.models.UsageModelDisplay
:param model_name: Non localized keyword naming this usage model.
:param model_name: Non-localized keyword name for this usage model.
:type model_name: str
:param target_type: The type of Storage Target to which this model is
applicable (only nfs for now)
applicable (only nfs3 as of this version).
:type target_type: str
"""

Expand Down
Loading

0 comments on commit 23cc5a9

Please sign in to comment.