Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-timeseriesinsights] Updating Swagger spec and samples for GA #615

Open
wants to merge 1 commit into
base: sdkAutomation/azure-mgmt-timeseriesinsights
Choose a base branch
from
Open
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 @@ -216,7 +216,7 @@ def get(


def _update_initial(
self, resource_group_name, environment_name, standard_environment_update_parameters, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, environment_name, long_term_environment_update_parameters, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.update.metadata['url']
path_format_arguments = {
Expand All @@ -242,7 +242,7 @@ def _update_initial(
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct body
body_content = self._serialize.body(standard_environment_update_parameters, 'StandardEnvironmentUpdateParameters')
body_content = self._serialize.body(long_term_environment_update_parameters, 'LongTermEnvironmentUpdateParameters')

# Construct and send request
request = self._client.patch(url, query_parameters, header_parameters, body_content)
Expand All @@ -265,7 +265,7 @@ def _update_initial(
return deserialized

def update(
self, resource_group_name, environment_name, standard_environment_update_parameters, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, environment_name, long_term_environment_update_parameters, custom_headers=None, raw=False, polling=True, **operation_config):
"""Updates the environment with the specified name in the specified
subscription and resource group.

Expand All @@ -274,10 +274,10 @@ def update(
:param environment_name: The name of the Time Series Insights
environment associated with the specified resource group.
:type environment_name: str
:param standard_environment_update_parameters: Request object that
:param long_term_environment_update_parameters: Request object that
contains the updated information for the environment.
:type standard_environment_update_parameters:
~azure.mgmt.timeseriesinsights.models.StandardEnvironmentUpdateParameters
:type long_term_environment_update_parameters:
~azure.mgmt.timeseriesinsights.models.LongTermEnvironmentUpdateParameters
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand All @@ -294,7 +294,7 @@ def update(
raw_result = self._update_initial(
resource_group_name=resource_group_name,
environment_name=environment_name,
standard_environment_update_parameters=standard_environment_update_parameters,
long_term_environment_update_parameters=long_term_environment_update_parameters,
custom_headers=custom_headers,
raw=True,
**operation_config
Expand Down