Skip to content

Commit

Permalink
CodeGen from PR 11939 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Public private branch 'credscan-fix' (Azure#11939)

* Fix credscan

* Fix more credentials
  • Loading branch information
SDKAuto committed Dec 7, 2020
1 parent e1f2009 commit 253c127
Show file tree
Hide file tree
Showing 9 changed files with 438 additions and 273 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
from .operations import ManagedDatabaseRestoreDetailsOperations
from .operations import ManagedDatabasesOperations
from .operations import ServerAzureADOnlyAuthenticationsOperations
from .operations import ImportExportOperations
from .operations import ManagedInstanceAzureADOnlyAuthenticationsOperations
from .operations import ServerTrustGroupsOperations
from . import models
Expand Down Expand Up @@ -301,8 +300,6 @@ class SqlManagementClient(SDKClient):
:vartype managed_databases: azure.mgmt.sql.operations.ManagedDatabasesOperations
:ivar server_azure_ad_only_authentications: ServerAzureADOnlyAuthentications operations
:vartype server_azure_ad_only_authentications: azure.mgmt.sql.operations.ServerAzureADOnlyAuthenticationsOperations
:ivar import_export: ImportExport operations
:vartype import_export: azure.mgmt.sql.operations.ImportExportOperations
:ivar managed_instance_azure_ad_only_authentications: ManagedInstanceAzureADOnlyAuthentications operations
:vartype managed_instance_azure_ad_only_authentications: azure.mgmt.sql.operations.ManagedInstanceAzureADOnlyAuthenticationsOperations
:ivar server_trust_groups: ServerTrustGroups operations
Expand Down Expand Up @@ -511,8 +508,6 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.server_azure_ad_only_authentications = ServerAzureADOnlyAuthenticationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.import_export = ImportExportOperations(
self._client, self.config, self._serialize, self._deserialize)
self.managed_instance_azure_ad_only_authentications = ManagedInstanceAzureADOnlyAuthenticationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.server_trust_groups = ServerTrustGroupsOperations(
Expand Down
4 changes: 2 additions & 2 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,13 +544,13 @@
ManagedInstanceLicenseType,
ManagedInstanceProxyOverride,
StorageAccountType,
StorageKeyType,
CreateMode,
SampleName,
DatabaseStatus,
DatabaseLicenseType,
DatabaseReadScale,
SecondaryType,
StorageKeyType,
ElasticPoolState,
ElasticPoolLicenseType,
LongTermRetentionDatabaseState,
Expand Down Expand Up @@ -911,13 +911,13 @@
'ManagedInstanceLicenseType',
'ManagedInstanceProxyOverride',
'StorageAccountType',
'StorageKeyType',
'CreateMode',
'SampleName',
'DatabaseStatus',
'DatabaseLicenseType',
'DatabaseReadScale',
'SecondaryType',
'StorageKeyType',
'ElasticPoolState',
'ElasticPoolLicenseType',
'LongTermRetentionDatabaseState',
Expand Down
14 changes: 6 additions & 8 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,7 @@ class Database(TrackedResource):
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param storage_account_type: The storage account type used to store
backups for this database. Currently the only supported option is GRS
(GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS'
:type storage_account_type: str or
~azure.mgmt.sql.models.StorageAccountType
:param min_capacity: Minimal capacity that database will always have
Expand All @@ -640,7 +639,7 @@ class Database(TrackedResource):
:vartype resumed_date: datetime
:param maintenance_configuration_id: Maintenance configuration id assigned
to the database. This configuration defines the period when the
maintenance updates will be rolled out.
maintenance updates will occur.
:type maintenance_configuration_id: str
"""

Expand Down Expand Up @@ -1289,8 +1288,7 @@ class DatabaseUpdate(Model):
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param storage_account_type: The storage account type used to store
backups for this database. Currently the only supported option is GRS
(GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS'
:type storage_account_type: str or
~azure.mgmt.sql.models.StorageAccountType
:param min_capacity: Minimal capacity that database will always have
Expand All @@ -1304,7 +1302,7 @@ class DatabaseUpdate(Model):
:vartype resumed_date: datetime
:param maintenance_configuration_id: Maintenance configuration id assigned
to the database. This configuration defines the period when the
maintenance updates will be rolled out.
maintenance updates will occur.
:type maintenance_configuration_id: str
:param tags: Resource tags.
:type tags: dict[str, str]
Expand Down Expand Up @@ -1905,7 +1903,7 @@ class ElasticPool(TrackedResource):
:type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType
:param maintenance_configuration_id: Maintenance configuration id assigned
to the elastic pool. This configuration defines the period when the
maintenance updates will be rolled out.
maintenance updates will will occur.
:type maintenance_configuration_id: str
"""

Expand Down Expand Up @@ -2557,7 +2555,7 @@ class ElasticPoolUpdate(Model):
:type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType
:param maintenance_configuration_id: Maintenance configuration id assigned
to the elastic pool. This configuration defines the period when the
maintenance updates will be rolled out.
maintenance updates will will occur.
:type maintenance_configuration_id: str
:param tags: Resource tags.
:type tags: dict[str, str]
Expand Down
14 changes: 6 additions & 8 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,7 @@ class Database(TrackedResource):
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param storage_account_type: The storage account type used to store
backups for this database. Currently the only supported option is GRS
(GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS'
:type storage_account_type: str or
~azure.mgmt.sql.models.StorageAccountType
:param min_capacity: Minimal capacity that database will always have
Expand All @@ -640,7 +639,7 @@ class Database(TrackedResource):
:vartype resumed_date: datetime
:param maintenance_configuration_id: Maintenance configuration id assigned
to the database. This configuration defines the period when the
maintenance updates will be rolled out.
maintenance updates will occur.
:type maintenance_configuration_id: str
"""

Expand Down Expand Up @@ -1289,8 +1288,7 @@ class DatabaseUpdate(Model):
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param storage_account_type: The storage account type used to store
backups for this database. Currently the only supported option is GRS
(GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS'
:type storage_account_type: str or
~azure.mgmt.sql.models.StorageAccountType
:param min_capacity: Minimal capacity that database will always have
Expand All @@ -1304,7 +1302,7 @@ class DatabaseUpdate(Model):
:vartype resumed_date: datetime
:param maintenance_configuration_id: Maintenance configuration id assigned
to the database. This configuration defines the period when the
maintenance updates will be rolled out.
maintenance updates will occur.
:type maintenance_configuration_id: str
:param tags: Resource tags.
:type tags: dict[str, str]
Expand Down Expand Up @@ -1905,7 +1903,7 @@ class ElasticPool(TrackedResource):
:type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType
:param maintenance_configuration_id: Maintenance configuration id assigned
to the elastic pool. This configuration defines the period when the
maintenance updates will be rolled out.
maintenance updates will will occur.
:type maintenance_configuration_id: str
"""

Expand Down Expand Up @@ -2557,7 +2555,7 @@ class ElasticPoolUpdate(Model):
:type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType
:param maintenance_configuration_id: Maintenance configuration id assigned
to the elastic pool. This configuration defines the period when the
maintenance updates will be rolled out.
maintenance updates will will occur.
:type maintenance_configuration_id: str
:param tags: Resource tags.
:type tags: dict[str, str]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -635,12 +635,6 @@ class StorageAccountType(str, Enum):
zrs = "ZRS"


class StorageKeyType(str, Enum):

shared_access_key = "SharedAccessKey"
storage_access_key = "StorageAccessKey"


class CreateMode(str, Enum):

default = "Default"
Expand Down Expand Up @@ -705,6 +699,12 @@ class SecondaryType(str, Enum):
named = "Named"


class StorageKeyType(str, Enum):

shared_access_key = "SharedAccessKey"
storage_access_key = "StorageAccessKey"


class ElasticPoolState(str, Enum):

creating = "Creating"
Expand Down
2 changes: 0 additions & 2 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
from ._managed_database_restore_details_operations import ManagedDatabaseRestoreDetailsOperations
from ._managed_databases_operations import ManagedDatabasesOperations
from ._server_azure_ad_only_authentications_operations import ServerAzureADOnlyAuthenticationsOperations
from ._import_export_operations import ImportExportOperations
from ._managed_instance_azure_ad_only_authentications_operations import ManagedInstanceAzureADOnlyAuthenticationsOperations
from ._server_trust_groups_operations import ServerTrustGroupsOperations

Expand Down Expand Up @@ -198,7 +197,6 @@
'ManagedDatabaseRestoreDetailsOperations',
'ManagedDatabasesOperations',
'ServerAzureADOnlyAuthenticationsOperations',
'ImportExportOperations',
'ManagedInstanceAzureADOnlyAuthenticationsOperations',
'ServerTrustGroupsOperations',
]
Loading

0 comments on commit 253c127

Please sign in to comment.