Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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