Skip to content

Commit c8c4bbd

Browse files
authored
Generated from 215b006997fc053d43337cd0455d8bdfdbe18898 (#4768)
Add Managed Identity envelope to SitePatchResource Add Managed Identity envelope to SitePatchResource object to allow PATCH identity operations to a site through Swagger
1 parent 8b8b822 commit c8c4bbd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

azure-mgmt-web/azure/mgmt/web/models/site_patch_resource.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ class SitePatchResource(ProxyOnlyResource):
142142
:vartype in_progress_operation_id: str
143143
:param geo_distributions: GeoDistributions for this site
144144
:type geo_distributions: list[~azure.mgmt.web.models.GeoDistribution]
145+
:param identity:
146+
:type identity: ~azure.mgmt.web.models.ManagedServiceIdentity
145147
"""
146148

147149
_validation = {
@@ -210,6 +212,7 @@ class SitePatchResource(ProxyOnlyResource):
210212
'redundancy_mode': {'key': 'properties.redundancyMode', 'type': 'RedundancyMode'},
211213
'in_progress_operation_id': {'key': 'properties.inProgressOperationId', 'type': 'str'},
212214
'geo_distributions': {'key': 'properties.geoDistributions', 'type': '[GeoDistribution]'},
215+
'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'},
213216
}
214217

215218
def __init__(self, **kwargs):
@@ -251,3 +254,4 @@ def __init__(self, **kwargs):
251254
self.redundancy_mode = kwargs.get('redundancy_mode', None)
252255
self.in_progress_operation_id = None
253256
self.geo_distributions = kwargs.get('geo_distributions', None)
257+
self.identity = kwargs.get('identity', None)

azure-mgmt-web/azure/mgmt/web/models/site_patch_resource_py3.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ class SitePatchResource(ProxyOnlyResource):
142142
:vartype in_progress_operation_id: str
143143
:param geo_distributions: GeoDistributions for this site
144144
:type geo_distributions: list[~azure.mgmt.web.models.GeoDistribution]
145+
:param identity:
146+
:type identity: ~azure.mgmt.web.models.ManagedServiceIdentity
145147
"""
146148

147149
_validation = {
@@ -210,9 +212,10 @@ class SitePatchResource(ProxyOnlyResource):
210212
'redundancy_mode': {'key': 'properties.redundancyMode', 'type': 'RedundancyMode'},
211213
'in_progress_operation_id': {'key': 'properties.inProgressOperationId', 'type': 'str'},
212214
'geo_distributions': {'key': 'properties.geoDistributions', 'type': '[GeoDistribution]'},
215+
'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'},
213216
}
214217

215-
def __init__(self, *, kind: str=None, enabled: bool=None, host_name_ssl_states=None, server_farm_id: str=None, reserved: bool=False, is_xenon: bool=False, hyper_v: bool=False, site_config=None, scm_site_also_stopped: bool=False, hosting_environment_profile=None, client_affinity_enabled: bool=None, client_cert_enabled: bool=None, client_cert_exclusion_paths: str=None, host_names_disabled: bool=None, container_size: int=None, daily_memory_time_quota: int=None, cloning_info=None, https_only: bool=None, redundancy_mode=None, geo_distributions=None, **kwargs) -> None:
218+
def __init__(self, *, kind: str=None, enabled: bool=None, host_name_ssl_states=None, server_farm_id: str=None, reserved: bool=False, is_xenon: bool=False, hyper_v: bool=False, site_config=None, scm_site_also_stopped: bool=False, hosting_environment_profile=None, client_affinity_enabled: bool=None, client_cert_enabled: bool=None, client_cert_exclusion_paths: str=None, host_names_disabled: bool=None, container_size: int=None, daily_memory_time_quota: int=None, cloning_info=None, https_only: bool=None, redundancy_mode=None, geo_distributions=None, identity=None, **kwargs) -> None:
216219
super(SitePatchResource, self).__init__(kind=kind, **kwargs)
217220
self.state = None
218221
self.host_names = None
@@ -251,3 +254,4 @@ def __init__(self, *, kind: str=None, enabled: bool=None, host_name_ssl_states=N
251254
self.redundancy_mode = redundancy_mode
252255
self.in_progress_operation_id = None
253256
self.geo_distributions = geo_distributions
257+
self.identity = identity

0 commit comments

Comments
 (0)