From 182d8c72f661ee91ed63d44248e89ae94fb557c7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 21 Sep 2018 11:11:34 -0700 Subject: [PATCH] Generated from 7d119071aeb883d55e9860d9ccdbf74050ce856b (#3402) Made minor change to gallery swagger. --- .../mgmt/compute/v2018_06_01/models/target_region.py | 8 +++++++- .../compute/v2018_06_01/models/target_region_py3.py | 10 ++++++++-- .../v2018_06_01/operations/galleries_operations.py | 4 ++-- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region.py index 6f78878b7ba4..b320fae5716d 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region.py @@ -15,13 +15,19 @@ class TargetRegion(Model): """Describes the target region information. - :param name: The name of the region. + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the region. :type name: str :param regional_replica_count: The number of replicas of the Image Version to be created per region. This property is updateable. :type regional_replica_count: int """ + _validation = { + 'name': {'required': True}, + } + _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'regional_replica_count': {'key': 'regionalReplicaCount', 'type': 'int'}, diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region_py3.py index cb5f4ee5933e..955aa63044d6 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region_py3.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region_py3.py @@ -15,19 +15,25 @@ class TargetRegion(Model): """Describes the target region information. - :param name: The name of the region. + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the region. :type name: str :param regional_replica_count: The number of replicas of the Image Version to be created per region. This property is updateable. :type regional_replica_count: int """ + _validation = { + 'name': {'required': True}, + } + _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'regional_replica_count': {'key': 'regionalReplicaCount', 'type': 'int'}, } - def __init__(self, *, name: str=None, regional_replica_count: int=None, **kwargs) -> None: + def __init__(self, *, name: str, regional_replica_count: int=None, **kwargs) -> None: super(TargetRegion, self).__init__(**kwargs) self.name = name self.regional_replica_count = regional_replica_count diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/galleries_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/galleries_operations.py index e65047809cfa..9a04fb8a60e8 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/galleries_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/galleries_operations.py @@ -100,8 +100,8 @@ def create_or_update( :param resource_group_name: The name of the resource group. :type resource_group_name: str :param gallery_name: The name of the Shared Image Gallery. The allowed - characters are alphabets and numbers with dots, dashes, and periods - allowed in the middle. The maximum length is 80 characters. + characters are alphabets and numbers with dots and periods allowed in + the middle. The maximum length is 80 characters. :type gallery_name: str :param gallery: Parameters supplied to the create or update Shared Image Gallery operation.