@@ -321,6 +321,11 @@ class BackupShortTermRetentionPolicy(ProxyResource):
321
321
:param retention_days: The backup retention period in days. This is how
322
322
many days Point-in-Time Restore will be supported.
323
323
:type retention_days: int
324
+ :param diff_backup_interval_in_hours: The differential backup interval in
325
+ hours. This is how many interval hours between each differential backup
326
+ will be supported. This is only applicable to live databases but not
327
+ dropped databases.
328
+ :type diff_backup_interval_in_hours: int
324
329
"""
325
330
326
331
_validation = {
@@ -334,11 +339,13 @@ class BackupShortTermRetentionPolicy(ProxyResource):
334
339
'name': {'key': 'name', 'type': 'str'},
335
340
'type': {'key': 'type', 'type': 'str'},
336
341
'retention_days': {'key': 'properties.retentionDays', 'type': 'int'},
342
+ 'diff_backup_interval_in_hours': {'key': 'properties.diffBackupIntervalInHours', 'type': 'int'},
337
343
}
338
344
339
345
def __init__(self, **kwargs):
340
346
super(BackupShortTermRetentionPolicy, self).__init__(**kwargs)
341
347
self.retention_days = kwargs.get('retention_days', None)
348
+ self.diff_backup_interval_in_hours = kwargs.get('diff_backup_interval_in_hours', None)
342
349
343
350
344
351
class CheckNameAvailabilityRequest(Model):
@@ -9357,24 +9364,28 @@ class ReplicationLink(ProxyResource):
9357
9364
:vartype partner_database: str
9358
9365
:ivar partner_location: Resource partner location.
9359
9366
:vartype partner_location: str
9360
- :ivar role: Local replication role.
9361
- :vartype role: str
9362
- :ivar partner_role: Partner replication role.
9363
- :vartype partner_role: str
9367
+ :ivar role: Local replication role. Possible values include: 'Primary',
9368
+ 'Secondary', 'NonReadableSecondary', 'Source', 'Copy'
9369
+ :vartype role: str or ~azure.mgmt.sql.models.ReplicationRole
9370
+ :ivar partner_role: Partner replication role. Possible values include:
9371
+ 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', 'Copy'
9372
+ :vartype partner_role: str or ~azure.mgmt.sql.models.ReplicationRole
9364
9373
:ivar replication_mode: Replication mode.
9365
9374
:vartype replication_mode: str
9366
9375
:ivar start_time: Time at which the link was created.
9367
9376
:vartype start_time: datetime
9368
9377
:ivar percent_complete: Seeding completion percentage for the link.
9369
9378
:vartype percent_complete: int
9370
9379
:ivar replication_state: Replication state (PENDING, SEEDING, CATCHUP,
9371
- SUSPENDED).
9372
- :vartype replication_state: str
9380
+ SUSPENDED). Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP',
9381
+ 'SUSPENDED'
9382
+ :vartype replication_state: str or ~azure.mgmt.sql.models.ReplicationState
9373
9383
:ivar is_termination_allowed: Whether the user is currently allowed to
9374
9384
terminate the link.
9375
9385
:vartype is_termination_allowed: bool
9376
- :ivar link_type: Link type (GEO, NAMED).
9377
- :vartype link_type: str
9386
+ :ivar link_type: Link type (GEO, NAMED). Possible values include: 'GEO',
9387
+ 'NAMED'
9388
+ :vartype link_type: str or ~azure.mgmt.sql.models.ReplicationLinkType
9378
9389
"""
9379
9390
9380
9391
_validation = {
@@ -9401,8 +9412,8 @@ class ReplicationLink(ProxyResource):
9401
9412
'partner_server': {'key': 'properties.partnerServer', 'type': 'str'},
9402
9413
'partner_database': {'key': 'properties.partnerDatabase', 'type': 'str'},
9403
9414
'partner_location': {'key': 'properties.partnerLocation', 'type': 'str'},
9404
- 'role': {'key': 'properties.role', 'type': 'str '},
9405
- 'partner_role': {'key': 'properties.partnerRole', 'type': 'str '},
9415
+ 'role': {'key': 'properties.role', 'type': 'ReplicationRole '},
9416
+ 'partner_role': {'key': 'properties.partnerRole', 'type': 'ReplicationRole '},
9406
9417
'replication_mode': {'key': 'properties.replicationMode', 'type': 'str'},
9407
9418
'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'},
9408
9419
'percent_complete': {'key': 'properties.percentComplete', 'type': 'int'},
@@ -10081,7 +10092,7 @@ class Server(TrackedResource):
10081
10092
allowed for this server. Value is optional but if passed in, must be
10082
10093
'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'
10083
10094
:type public_network_access: str or
10084
- ~azure.mgmt.sql.models.ServerPublicNetworkAccess
10095
+ ~azure.mgmt.sql.models.ServerNetworkAccessFlag
10085
10096
:ivar workspace_feature: Whether or not existing server has a workspace
10086
10097
created and if it allows connection from workspace. Possible values
10087
10098
include: 'Connected', 'Disconnected'
@@ -10090,10 +10101,19 @@ class Server(TrackedResource):
10090
10101
:param primary_user_assigned_identity_id: The resource id of a user
10091
10102
assigned identity to be used by default.
10092
10103
:type primary_user_assigned_identity_id: str
10104
+ :param federated_client_id: The Client id used for cross tenant CMK
10105
+ scenario
10106
+ :type federated_client_id: str
10093
10107
:param key_id: A CMK URI of the key to use for encryption.
10094
10108
:type key_id: str
10095
10109
:param administrators: The Azure Active Directory identity of the server.
10096
10110
:type administrators: ~azure.mgmt.sql.models.ServerExternalAdministrator
10111
+ :param restrict_outbound_network_access: Whether or not to restrict
10112
+ outbound network access for this server. Value is optional but if passed
10113
+ in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled',
10114
+ 'Disabled'
10115
+ :type restrict_outbound_network_access: str or
10116
+ ~azure.mgmt.sql.models.ServerNetworkAccessFlag
10097
10117
"""
10098
10118
10099
10119
_validation = {
@@ -10126,8 +10146,10 @@ class Server(TrackedResource):
10126
10146
'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
10127
10147
'workspace_feature': {'key': 'properties.workspaceFeature', 'type': 'str'},
10128
10148
'primary_user_assigned_identity_id': {'key': 'properties.primaryUserAssignedIdentityId', 'type': 'str'},
10149
+ 'federated_client_id': {'key': 'properties.federatedClientId', 'type': 'str'},
10129
10150
'key_id': {'key': 'properties.keyId', 'type': 'str'},
10130
10151
'administrators': {'key': 'properties.administrators', 'type': 'ServerExternalAdministrator'},
10152
+ 'restrict_outbound_network_access': {'key': 'properties.restrictOutboundNetworkAccess', 'type': 'str'},
10131
10153
}
10132
10154
10133
10155
def __init__(self, **kwargs):
@@ -10144,8 +10166,10 @@ def __init__(self, **kwargs):
10144
10166
self.public_network_access = kwargs.get('public_network_access', None)
10145
10167
self.workspace_feature = None
10146
10168
self.primary_user_assigned_identity_id = kwargs.get('primary_user_assigned_identity_id', None)
10169
+ self.federated_client_id = kwargs.get('federated_client_id', None)
10147
10170
self.key_id = kwargs.get('key_id', None)
10148
10171
self.administrators = kwargs.get('administrators', None)
10172
+ self.restrict_outbound_network_access = kwargs.get('restrict_outbound_network_access', None)
10149
10173
10150
10174
10151
10175
class ServerAutomaticTuning(ProxyResource):
@@ -11140,7 +11164,7 @@ class ServerUpdate(Model):
11140
11164
allowed for this server. Value is optional but if passed in, must be
11141
11165
'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'
11142
11166
:type public_network_access: str or
11143
- ~azure.mgmt.sql.models.ServerPublicNetworkAccess
11167
+ ~azure.mgmt.sql.models.ServerNetworkAccessFlag
11144
11168
:ivar workspace_feature: Whether or not existing server has a workspace
11145
11169
created and if it allows connection from workspace. Possible values
11146
11170
include: 'Connected', 'Disconnected'
@@ -11149,10 +11173,19 @@ class ServerUpdate(Model):
11149
11173
:param primary_user_assigned_identity_id: The resource id of a user
11150
11174
assigned identity to be used by default.
11151
11175
:type primary_user_assigned_identity_id: str
11176
+ :param federated_client_id: The Client id used for cross tenant CMK
11177
+ scenario
11178
+ :type federated_client_id: str
11152
11179
:param key_id: A CMK URI of the key to use for encryption.
11153
11180
:type key_id: str
11154
11181
:param administrators: The Azure Active Directory identity of the server.
11155
11182
:type administrators: ~azure.mgmt.sql.models.ServerExternalAdministrator
11183
+ :param restrict_outbound_network_access: Whether or not to restrict
11184
+ outbound network access for this server. Value is optional but if passed
11185
+ in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled',
11186
+ 'Disabled'
11187
+ :type restrict_outbound_network_access: str or
11188
+ ~azure.mgmt.sql.models.ServerNetworkAccessFlag
11156
11189
:param tags: Resource tags.
11157
11190
:type tags: dict[str, str]
11158
11191
"""
@@ -11176,8 +11209,10 @@ class ServerUpdate(Model):
11176
11209
'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
11177
11210
'workspace_feature': {'key': 'properties.workspaceFeature', 'type': 'str'},
11178
11211
'primary_user_assigned_identity_id': {'key': 'properties.primaryUserAssignedIdentityId', 'type': 'str'},
11212
+ 'federated_client_id': {'key': 'properties.federatedClientId', 'type': 'str'},
11179
11213
'key_id': {'key': 'properties.keyId', 'type': 'str'},
11180
11214
'administrators': {'key': 'properties.administrators', 'type': 'ServerExternalAdministrator'},
11215
+ 'restrict_outbound_network_access': {'key': 'properties.restrictOutboundNetworkAccess', 'type': 'str'},
11181
11216
'tags': {'key': 'tags', 'type': '{str}'},
11182
11217
}
11183
11218
@@ -11194,8 +11229,10 @@ def __init__(self, **kwargs):
11194
11229
self.public_network_access = kwargs.get('public_network_access', None)
11195
11230
self.workspace_feature = None
11196
11231
self.primary_user_assigned_identity_id = kwargs.get('primary_user_assigned_identity_id', None)
11232
+ self.federated_client_id = kwargs.get('federated_client_id', None)
11197
11233
self.key_id = kwargs.get('key_id', None)
11198
11234
self.administrators = kwargs.get('administrators', None)
11235
+ self.restrict_outbound_network_access = kwargs.get('restrict_outbound_network_access', None)
11199
11236
self.tags = kwargs.get('tags', None)
11200
11237
11201
11238
0 commit comments