Skip to content

Commit

Permalink
Generated from 372c468ed72f67efcbb2a9442e136c99f8839a28 (#2003)
Browse files Browse the repository at this point in the history
Change statusMessage property to wildcard type.

The statusMessage can be a string or a JSON object, so model it as a
wildcard type.
  • Loading branch information
AutorestCI committed Mar 7, 2018
1 parent f262d80 commit a13b28b
Show file tree
Hide file tree
Showing 35 changed files with 521 additions and 278 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class FeaturesOperations(object):
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2015-12-01".
"""

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

if not next_link:
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/features'
url = self.list_all.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
Expand Down Expand Up @@ -101,6 +101,7 @@ def internal_paging(next_link=None, raw=False):
return client_raw_response

return deserialized
list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Features/features'}

def list(
self, resource_provider_namespace, custom_headers=None, raw=False, **operation_config):
Expand All @@ -124,7 +125,7 @@ def internal_paging(next_link=None, raw=False):

if not next_link:
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features'
url = self.list.metadata['url']
path_format_arguments = {
'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
Expand Down Expand Up @@ -170,6 +171,7 @@ def internal_paging(next_link=None, raw=False):
return client_raw_response

return deserialized
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features'}

def get(
self, resource_provider_namespace, feature_name, custom_headers=None, raw=False, **operation_config):
Expand All @@ -191,7 +193,7 @@ def get(
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}'
url = self.get.metadata['url']
path_format_arguments = {
'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'),
'featureName': self._serialize.url("feature_name", feature_name, 'str'),
Expand Down Expand Up @@ -232,6 +234,7 @@ def get(
return client_raw_response

return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}'}

def register(
self, resource_provider_namespace, feature_name, custom_headers=None, raw=False, **operation_config):
Expand All @@ -253,7 +256,7 @@ def register(
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register'
url = self.register.metadata['url']
path_format_arguments = {
'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'),
'featureName': self._serialize.url("feature_name", feature_name, 'str'),
Expand Down Expand Up @@ -294,3 +297,4 @@ def register(
return client_raw_response

return deserialized
register.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register'}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ResourceLinksOperations(object):
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for the operation. Constant value: "2016-09-01".
"""

Expand Down Expand Up @@ -57,7 +57,7 @@ def delete(
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/{linkId}'
url = self.delete.metadata['url']
path_format_arguments = {
'linkId': self._serialize.url("link_id", link_id, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -89,6 +89,7 @@ def delete(
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
delete.metadata = {'url': '/{linkId}'}

def create_or_update(
self, link_id, properties=None, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -116,7 +117,7 @@ def create_or_update(
parameters = models.ResourceLink(properties=properties)

# Construct URL
url = '/{linkId}'
url = self.create_or_update.metadata['url']
path_format_arguments = {
'linkId': self._serialize.url("link_id", link_id, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -161,6 +162,7 @@ def create_or_update(
return client_raw_response

return deserialized
create_or_update.metadata = {'url': '/{linkId}'}

def get(
self, link_id, custom_headers=None, raw=False, **operation_config):
Expand All @@ -181,7 +183,7 @@ def get(
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/{linkId}'
url = self.get.metadata['url']
path_format_arguments = {
'linkId': self._serialize.url("link_id", link_id, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -220,6 +222,7 @@ def get(
return client_raw_response

return deserialized
get.metadata = {'url': '/{linkId}'}

def list_at_subscription(
self, filter=None, custom_headers=None, raw=False, **operation_config):
Expand All @@ -243,7 +246,7 @@ def internal_paging(next_link=None, raw=False):

if not next_link:
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links'
url = self.list_at_subscription.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
Expand Down Expand Up @@ -290,6 +293,7 @@ def internal_paging(next_link=None, raw=False):
return client_raw_response

return deserialized
list_at_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links'}

def list_at_source_scope(
self, scope, filter=None, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -318,7 +322,7 @@ def internal_paging(next_link=None, raw=False):

if not next_link:
# Construct URL
url = '/{scope}/providers/Microsoft.Resources/links'
url = self.list_at_source_scope.metadata['url']
path_format_arguments = {
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -365,3 +369,4 @@ def internal_paging(next_link=None, raw=False):
return client_raw_response

return deserialized
list_at_source_scope.metadata = {'url': '/{scope}/providers/Microsoft.Resources/links'}
Loading

0 comments on commit a13b28b

Please sign in to comment.