Skip to content

Commit

Permalink
Generated from 77bc40991e914b8cb6c2e560fec6431e50456b42 (#4957)
Browse files Browse the repository at this point in the history
Add minCapacity param to 2017-01-01-preview database
  • Loading branch information
AutorestCI authored Apr 25, 2019
1 parent 1415768 commit 3bb1a11
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
10 changes: 10 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ class Database(TrackedResource):
:type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale
:ivar current_sku: The name and tier of the SKU.
:vartype current_sku: ~azure.mgmt.sql.models.Sku
:param auto_pause_delay: Time in minutes after which database is
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param min_capacity: Minimal capacity that database will always have
allocated, if not paused
:type min_capacity: float
"""

_validation = {
Expand Down Expand Up @@ -202,6 +208,8 @@ class Database(TrackedResource):
'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'},
'read_scale': {'key': 'properties.readScale', 'type': 'str'},
'current_sku': {'key': 'properties.currentSku', 'type': 'Sku'},
'auto_pause_delay': {'key': 'properties.autoPauseDelay', 'type': 'int'},
'min_capacity': {'key': 'properties.minCapacity', 'type': 'float'},
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -235,3 +243,5 @@ def __init__(self, **kwargs):
self.earliest_restore_date = None
self.read_scale = kwargs.get('read_scale', None)
self.current_sku = None
self.auto_pause_delay = kwargs.get('auto_pause_delay', None)
self.min_capacity = kwargs.get('min_capacity', None)
12 changes: 11 additions & 1 deletion azure-mgmt-sql/azure/mgmt/sql/models/database_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ class Database(TrackedResource):
:type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale
:ivar current_sku: The name and tier of the SKU.
:vartype current_sku: ~azure.mgmt.sql.models.Sku
:param auto_pause_delay: Time in minutes after which database is
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param min_capacity: Minimal capacity that database will always have
allocated, if not paused
:type min_capacity: float
"""

_validation = {
Expand Down Expand Up @@ -202,9 +208,11 @@ class Database(TrackedResource):
'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'},
'read_scale': {'key': 'properties.readScale', 'type': 'str'},
'current_sku': {'key': 'properties.currentSku', 'type': 'Sku'},
'auto_pause_delay': {'key': 'properties.autoPauseDelay', 'type': 'int'},
'min_capacity': {'key': 'properties.minCapacity', 'type': 'float'},
}

def __init__(self, *, location: str, tags=None, sku=None, create_mode=None, collation: str=None, max_size_bytes: int=None, sample_name=None, elastic_pool_id: str=None, source_database_id: str=None, restore_point_in_time=None, source_database_deletion_date=None, recovery_services_recovery_point_id: str=None, long_term_retention_backup_resource_id: str=None, recoverable_database_id: str=None, restorable_dropped_database_id: str=None, catalog_collation=None, zone_redundant: bool=None, license_type=None, read_scale=None, **kwargs) -> None:
def __init__(self, *, location: str, tags=None, sku=None, create_mode=None, collation: str=None, max_size_bytes: int=None, sample_name=None, elastic_pool_id: str=None, source_database_id: str=None, restore_point_in_time=None, source_database_deletion_date=None, recovery_services_recovery_point_id: str=None, long_term_retention_backup_resource_id: str=None, recoverable_database_id: str=None, restorable_dropped_database_id: str=None, catalog_collation=None, zone_redundant: bool=None, license_type=None, read_scale=None, auto_pause_delay: int=None, min_capacity: float=None, **kwargs) -> None:
super(Database, self).__init__(location=location, tags=tags, **kwargs)
self.sku = sku
self.kind = None
Expand Down Expand Up @@ -235,3 +243,5 @@ def __init__(self, *, location: str, tags=None, sku=None, create_mode=None, coll
self.earliest_restore_date = None
self.read_scale = read_scale
self.current_sku = None
self.auto_pause_delay = auto_pause_delay
self.min_capacity = min_capacity
10 changes: 10 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/database_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ class DatabaseUpdate(Model):
:type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale
:ivar current_sku: The name and tier of the SKU.
:vartype current_sku: ~azure.mgmt.sql.models.Sku
:param auto_pause_delay: Time in minutes after which database is
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param min_capacity: Minimal capacity that database will always have
allocated, if not paused
:type min_capacity: float
:param tags: Resource tags.
:type tags: dict[str, str]
"""
Expand Down Expand Up @@ -174,6 +180,8 @@ class DatabaseUpdate(Model):
'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'},
'read_scale': {'key': 'properties.readScale', 'type': 'str'},
'current_sku': {'key': 'properties.currentSku', 'type': 'Sku'},
'auto_pause_delay': {'key': 'properties.autoPauseDelay', 'type': 'int'},
'min_capacity': {'key': 'properties.minCapacity', 'type': 'float'},
'tags': {'key': 'tags', 'type': '{str}'},
}

Expand Down Expand Up @@ -206,4 +214,6 @@ def __init__(self, **kwargs):
self.earliest_restore_date = None
self.read_scale = kwargs.get('read_scale', None)
self.current_sku = None
self.auto_pause_delay = kwargs.get('auto_pause_delay', None)
self.min_capacity = kwargs.get('min_capacity', None)
self.tags = kwargs.get('tags', None)
12 changes: 11 additions & 1 deletion azure-mgmt-sql/azure/mgmt/sql/models/database_update_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ class DatabaseUpdate(Model):
:type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale
:ivar current_sku: The name and tier of the SKU.
:vartype current_sku: ~azure.mgmt.sql.models.Sku
:param auto_pause_delay: Time in minutes after which database is
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param min_capacity: Minimal capacity that database will always have
allocated, if not paused
:type min_capacity: float
:param tags: Resource tags.
:type tags: dict[str, str]
"""
Expand Down Expand Up @@ -174,10 +180,12 @@ class DatabaseUpdate(Model):
'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'},
'read_scale': {'key': 'properties.readScale', 'type': 'str'},
'current_sku': {'key': 'properties.currentSku', 'type': 'Sku'},
'auto_pause_delay': {'key': 'properties.autoPauseDelay', 'type': 'int'},
'min_capacity': {'key': 'properties.minCapacity', 'type': 'float'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, *, sku=None, create_mode=None, collation: str=None, max_size_bytes: int=None, sample_name=None, elastic_pool_id: str=None, source_database_id: str=None, restore_point_in_time=None, source_database_deletion_date=None, recovery_services_recovery_point_id: str=None, long_term_retention_backup_resource_id: str=None, recoverable_database_id: str=None, restorable_dropped_database_id: str=None, catalog_collation=None, zone_redundant: bool=None, license_type=None, read_scale=None, tags=None, **kwargs) -> None:
def __init__(self, *, sku=None, create_mode=None, collation: str=None, max_size_bytes: int=None, sample_name=None, elastic_pool_id: str=None, source_database_id: str=None, restore_point_in_time=None, source_database_deletion_date=None, recovery_services_recovery_point_id: str=None, long_term_retention_backup_resource_id: str=None, recoverable_database_id: str=None, restorable_dropped_database_id: str=None, catalog_collation=None, zone_redundant: bool=None, license_type=None, read_scale=None, auto_pause_delay: int=None, min_capacity: float=None, tags=None, **kwargs) -> None:
super(DatabaseUpdate, self).__init__(**kwargs)
self.sku = sku
self.create_mode = create_mode
Expand Down Expand Up @@ -206,4 +214,6 @@ def __init__(self, *, sku=None, create_mode=None, collation: str=None, max_size_
self.earliest_restore_date = None
self.read_scale = read_scale
self.current_sku = None
self.auto_pause_delay = auto_pause_delay
self.min_capacity = min_capacity
self.tags = tags

0 comments on commit 3bb1a11

Please sign in to comment.