diff --git a/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py b/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py index d23dace4f604..435fbfdb06d4 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py +++ b/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py @@ -119,7 +119,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): * 2016-04-30-preview: :mod:`v2016_04_30_preview.models` * 2017-03-30: :mod:`v2017_03_30.models` * 2017-09-01: :mod:`v2017_09_01.models` - * 2017-12-01: :mod:`v2017_12_01.models` + * 2017-12-01-alphadummy: :mod:`v2017_12_01.models` * 2018-04-01: :mod:`v2018_04_01.models` """ if api_version == '2015-06-15': @@ -137,7 +137,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == '2017-09-01': from .v2017_09_01 import models return models - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01 import models return models elif api_version == '2018-04-01': @@ -153,7 +153,7 @@ def availability_sets(self): * 2016-03-30: :class:`AvailabilitySetsOperations` * 2016-04-30-preview: :class:`AvailabilitySetsOperations` * 2017-03-30: :class:`AvailabilitySetsOperations` - * 2017-12-01: :class:`AvailabilitySetsOperations` + * 2017-12-01-alphadummy: :class:`AvailabilitySetsOperations` """ api_version = self._get_api_version('availability_sets') if api_version == '2015-06-15': @@ -164,7 +164,7 @@ def availability_sets(self): from .v2016_04_30_preview.operations import AvailabilitySetsOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import AvailabilitySetsOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import AvailabilitySetsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -195,14 +195,14 @@ def images(self): * 2016-04-30-preview: :class:`ImagesOperations` * 2017-03-30: :class:`ImagesOperations` - * 2017-12-01: :class:`ImagesOperations` + * 2017-12-01-alphadummy: :class:`ImagesOperations` """ api_version = self._get_api_version('images') if api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import ImagesOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import ImagesOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import ImagesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -212,10 +212,10 @@ def images(self): def log_analytics(self): """Instance depends on the API version: - * 2017-12-01: :class:`LogAnalyticsOperations` + * 2017-12-01-alphadummy: :class:`LogAnalyticsOperations` """ api_version = self._get_api_version('log_analytics') - if api_version == '2017-12-01': + if api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import LogAnalyticsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -225,10 +225,10 @@ def log_analytics(self): def operations(self): """Instance depends on the API version: - * 2017-12-01: :class:`Operations` + * 2017-12-01-alphadummy: :class:`Operations` """ api_version = self._get_api_version('operations') - if api_version == '2017-12-01': + if api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import Operations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -277,7 +277,7 @@ def usage(self): * 2016-03-30: :class:`UsageOperations` * 2016-04-30-preview: :class:`UsageOperations` * 2017-03-30: :class:`UsageOperations` - * 2017-12-01: :class:`UsageOperations` + * 2017-12-01-alphadummy: :class:`UsageOperations` """ api_version = self._get_api_version('usage') if api_version == '2015-06-15': @@ -288,7 +288,7 @@ def usage(self): from .v2016_04_30_preview.operations import UsageOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import UsageOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import UsageOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -302,7 +302,7 @@ def virtual_machine_extension_images(self): * 2016-03-30: :class:`VirtualMachineExtensionImagesOperations` * 2016-04-30-preview: :class:`VirtualMachineExtensionImagesOperations` * 2017-03-30: :class:`VirtualMachineExtensionImagesOperations` - * 2017-12-01: :class:`VirtualMachineExtensionImagesOperations` + * 2017-12-01-alphadummy: :class:`VirtualMachineExtensionImagesOperations` """ api_version = self._get_api_version('virtual_machine_extension_images') if api_version == '2015-06-15': @@ -313,7 +313,7 @@ def virtual_machine_extension_images(self): from .v2016_04_30_preview.operations import VirtualMachineExtensionImagesOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineExtensionImagesOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import VirtualMachineExtensionImagesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -327,7 +327,7 @@ def virtual_machine_extensions(self): * 2016-03-30: :class:`VirtualMachineExtensionsOperations` * 2016-04-30-preview: :class:`VirtualMachineExtensionsOperations` * 2017-03-30: :class:`VirtualMachineExtensionsOperations` - * 2017-12-01: :class:`VirtualMachineExtensionsOperations` + * 2017-12-01-alphadummy: :class:`VirtualMachineExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_extensions') if api_version == '2015-06-15': @@ -338,7 +338,7 @@ def virtual_machine_extensions(self): from .v2016_04_30_preview.operations import VirtualMachineExtensionsOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineExtensionsOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import VirtualMachineExtensionsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -352,7 +352,7 @@ def virtual_machine_images(self): * 2016-03-30: :class:`VirtualMachineImagesOperations` * 2016-04-30-preview: :class:`VirtualMachineImagesOperations` * 2017-03-30: :class:`VirtualMachineImagesOperations` - * 2017-12-01: :class:`VirtualMachineImagesOperations` + * 2017-12-01-alphadummy: :class:`VirtualMachineImagesOperations` """ api_version = self._get_api_version('virtual_machine_images') if api_version == '2015-06-15': @@ -363,7 +363,7 @@ def virtual_machine_images(self): from .v2016_04_30_preview.operations import VirtualMachineImagesOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineImagesOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import VirtualMachineImagesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -374,12 +374,12 @@ def virtual_machine_run_commands(self): """Instance depends on the API version: * 2017-03-30: :class:`VirtualMachineRunCommandsOperations` - * 2017-12-01: :class:`VirtualMachineRunCommandsOperations` + * 2017-12-01-alphadummy: :class:`VirtualMachineRunCommandsOperations` """ api_version = self._get_api_version('virtual_machine_run_commands') if api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineRunCommandsOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import VirtualMachineRunCommandsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -390,12 +390,12 @@ def virtual_machine_scale_set_extensions(self): """Instance depends on the API version: * 2017-03-30: :class:`VirtualMachineScaleSetExtensionsOperations` - * 2017-12-01: :class:`VirtualMachineScaleSetExtensionsOperations` + * 2017-12-01-alphadummy: :class:`VirtualMachineScaleSetExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_extensions') if api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -406,12 +406,12 @@ def virtual_machine_scale_set_rolling_upgrades(self): """Instance depends on the API version: * 2017-03-30: :class:`VirtualMachineScaleSetRollingUpgradesOperations` - * 2017-12-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` + * 2017-12-01-alphadummy: :class:`VirtualMachineScaleSetRollingUpgradesOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_rolling_upgrades') if api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -425,7 +425,7 @@ def virtual_machine_scale_set_vms(self): * 2016-03-30: :class:`VirtualMachineScaleSetVMsOperations` * 2016-04-30-preview: :class:`VirtualMachineScaleSetVMsOperations` * 2017-03-30: :class:`VirtualMachineScaleSetVMsOperations` - * 2017-12-01: :class:`VirtualMachineScaleSetVMsOperations` + * 2017-12-01-alphadummy: :class:`VirtualMachineScaleSetVMsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vms') if api_version == '2015-06-15': @@ -436,7 +436,7 @@ def virtual_machine_scale_set_vms(self): from .v2016_04_30_preview.operations import VirtualMachineScaleSetVMsOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineScaleSetVMsOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -450,7 +450,7 @@ def virtual_machine_scale_sets(self): * 2016-03-30: :class:`VirtualMachineScaleSetsOperations` * 2016-04-30-preview: :class:`VirtualMachineScaleSetsOperations` * 2017-03-30: :class:`VirtualMachineScaleSetsOperations` - * 2017-12-01: :class:`VirtualMachineScaleSetsOperations` + * 2017-12-01-alphadummy: :class:`VirtualMachineScaleSetsOperations` """ api_version = self._get_api_version('virtual_machine_scale_sets') if api_version == '2015-06-15': @@ -461,7 +461,7 @@ def virtual_machine_scale_sets(self): from .v2016_04_30_preview.operations import VirtualMachineScaleSetsOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineScaleSetsOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import VirtualMachineScaleSetsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -475,7 +475,7 @@ def virtual_machine_sizes(self): * 2016-03-30: :class:`VirtualMachineSizesOperations` * 2016-04-30-preview: :class:`VirtualMachineSizesOperations` * 2017-03-30: :class:`VirtualMachineSizesOperations` - * 2017-12-01: :class:`VirtualMachineSizesOperations` + * 2017-12-01-alphadummy: :class:`VirtualMachineSizesOperations` """ api_version = self._get_api_version('virtual_machine_sizes') if api_version == '2015-06-15': @@ -486,7 +486,7 @@ def virtual_machine_sizes(self): from .v2016_04_30_preview.operations import VirtualMachineSizesOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineSizesOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import VirtualMachineSizesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) @@ -500,7 +500,7 @@ def virtual_machines(self): * 2016-03-30: :class:`VirtualMachinesOperations` * 2016-04-30-preview: :class:`VirtualMachinesOperations` * 2017-03-30: :class:`VirtualMachinesOperations` - * 2017-12-01: :class:`VirtualMachinesOperations` + * 2017-12-01-alphadummy: :class:`VirtualMachinesOperations` """ api_version = self._get_api_version('virtual_machines') if api_version == '2015-06-15': @@ -511,7 +511,7 @@ def virtual_machines(self): from .v2016_04_30_preview.operations import VirtualMachinesOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachinesOperations as OperationClass - elif api_version == '2017-12-01': + elif api_version == '2017-12-01-alphadummy': from .v2017_12_01.operations import VirtualMachinesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/compute_management_client.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/compute_management_client.py index cfda081b1567..ffcfe0787b8c 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/compute_management_client.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/compute_management_client.py @@ -9,7 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION @@ -59,7 +59,7 @@ def __init__( self.subscription_id = subscription_id -class ComputeManagementClient(object): +class ComputeManagementClient(SDKClient): """Compute Client :ivar config: Configuration for client. @@ -98,7 +98,7 @@ def __init__( self, credentials, subscription_id, base_url=None): self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + super(ComputeManagementClient, 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 = '2015-06-15' diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/compute_management_client.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/compute_management_client.py index fd70594a902c..403c3f4449d9 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/compute_management_client.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/compute_management_client.py @@ -9,7 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION @@ -59,7 +59,7 @@ def __init__( self.subscription_id = subscription_id -class ComputeManagementClient(object): +class ComputeManagementClient(SDKClient): """Compute Client :ivar config: Configuration for client. @@ -98,7 +98,7 @@ def __init__( self, credentials, subscription_id, base_url=None): self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + super(ComputeManagementClient, 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 = '2016-03-30' diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/compute_management_client.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/compute_management_client.py index c58b204ba4d0..2c43eb9b0c1a 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/compute_management_client.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/compute_management_client.py @@ -9,7 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION @@ -62,7 +62,7 @@ def __init__( self.subscription_id = subscription_id -class ComputeManagementClient(object): +class ComputeManagementClient(SDKClient): """Compute Client :ivar config: Configuration for client. @@ -107,7 +107,7 @@ def __init__( self, credentials, subscription_id, base_url=None): self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + super(ComputeManagementClient, 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 = '2016-04-30-preview' diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/compute_management_client.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/compute_management_client.py index 1b2633721f7e..d671c7a363df 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/compute_management_client.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/compute_management_client.py @@ -9,7 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION @@ -66,7 +66,7 @@ def __init__( self.subscription_id = subscription_id -class ComputeManagementClient(object): +class ComputeManagementClient(SDKClient): """Compute Client :ivar config: Configuration for client. @@ -119,7 +119,7 @@ def __init__( self, credentials, subscription_id, base_url=None): self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + super(ComputeManagementClient, 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 = '2017-03-30' diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/compute_management_client.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/compute_management_client.py index fd0c043a6b79..0dc37e4ed0a2 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/compute_management_client.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/compute_management_client.py @@ -9,7 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION @@ -51,7 +51,7 @@ def __init__( self.subscription_id = subscription_id -class ComputeManagementClient(object): +class ComputeManagementClient(SDKClient): """Compute Client :ivar config: Configuration for client. @@ -74,7 +74,7 @@ def __init__( self, credentials, subscription_id, base_url=None): self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + super(ComputeManagementClient, 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 = '2017-09-01' diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/compute_management_client.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/compute_management_client.py index 3fcf22e996e6..59ce25d64cd4 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/compute_management_client.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/compute_management_client.py @@ -9,7 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION @@ -65,7 +65,7 @@ def __init__( self.subscription_id = subscription_id -class ComputeManagementClient(object): +class ComputeManagementClient(SDKClient): """Compute Client :ivar config: Configuration for client. @@ -116,10 +116,9 @@ def __init__( self, credentials, subscription_id, base_url=None): self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + super(ComputeManagementClient, 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 = '2017-12-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/availability_sets_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/availability_sets_operations.py index 5e2cc0d7f116..de443b1f4f21 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/availability_sets_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/availability_sets_operations.py @@ -23,7 +23,7 @@ class AvailabilitySetsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/images_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/images_operations.py index 34a376803fc1..ad1401299735 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/images_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/images_operations.py @@ -25,7 +25,7 @@ class ImagesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/log_analytics_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/log_analytics_operations.py index 939b62a0e59f..33c202e8e4c0 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/log_analytics_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/log_analytics_operations.py @@ -25,7 +25,7 @@ class LogAnalyticsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/operations.py index 5681f620623e..9d931a2ac761 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/operations.py @@ -23,7 +23,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/usage_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/usage_operations.py index 11805c1bafdb..f676fc87f7f9 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/usage_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/usage_operations.py @@ -23,7 +23,7 @@ class UsageOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_extension_images_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_extension_images_operations.py index a4f70c5e6e2e..dd1e9dd9361b 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_extension_images_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_extension_images_operations.py @@ -23,7 +23,7 @@ class VirtualMachineExtensionImagesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_extensions_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_extensions_operations.py index a888f594af2a..d6fe834c5b09 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_extensions_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_extensions_operations.py @@ -25,7 +25,7 @@ class VirtualMachineExtensionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_images_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_images_operations.py index e53a3fccdfe0..1cc2ca0ace41 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_images_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_images_operations.py @@ -23,7 +23,7 @@ class VirtualMachineImagesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_extensions_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_extensions_operations.py index 3804ba43e51b..abf460928b9a 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_extensions_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_extensions_operations.py @@ -25,7 +25,7 @@ class VirtualMachineScaleSetExtensionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_rolling_upgrades_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_rolling_upgrades_operations.py index 064485bea0c8..7d99dfd5309c 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_rolling_upgrades_operations.py @@ -25,7 +25,7 @@ class VirtualMachineScaleSetRollingUpgradesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_vms_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_vms_operations.py index 6682590a3781..4494a5906cbe 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_vms_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_set_vms_operations.py @@ -25,7 +25,7 @@ class VirtualMachineScaleSetVMsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_sets_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_sets_operations.py index e83614092358..37524c091c51 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_sets_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_sets_operations.py @@ -25,7 +25,7 @@ class VirtualMachineScaleSetsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_sizes_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_sizes_operations.py index fac51386b9b6..e8c7cc9f13f1 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_sizes_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_sizes_operations.py @@ -23,7 +23,7 @@ class VirtualMachineSizesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". + :ivar api_version: Client Api Version. Constant value: "2017-12-01-alphadummy". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" + self.api_version = "2017-12-01-alphadummy" self.config = config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machines_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machines_operations.py index 204714dad612..1c4d1f7beaaf 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machines_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machines_operations.py @@ -25,7 +25,6 @@ class VirtualMachinesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-12-01". """ models = models @@ -35,7 +34,6 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-12-01" self.config = config @@ -62,6 +60,8 @@ def get_extensions( or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.get_extensions.metadata['url'] path_format_arguments = { @@ -75,7 +75,7 @@ def get_extensions( query_parameters = {} if expand is not None: query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -111,6 +111,8 @@ def get_extensions( def _capture_initial( self, resource_group_name, vm_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.capture.metadata['url'] path_format_arguments = { @@ -122,7 +124,7 @@ def _capture_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -215,6 +217,8 @@ def get_long_running_output(response): def _create_or_update_initial( self, resource_group_name, vm_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.create_or_update.metadata['url'] path_format_arguments = { @@ -226,7 +230,7 @@ def _create_or_update_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -319,6 +323,8 @@ def get_long_running_output(response): def _update_initial( self, resource_group_name, vm_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.update.metadata['url'] path_format_arguments = { @@ -330,7 +336,7 @@ def _update_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -423,6 +429,8 @@ def get_long_running_output(response): def _delete_initial( self, resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.delete.metadata['url'] path_format_arguments = { @@ -434,7 +442,7 @@ def _delete_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -536,6 +544,8 @@ def get( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.get.metadata['url'] path_format_arguments = { @@ -549,7 +559,7 @@ def get( query_parameters = {} if expand is not None: query_parameters['$expand'] = self._serialize.query("expand", expand, 'InstanceViewTypes') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -601,6 +611,8 @@ def instance_view( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.instance_view.metadata['url'] path_format_arguments = { @@ -612,7 +624,7 @@ def instance_view( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -648,6 +660,8 @@ def instance_view( def _convert_to_managed_disks_initial( self, resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.convert_to_managed_disks.metadata['url'] path_format_arguments = { @@ -659,7 +673,7 @@ def _convert_to_managed_disks_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -743,6 +757,8 @@ def get_long_running_output(response): def _deallocate_initial( self, resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.deallocate.metadata['url'] path_format_arguments = { @@ -754,7 +770,7 @@ def _deallocate_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -853,6 +869,8 @@ def generalize( or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.generalize.metadata['url'] path_format_arguments = { @@ -864,7 +882,7 @@ def generalize( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -915,6 +933,8 @@ def list( ~azure.mgmt.compute.v2017_12_01.models.VirtualMachinePaged[~azure.mgmt.compute.v2017_12_01.models.VirtualMachine] :raises: :class:`CloudError` """ + api_version = "2017-12-01-alphadummy" + def internal_paging(next_link=None, raw=False): if not next_link: @@ -928,7 +948,7 @@ def internal_paging(next_link=None, raw=False): # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') else: url = next_link @@ -983,6 +1003,8 @@ def list_all( ~azure.mgmt.compute.v2017_12_01.models.VirtualMachinePaged[~azure.mgmt.compute.v2017_12_01.models.VirtualMachine] :raises: :class:`CloudError` """ + api_version = "2017-12-01-alphadummy" + def internal_paging(next_link=None, raw=False): if not next_link: @@ -995,7 +1017,7 @@ def internal_paging(next_link=None, raw=False): # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') else: url = next_link @@ -1053,6 +1075,8 @@ def list_available_sizes( ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineSizePaged[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineSize] :raises: :class:`CloudError` """ + api_version = "2017-12-01-alphadummy" + def internal_paging(next_link=None, raw=False): if not next_link: @@ -1067,7 +1091,7 @@ def internal_paging(next_link=None, raw=False): # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') else: url = next_link @@ -1109,6 +1133,8 @@ def internal_paging(next_link=None, raw=False): def _power_off_initial( self, resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.power_off.metadata['url'] path_format_arguments = { @@ -1120,7 +1146,7 @@ def _power_off_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -1204,6 +1230,8 @@ def get_long_running_output(response): def _restart_initial( self, resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.restart.metadata['url'] path_format_arguments = { @@ -1215,7 +1243,7 @@ def _restart_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -1297,6 +1325,8 @@ def get_long_running_output(response): def _start_initial( self, resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.start.metadata['url'] path_format_arguments = { @@ -1308,7 +1338,7 @@ def _start_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -1390,6 +1420,8 @@ def get_long_running_output(response): def _redeploy_initial( self, resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.redeploy.metadata['url'] path_format_arguments = { @@ -1401,7 +1433,7 @@ def _redeploy_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -1483,6 +1515,8 @@ def get_long_running_output(response): def _perform_maintenance_initial( self, resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01-alphadummy" + # Construct URL url = self.perform_maintenance.metadata['url'] path_format_arguments = { @@ -1494,7 +1528,7 @@ def _perform_maintenance_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -1576,6 +1610,8 @@ def get_long_running_output(response): def _run_command_initial( self, resource_group_name, vm_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2017-12-01" + # Construct URL url = self.run_command.metadata['url'] path_format_arguments = { @@ -1587,7 +1623,7 @@ def _run_command_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/version.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/version.py index e5978466adba..53a203f32aaf 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/version.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "2017-12-01" +VERSION = "" diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/compute_management_client.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/compute_management_client.py index 382bad2d0135..67b90f115b32 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/compute_management_client.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/compute_management_client.py @@ -9,7 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION @@ -30,16 +30,27 @@ class ComputeManagementClientConfiguration(AzureConfiguration): Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param disk_name: The name of the managed disk that is being created. The + name can't be changed after the disk is created. Supported characters for + the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 + characters. + :type disk_name: str :param str base_url: Service URL """ def __init__( - self, credentials, subscription_id, base_url=None): + self, credentials, subscription_id, resource_group_name, disk_name, base_url=None): if credentials is None: raise ValueError("Parameter 'credentials' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") + if resource_group_name is None: + raise ValueError("Parameter 'resource_group_name' must not be None.") + if disk_name is None: + raise ValueError("Parameter 'disk_name' must not be None.") if not base_url: base_url = 'https://management.azure.com' @@ -50,9 +61,11 @@ def __init__( self.credentials = credentials self.subscription_id = subscription_id + self.resource_group_name = resource_group_name + self.disk_name = disk_name -class ComputeManagementClient(object): +class ComputeManagementClient(SDKClient): """Compute Client :ivar config: Configuration for client. @@ -70,14 +83,21 @@ class ComputeManagementClient(object): Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param disk_name: The name of the managed disk that is being created. The + name can't be changed after the disk is created. Supported characters for + the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 + characters. + :type disk_name: str :param str base_url: Service URL """ def __init__( - self, credentials, subscription_id, base_url=None): + self, credentials, subscription_id, resource_group_name, disk_name, base_url=None): - self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + self.config = ComputeManagementClientConfiguration(credentials, subscription_id, resource_group_name, disk_name, base_url) + super(ComputeManagementClient, 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 = '2018-04-01' diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/disks_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/disks_operations.py index c066a2195933..363b17dbff05 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/disks_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/disks_operations.py @@ -41,13 +41,13 @@ def __init__(self, client, config, serializer, deserializer): def _create_or_update_initial( - self, resource_group_name, disk_name, disk, custom_headers=None, raw=False, **operation_config): + self, disk, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.create_or_update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'diskName': self._serialize.url("disk_name", disk_name, 'str') + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), + 'diskName': self._serialize.url("self.config.disk_name", self.config.disk_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -92,16 +92,9 @@ def _create_or_update_initial( return deserialized def create_or_update( - self, resource_group_name, disk_name, disk, custom_headers=None, raw=False, polling=True, **operation_config): + self, disk, custom_headers=None, raw=False, polling=True, **operation_config): """Creates or updates a disk. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param disk_name: The name of the managed disk that is being created. - The name can't be changed after the disk is created. Supported - characters for the name are a-z, A-Z, 0-9 and _. The maximum name - length is 80 characters. - :type disk_name: str :param disk: Disk object supplied in the body of the Put disk operation. :type disk: ~azure.mgmt.compute.v2018_04_01.models.Disk @@ -119,8 +112,6 @@ def create_or_update( :raises: :class:`CloudError` """ raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - disk_name=disk_name, disk=disk, custom_headers=custom_headers, raw=True, @@ -147,13 +138,13 @@ def get_long_running_output(response): def _update_initial( - self, resource_group_name, disk_name, disk, custom_headers=None, raw=False, **operation_config): + self, disk, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'diskName': self._serialize.url("disk_name", disk_name, 'str') + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), + 'diskName': self._serialize.url("self.config.disk_name", self.config.disk_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -198,16 +189,9 @@ def _update_initial( return deserialized def update( - self, resource_group_name, disk_name, disk, custom_headers=None, raw=False, polling=True, **operation_config): + self, disk, custom_headers=None, raw=False, polling=True, **operation_config): """Updates (patches) a disk. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param disk_name: The name of the managed disk that is being created. - The name can't be changed after the disk is created. Supported - characters for the name are a-z, A-Z, 0-9 and _. The maximum name - length is 80 characters. - :type disk_name: str :param disk: Disk object supplied in the body of the Patch disk operation. :type disk: ~azure.mgmt.compute.v2018_04_01.models.DiskUpdate @@ -225,8 +209,6 @@ def update( :raises: :class:`CloudError` """ raw_result = self._update_initial( - resource_group_name=resource_group_name, - disk_name=disk_name, disk=disk, custom_headers=custom_headers, raw=True, @@ -252,16 +234,9 @@ def get_long_running_output(response): update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}'} def get( - self, resource_group_name, disk_name, custom_headers=None, raw=False, **operation_config): + self, custom_headers=None, raw=False, **operation_config): """Gets information about a disk. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param disk_name: The name of the managed disk that is being created. - The name can't be changed after the disk is created. Supported - characters for the name are a-z, A-Z, 0-9 and _. The maximum name - length is 80 characters. - :type disk_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -276,8 +251,8 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'diskName': self._serialize.url("disk_name", disk_name, 'str') + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), + 'diskName': self._serialize.url("self.config.disk_name", self.config.disk_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -318,13 +293,13 @@ def get( def _delete_initial( - self, resource_group_name, disk_name, custom_headers=None, raw=False, **operation_config): + self, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'diskName': self._serialize.url("disk_name", disk_name, 'str') + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), + 'diskName': self._serialize.url("self.config.disk_name", self.config.disk_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -363,16 +338,9 @@ def _delete_initial( return deserialized def delete( - self, resource_group_name, disk_name, custom_headers=None, raw=False, polling=True, **operation_config): + self, custom_headers=None, raw=False, polling=True, **operation_config): """Deletes a disk. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param disk_name: The name of the managed disk that is being created. - The name can't be changed after the disk is created. Supported - characters for the name are a-z, A-Z, 0-9 and _. The maximum name - length is 80 characters. - :type disk_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -387,8 +355,6 @@ def delete( :raises: :class:`CloudError` """ raw_result = self._delete_initial( - resource_group_name=resource_group_name, - disk_name=disk_name, custom_headers=custom_headers, raw=True, **operation_config @@ -413,11 +379,9 @@ def get_long_running_output(response): delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}'} def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): + self, custom_headers=None, raw=False, **operation_config): """Lists all the disks under a resource group. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -435,7 +399,7 @@ def internal_paging(next_link=None, raw=False): url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -547,15 +511,15 @@ def internal_paging(next_link=None, raw=False): def _grant_access_initial( - self, resource_group_name, disk_name, access, duration_in_seconds, custom_headers=None, raw=False, **operation_config): + self, access, duration_in_seconds, custom_headers=None, raw=False, **operation_config): grant_access_data = models.GrantAccessData(access=access, duration_in_seconds=duration_in_seconds) # Construct URL url = self.grant_access.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'diskName': self._serialize.url("disk_name", disk_name, 'str') + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), + 'diskName': self._serialize.url("self.config.disk_name", self.config.disk_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -598,16 +562,9 @@ def _grant_access_initial( return deserialized def grant_access( - self, resource_group_name, disk_name, access, duration_in_seconds, custom_headers=None, raw=False, polling=True, **operation_config): + self, access, duration_in_seconds, custom_headers=None, raw=False, polling=True, **operation_config): """Grants access to a disk. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param disk_name: The name of the managed disk that is being created. - The name can't be changed after the disk is created. Supported - characters for the name are a-z, A-Z, 0-9 and _. The maximum name - length is 80 characters. - :type disk_name: str :param access: Possible values include: 'None', 'Read' :type access: str or ~azure.mgmt.compute.v2018_04_01.models.AccessLevel @@ -628,8 +585,6 @@ def grant_access( :raises: :class:`CloudError` """ raw_result = self._grant_access_initial( - resource_group_name=resource_group_name, - disk_name=disk_name, access=access, duration_in_seconds=duration_in_seconds, custom_headers=custom_headers, @@ -657,13 +612,13 @@ def get_long_running_output(response): def _revoke_access_initial( - self, resource_group_name, disk_name, custom_headers=None, raw=False, **operation_config): + self, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.revoke_access.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'diskName': self._serialize.url("disk_name", disk_name, 'str') + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), + 'diskName': self._serialize.url("self.config.disk_name", self.config.disk_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -702,16 +657,9 @@ def _revoke_access_initial( return deserialized def revoke_access( - self, resource_group_name, disk_name, custom_headers=None, raw=False, polling=True, **operation_config): + self, custom_headers=None, raw=False, polling=True, **operation_config): """Revokes access to a disk. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param disk_name: The name of the managed disk that is being created. - The name can't be changed after the disk is created. Supported - characters for the name are a-z, A-Z, 0-9 and _. The maximum name - length is 80 characters. - :type disk_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -726,8 +674,6 @@ def revoke_access( :raises: :class:`CloudError` """ raw_result = self._revoke_access_initial( - resource_group_name=resource_group_name, - disk_name=disk_name, custom_headers=custom_headers, raw=True, **operation_config diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/snapshots_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/snapshots_operations.py index b6c4d1bf4b74..6cc6210c63b9 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/snapshots_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/snapshots_operations.py @@ -41,12 +41,12 @@ def __init__(self, client, config, serializer, deserializer): def _create_or_update_initial( - self, resource_group_name, snapshot_name, snapshot, custom_headers=None, raw=False, **operation_config): + self, snapshot_name, snapshot, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.create_or_update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), 'snapshotName': self._serialize.url("snapshot_name", snapshot_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -92,11 +92,9 @@ def _create_or_update_initial( return deserialized def create_or_update( - self, resource_group_name, snapshot_name, snapshot, custom_headers=None, raw=False, polling=True, **operation_config): + self, snapshot_name, snapshot, custom_headers=None, raw=False, polling=True, **operation_config): """Creates or updates a snapshot. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str :param snapshot_name: The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length @@ -119,7 +117,6 @@ def create_or_update( :raises: :class:`CloudError` """ raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, snapshot_name=snapshot_name, snapshot=snapshot, custom_headers=custom_headers, @@ -147,12 +144,12 @@ def get_long_running_output(response): def _update_initial( - self, resource_group_name, snapshot_name, snapshot, custom_headers=None, raw=False, **operation_config): + self, snapshot_name, snapshot, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), 'snapshotName': self._serialize.url("snapshot_name", snapshot_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -198,11 +195,9 @@ def _update_initial( return deserialized def update( - self, resource_group_name, snapshot_name, snapshot, custom_headers=None, raw=False, polling=True, **operation_config): + self, snapshot_name, snapshot, custom_headers=None, raw=False, polling=True, **operation_config): """Updates (patches) a snapshot. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str :param snapshot_name: The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length @@ -225,7 +220,6 @@ def update( :raises: :class:`CloudError` """ raw_result = self._update_initial( - resource_group_name=resource_group_name, snapshot_name=snapshot_name, snapshot=snapshot, custom_headers=custom_headers, @@ -252,11 +246,9 @@ def get_long_running_output(response): update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}'} def get( - self, resource_group_name, snapshot_name, custom_headers=None, raw=False, **operation_config): + self, snapshot_name, custom_headers=None, raw=False, **operation_config): """Gets information about a snapshot. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str :param snapshot_name: The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length @@ -276,7 +268,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), 'snapshotName': self._serialize.url("snapshot_name", snapshot_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -318,12 +310,12 @@ def get( def _delete_initial( - self, resource_group_name, snapshot_name, custom_headers=None, raw=False, **operation_config): + self, snapshot_name, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), 'snapshotName': self._serialize.url("snapshot_name", snapshot_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -363,11 +355,9 @@ def _delete_initial( return deserialized def delete( - self, resource_group_name, snapshot_name, custom_headers=None, raw=False, polling=True, **operation_config): + self, snapshot_name, custom_headers=None, raw=False, polling=True, **operation_config): """Deletes a snapshot. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str :param snapshot_name: The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length @@ -387,7 +377,6 @@ def delete( :raises: :class:`CloudError` """ raw_result = self._delete_initial( - resource_group_name=resource_group_name, snapshot_name=snapshot_name, custom_headers=custom_headers, raw=True, @@ -413,11 +402,9 @@ def get_long_running_output(response): delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}'} def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): + self, custom_headers=None, raw=False, **operation_config): """Lists snapshots under a resource group. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -435,7 +422,7 @@ def internal_paging(next_link=None, raw=False): url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -547,14 +534,14 @@ def internal_paging(next_link=None, raw=False): def _grant_access_initial( - self, resource_group_name, snapshot_name, access, duration_in_seconds, custom_headers=None, raw=False, **operation_config): + self, snapshot_name, access, duration_in_seconds, custom_headers=None, raw=False, **operation_config): grant_access_data = models.GrantAccessData(access=access, duration_in_seconds=duration_in_seconds) # Construct URL url = self.grant_access.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), 'snapshotName': self._serialize.url("snapshot_name", snapshot_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -598,11 +585,9 @@ def _grant_access_initial( return deserialized def grant_access( - self, resource_group_name, snapshot_name, access, duration_in_seconds, custom_headers=None, raw=False, polling=True, **operation_config): + self, snapshot_name, access, duration_in_seconds, custom_headers=None, raw=False, polling=True, **operation_config): """Grants access to a snapshot. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str :param snapshot_name: The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length @@ -628,7 +613,6 @@ def grant_access( :raises: :class:`CloudError` """ raw_result = self._grant_access_initial( - resource_group_name=resource_group_name, snapshot_name=snapshot_name, access=access, duration_in_seconds=duration_in_seconds, @@ -657,12 +641,12 @@ def get_long_running_output(response): def _revoke_access_initial( - self, resource_group_name, snapshot_name, custom_headers=None, raw=False, **operation_config): + self, snapshot_name, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.revoke_access.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("self.config.resource_group_name", self.config.resource_group_name, 'str'), 'snapshotName': self._serialize.url("snapshot_name", snapshot_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -702,11 +686,9 @@ def _revoke_access_initial( return deserialized def revoke_access( - self, resource_group_name, snapshot_name, custom_headers=None, raw=False, polling=True, **operation_config): + self, snapshot_name, custom_headers=None, raw=False, polling=True, **operation_config): """Revokes access to a snapshot. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str :param snapshot_name: The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length @@ -726,7 +708,6 @@ def revoke_access( :raises: :class:`CloudError` """ raw_result = self._revoke_access_initial( - resource_group_name=resource_group_name, snapshot_name=snapshot_name, custom_headers=custom_headers, raw=True,