Skip to content

Commit

Permalink
[AutoPR msi/resource-manager] Update manage service identity api vers…
Browse files Browse the repository at this point in the history
…ion (#3808)

* Generated from c5e3d7fb237ee96094a2198b3515dc48c03ceded

update Managed Service Identity api version to 2018-11-30, the differnt from previous api-version is the clientSecretUrl can be null if identity is user assigned

* Packaging update of azure-mgmt-msi

* Generated from d191254c74aaea1bc9db348a4be70aedbfed96b1

feedback
  • Loading branch information
AutorestCI authored Nov 28, 2018
1 parent ade0c7d commit 867994d
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 32 deletions.
3 changes: 3 additions & 0 deletions azure-mgmt-msi/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(
super(ManagedServiceIdentityClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2015-08-31-preview'
self.api_version = '2018-11-30'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
4 changes: 3 additions & 1 deletion azure-mgmt-msi/azure/mgmt/msi/models/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class Identity(Model):
random generated UUID by MSI.
:vartype client_id: str
:ivar client_secret_url: The ManagedServiceIdentity DataPlane URL that
can be queried to obtain the identity credentials.
can be queried to obtain the identity credentials. If identity is user
assigned, then the clientSecretUrl will not be present in the response,
otherwise it will be present.
:vartype client_secret_url: str
:ivar type: The type of resource i.e.
Microsoft.ManagedIdentity/userAssignedIdentities. Possible values include:
Expand Down
4 changes: 3 additions & 1 deletion azure-mgmt-msi/azure/mgmt/msi/models/identity_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class Identity(Model):
random generated UUID by MSI.
:vartype client_id: str
:ivar client_secret_url: The ManagedServiceIdentity DataPlane URL that
can be queried to obtain the identity credentials.
can be queried to obtain the identity credentials. If identity is user
assigned, then the clientSecretUrl will not be present in the response,
otherwise it will be present.
:vartype client_secret_url: str
:ivar type: The type of resource i.e.
Microsoft.ManagedIdentity/userAssignedIdentities. Possible values include:
Expand Down
11 changes: 5 additions & 6 deletions azure-mgmt-msi/azure/mgmt/msi/operations/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Operations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of API to invoke. Constant value: "2015-08-31-preview".
:ivar api_version: Version of API to invoke. Constant value: "2018-11-30".
"""

models = models
Expand All @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2015-08-31-preview"
self.api_version = "2018-11-30"

self.config = config

Expand Down Expand Up @@ -67,7 +67,7 @@ def internal_paging(next_link=None, raw=False):

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -76,9 +76,8 @@ def internal_paging(next_link=None, raw=False):
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, stream=False, **operation_config)
request = self._client.get(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class UserAssignedIdentitiesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of API to invoke. Constant value: "2015-08-31-preview".
:ivar api_version: Version of API to invoke. Constant value: "2018-11-30".
"""

models = models
Expand All @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2015-08-31-preview"
self.api_version = "2018-11-30"

self.config = config

Expand Down Expand Up @@ -72,7 +72,7 @@ def internal_paging(next_link=None, raw=False):

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -81,9 +81,8 @@ def internal_paging(next_link=None, raw=False):
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, stream=False, **operation_config)
request = self._client.get(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down Expand Up @@ -142,7 +141,7 @@ def internal_paging(next_link=None, raw=False):

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -151,9 +150,8 @@ def internal_paging(next_link=None, raw=False):
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, stream=False, **operation_config)
request = self._client.get(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down Expand Up @@ -214,6 +212,7 @@ def create_or_update(

# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
Expand All @@ -226,9 +225,8 @@ def create_or_update(
body_content = self._serialize.body(parameters, 'Identity')

# Construct and send request
request = self._client.put(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200, 201]:
exp = CloudError(response)
Expand Down Expand Up @@ -289,6 +287,7 @@ def update(

# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
Expand All @@ -301,9 +300,8 @@ def update(
body_content = self._serialize.body(parameters, 'Identity')

# Construct and send request
request = self._client.patch(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
request = self._client.patch(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down Expand Up @@ -356,7 +354,7 @@ def get(

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -365,8 +363,8 @@ def get(
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, stream=False, **operation_config)
request = self._client.get(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down Expand Up @@ -418,7 +416,6 @@ def delete(

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -427,8 +424,8 @@ def delete(
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.delete(url, query_parameters)
response = self._client.send(request, header_parameters, stream=False, **operation_config)
request = self._client.delete(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200, 204]:
exp = CloudError(response)
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-msi/azure/mgmt/msi/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.2.0"
VERSION = "2018-11-30"

0 comments on commit 867994d

Please sign in to comment.