Skip to content

Commit

Permalink
Generated from ebf8df0f1369a164100318bd295fa37d12d6ef7c (#2447)
Browse files Browse the repository at this point in the history
Remove a location parameter since ARM routes it as we are using an tracted resource type
  • Loading branch information
AutorestCI committed Jul 12, 2018
1 parent 98898e9 commit 3b9d4e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,14 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def get(
self, resource_group_name, resource_name, location, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config):
"""Get a single workbook by its resourceName.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param resource_name: The name of the Application Insights component
resource.
:type resource_name: str
:param location: The name of location where workbook is stored.
:type location: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
Expand All @@ -69,7 +67,6 @@ def get(

# Construct parameters
query_parameters = {}
query_parameters['location'] = self._serialize.query("location", location, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

# Construct headers
Expand Down Expand Up @@ -102,16 +99,14 @@ def get(
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'}

def delete(
self, resource_group_name, resource_name, location, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config):
"""Delete a workbook.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param resource_name: The name of the Application Insights component
resource.
:type resource_name: str
:param location: The name of location where workbook is stored.
:type location: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
Expand All @@ -133,7 +128,6 @@ def delete(

# Construct parameters
query_parameters = {}
query_parameters['location'] = self._serialize.query("location", location, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

# Construct headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def list_by_resource_group(
self, resource_group_name, location, category, tags=None, can_fetch_content=None, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, category, tags=None, can_fetch_content=None, custom_headers=None, raw=False, **operation_config):
"""Get all Workbooks defined within a specified resource group and
category.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param location: The name of location where workbook is stored.
:type location: str
:param category: Category of workbook to return. Possible values
include: 'workbook', 'TSG', 'performance', 'retention'
:type category: str or
Expand Down Expand Up @@ -76,7 +74,6 @@ def list_by_resource_group(

# Construct parameters
query_parameters = {}
query_parameters['location'] = self._serialize.query("location", location, 'str')
query_parameters['category'] = self._serialize.query("category", category, 'str')
if tags is not None:
query_parameters['tags'] = self._serialize.query("tags", tags, '[str]', div=',')
Expand Down

0 comments on commit 3b9d4e3

Please sign in to comment.