Skip to content
Merged
Prev Previous commit
Next Next commit
Generated from 664c041aeed346e4fdc3a2c8c29c1c59e7505b66
Fixed some typos.
  • Loading branch information
AutorestCI committed May 16, 2018
commit e7de46b84b9c36f22b60aa86b6f3725026a68527
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, client, config, serializer, deserializer):


def _create_or_update_initial(
self, resource_group_name, gallery_name, parameters, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, gallery_name, gallery, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.create_or_update.metadata['url']
path_format_arguments = {
Expand All @@ -66,7 +66,7 @@ def _create_or_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(parameters, 'Gallery')
body_content = self._serialize.body(gallery, 'Gallery')

# Construct and send request
request = self._client.put(url, query_parameters)
Expand All @@ -92,16 +92,16 @@ def _create_or_update_initial(
return deserialized

def create_or_update(
self, resource_group_name, gallery_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, gallery_name, gallery, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create or update a gallery.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param gallery_name: The name of the gallery.
:type gallery_name: str
:param parameters: Parameters supplied to the create or update gallery
:param gallery: Parameters supplied to the create or update gallery
operation.
:type parameters: ~azure.mgmt.compute.v2018_06_01.models.Gallery
:type gallery: ~azure.mgmt.compute.v2018_06_01.models.Gallery
: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 @@ -118,7 +118,7 @@ def create_or_update(
raw_result = self._create_or_update_initial(
resource_group_name=resource_group_name,
gallery_name=gallery_name,
parameters=parameters,
gallery=gallery,
custom_headers=custom_headers,
raw=True,
**operation_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, client, config, serializer, deserializer):


def _create_or_update_initial(
self, resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, parameters, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.create_or_update.metadata['url']
path_format_arguments = {
Expand All @@ -68,7 +68,7 @@ def _create_or_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(parameters, 'GalleryImageVersion')
body_content = self._serialize.body(gallery_image_version, 'GalleryImageVersion')

# Construct and send request
request = self._client.put(url, query_parameters)
Expand All @@ -94,7 +94,7 @@ def _create_or_update_initial(
return deserialized

def create_or_update(
self, resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create or update a gallery image version.

:param resource_group_name: The name of the resource group.
Expand All @@ -106,9 +106,9 @@ def create_or_update(
:param gallery_image_version_name: The name of the gallery image
version.
:type gallery_image_version_name: str
:param parameters: Parameters supplied to the create or update gallery
image version operation.
:type parameters:
:param gallery_image_version: Parameters supplied to the create or
update gallery image version operation.
:type gallery_image_version:
~azure.mgmt.compute.v2018_06_01.models.GalleryImageVersion
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
Expand All @@ -128,7 +128,7 @@ def create_or_update(
gallery_name=gallery_name,
gallery_image_name=gallery_image_name,
gallery_image_version_name=gallery_image_version_name,
parameters=parameters,
gallery_image_version=gallery_image_version,
custom_headers=custom_headers,
raw=True,
**operation_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, client, config, serializer, deserializer):


def _create_or_update_initial(
self, resource_group_name, gallery_name, gallery_image_name, parameters, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, gallery_name, gallery_image_name, gallery_image, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.create_or_update.metadata['url']
path_format_arguments = {
Expand All @@ -67,7 +67,7 @@ def _create_or_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(parameters, 'GalleryImage')
body_content = self._serialize.body(gallery_image, 'GalleryImage')

# Construct and send request
request = self._client.put(url, query_parameters)
Expand All @@ -93,7 +93,7 @@ def _create_or_update_initial(
return deserialized

def create_or_update(
self, resource_group_name, gallery_name, gallery_image_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, gallery_name, gallery_image_name, gallery_image, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create or update a gallery image.

:param resource_group_name: The name of the resource group.
Expand All @@ -102,9 +102,10 @@ def create_or_update(
:type gallery_name: str
:param gallery_image_name: The name of the gallery image.
:type gallery_image_name: str
:param parameters: Parameters supplied to the create or update gallery
image operation.
:type parameters: ~azure.mgmt.compute.v2018_06_01.models.GalleryImage
:param gallery_image: Parameters supplied to the create or update
gallery image operation.
:type gallery_image:
~azure.mgmt.compute.v2018_06_01.models.GalleryImage
: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 @@ -122,7 +123,7 @@ def create_or_update(
resource_group_name=resource_group_name,
gallery_name=gallery_name,
gallery_image_name=gallery_image_name,
parameters=parameters,
gallery_image=gallery_image,
custom_headers=custom_headers,
raw=True,
**operation_config
Expand Down