Skip to content
Prev Previous commit
Next Next commit
Generated from 92ff8e941e2653e47b92665f1a30943ac968fe84
Fixed duplicated operation id issue
  • Loading branch information
AutorestCI committed Mar 30, 2018
commit 86cd4ceb92aaabde8090fff8d3cc700a9d6702ca
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def get(
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}'}

def list_by_source_id(
def list(
self, source_id, category, tags=None, can_fetch_content=None, custom_headers=None, raw=False, **operation_config):
"""Gets a list of workbooks.

Expand Down Expand Up @@ -401,7 +401,7 @@ def list_by_source_id(
:class:`WorkbookErrorResponseException<azure.mgmt.applicationinsights.models.WorkbookErrorResponseException>`
"""
# Construct URL
url = self.list_by_source_id.metadata['url']
url = self.list.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
Expand Down Expand Up @@ -444,7 +444,7 @@ def list_by_source_id(
return client_raw_response

return deserialized
list_by_source_id.metadata = {'url': '/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/links'}
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/links'}

def create_link(
self, link_properties, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -620,7 +620,7 @@ def delete_link(
return client_raw_response
delete_link.metadata = {'url': '/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/links'}

def list_by_source_id1(
def list_by_source_id(
self, resource_name, can_fetch_content=None, custom_headers=None, raw=False, **operation_config):
"""Gets a workbook link by a workbook resource name.

Expand All @@ -643,7 +643,7 @@ def list_by_source_id1(
:class:`WorkbookErrorResponseException<azure.mgmt.applicationinsights.models.WorkbookErrorResponseException>`
"""
# Construct URL
url = self.list_by_source_id1.metadata['url']
url = self.list_by_source_id.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceName': self._serialize.url("resource_name", resource_name, 'str')
Expand Down Expand Up @@ -683,4 +683,4 @@ def list_by_source_id1(
return client_raw_response

return deserialized
list_by_source_id1.metadata = {'url': '/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}/links'}
list_by_source_id.metadata = {'url': '/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}/links'}