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 eventgrid/resource-manager] Move EventGrid to new Py folder #5419

Merged
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 @@ -106,7 +106,9 @@ def get(


def _create_or_update_initial(
self, resource_group_name, domain_name, domain_info, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, domain_name, location, tags=None, custom_headers=None, raw=False, **operation_config):
domain_info = models.Domain(location=location, tags=tags)

# Construct URL
url = self.create_or_update.metadata['url']
path_format_arguments = {
Expand Down Expand Up @@ -155,7 +157,7 @@ def _create_or_update_initial(
return deserialized

def create_or_update(
self, resource_group_name, domain_name, domain_info, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, domain_name, location, tags=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create or update a domain.

Asynchronously creates or updates a new domain with the specified
Expand All @@ -166,8 +168,10 @@ def create_or_update(
:type resource_group_name: str
:param domain_name: Name of the domain.
:type domain_name: str
:param domain_info: Domain information.
:type domain_info: ~azure.mgmt.eventgrid.models.Domain
:param location: Location of the resource.
:type location: str
:param tags: Tags of the resource.
:type tags: dict[str, str]
: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 @@ -184,7 +188,8 @@ def create_or_update(
raw_result = self._create_or_update_initial(
resource_group_name=resource_group_name,
domain_name=domain_name,
domain_info=domain_info,
location=location,
tags=tags,
custom_headers=custom_headers,
raw=True,
**operation_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ def get(


def _create_or_update_initial(
self, resource_group_name, topic_name, topic_info, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, topic_name, location, tags=None, custom_headers=None, raw=False, **operation_config):
topic_info = models.Topic(location=location, tags=tags)

# Construct URL
url = self.create_or_update.metadata['url']
path_format_arguments = {
Expand Down Expand Up @@ -155,7 +157,7 @@ def _create_or_update_initial(
return deserialized

def create_or_update(
self, resource_group_name, topic_name, topic_info, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, topic_name, location, tags=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create a topic.

Asynchronously creates a new topic with the specified parameters.
Expand All @@ -165,8 +167,10 @@ def create_or_update(
:type resource_group_name: str
:param topic_name: Name of the topic.
:type topic_name: str
:param topic_info: Topic information.
:type topic_info: ~azure.mgmt.eventgrid.models.Topic
:param location: Location of the resource.
:type location: str
:param tags: Tags of the resource.
:type tags: dict[str, str]
: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 @@ -183,7 +187,8 @@ def create_or_update(
raw_result = self._create_or_update_initial(
resource_group_name=resource_group_name,
topic_name=topic_name,
topic_info=topic_info,
location=location,
tags=tags,
custom_headers=custom_headers,
raw=True,
**operation_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "2.2.0"