Skip to content

Commit

Permalink
EmailService - default Location global for email and domain create an…
Browse files Browse the repository at this point in the history
…d sender username text and example update (#7704)

* Email Service - Default location gloabl for create email and domain. Sender username text update

* updated the version and history files

* history update

* Email Service - updating data location as required parameter in documentation
  • Loading branch information
v-vprasannak committed Jun 17, 2024
1 parent 6cfe300 commit 4b0741b
Show file tree
Hide file tree
Showing 81 changed files with 6,121 additions and 6,634 deletions.
6 changes: 6 additions & 0 deletions src/communication/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Release History
===============
1.9.3
++++++
* Update Email service create - Global as the default value for Location
* Update Email service domain create - Global as the default value for Location
* Update Email service domain sender username create - example and text update

1.9.2
++++++
* Update azure-rooms-communication to 1.1.0 (pstn-dial-out GA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
arg_group="Parameters",
help="The geo-location where the resource lives",
required=True,
default="Global",
fmt=AAZResourceLocationArgFormat(
resource_group_arg="resource_group",
),
Expand All @@ -86,6 +87,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["--data-location"],
arg_group="Properties",
help="The location where the email service stores its data at rest.",
required=True,
)
return cls._args_schema

Expand Down Expand Up @@ -196,7 +198,7 @@ def content(self):
typ_kwargs={"flags": {"required": True, "client_flatten": True}}
)
_builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}})
_builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}})
_builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}})
_builder.set_prop("tags", AAZDictType, ".tags")

properties = _builder.get(".properties")
Expand Down Expand Up @@ -237,7 +239,7 @@ def _build_schema_on_200_201(cls):
flags={"read_only": True},
)
_schema_on_200_201.properties = AAZObjectType(
flags={"client_flatten": True},
flags={"required": True, "client_flatten": True},
)
_schema_on_200_201.system_data = AAZObjectType(
serialized_name="systemData",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _build_schema_on_200(cls):
flags={"read_only": True},
)
_element.properties = AAZObjectType(
flags={"client_flatten": True},
flags={"required": True, "client_flatten": True},
)
_element.system_data = AAZObjectType(
serialized_name="systemData",
Expand Down Expand Up @@ -309,7 +309,7 @@ def _build_schema_on_200(cls):
flags={"read_only": True},
)
_element.properties = AAZObjectType(
flags={"client_flatten": True},
flags={"required": True, "client_flatten": True},
)
_element.system_data = AAZObjectType(
serialized_name="systemData",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def _build_schema_on_200(cls):
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType(
flags={"client_flatten": True},
flags={"required": True, "client_flatten": True},
)
_schema_on_200.system_data = AAZObjectType(
serialized_name="systemData",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def _build_schema_email_service_resource_read(cls, _schema):
flags={"read_only": True},
)
email_service_resource_read.properties = AAZObjectType(
flags={"client_flatten": True},
flags={"required": True, "client_flatten": True},
)
email_service_resource_read.system_data = AAZObjectType(
serialized_name="systemData",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _build_schema_on_200(cls):
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType(
flags={"client_flatten": True},
flags={"required": True, "client_flatten": True},
)
_schema_on_200.system_data = AAZObjectType(
serialized_name="systemData",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
arg_group="Parameters",
help="The geo-location where the resource lives",
required=True,
default="Global",
fmt=AAZResourceLocationArgFormat(
resource_group_arg="resource_group",
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class Create(AAZCommand):
"""Create a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.
:example: Create a sender username
az communication email domain sender-username create --domain-name DomainName --email-service-name ResourceName -g ResourceGroup --sender-username SenderUsername --username Username --display-name DisplayName
:example: Create a sender username (--sender-username and --username values should be the same)
az communication email domain sender-username create --domain-name DomainName --email-service-name ResourceName -g ResourceGroup --sender-username Username --username Username --display-name DisplayName
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,41 @@ interactions:
Content-Type:
- application/json
User-Agent:
- AzureCli/1.9.2 azsdk-python-communication-identity/1.4.0 Python/3.8.10 (Windows-10-10.0.22631-SP0)
- AzureCli/1.9.2 azsdk-python-communication-identity/1.5.0 Python/3.10.11 (Windows-10-10.0.19045-SP0)
x-ms-content-sha256:
- kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0=
x-ms-date:
- Mon, 22 Apr 2024 17:34:10 GMT
- Mon, 10 Jun 2024 12:50:12 GMT
x-ms-return-client-request-id:
- 'true'
method: POST
uri: https://sanitized.communication.azure.com/identities?api-version=2023-10-01
response:
body:
string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized",
"expiresOn": "2024-04-23T17:34:11.3350503+00:00"}}'
"expiresOn": "2024-06-11T12:50:13.4791955+00:00"}}'
headers:
api-supported-versions:
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview,
2021-11-01, 2022-06-01, 2022-10-01, 2023-10-01
- 2020-07-20-preview2, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01,
2022-10-01, 2023-10-01
content-length:
- '122'
content-type:
- application/json; charset=utf-8
date:
- Mon, 22 Apr 2024 17:34:11 GMT
- Mon, 10 Jun 2024 12:50:12 GMT
ms-cv:
- piZA6ycKwUCexsnci0q+Rg.0
- yLShUScVLUqT/zTEAz+zww.0
request-context:
- appId=
strict-transport-security:
- max-age=31536000;includeSubDomains
x-azure-ref:
- 0k58mZgAAAABT+lX0G5N6QZxJ8TGNv0oKU04xRURHRTMwMTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx
- 0hfZmZgAAAACRrkSbjDgeSZEkY+dj6YS4SEtCRURHRTA3MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx
x-cache:
- CONFIG_NOCACHE
x-processing-time:
- 84ms
- 33ms
status:
code: 201
message: Created
Expand All @@ -65,41 +65,41 @@ interactions:
Content-Type:
- application/json
User-Agent:
- AzureCli/1.9.2 azsdk-python-communication-identity/1.4.0 Python/3.8.10 (Windows-10-10.0.22631-SP0)
- AzureCli/1.9.2 azsdk-python-communication-identity/1.5.0 Python/3.10.11 (Windows-10-10.0.19045-SP0)
x-ms-content-sha256:
- kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0=
x-ms-date:
- Mon, 22 Apr 2024 17:34:11 GMT
- Mon, 10 Jun 2024 12:50:13 GMT
x-ms-return-client-request-id:
- 'true'
method: POST
uri: https://sanitized.communication.azure.com/identities?api-version=2023-10-01
response:
body:
string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized",
"expiresOn": "2024-04-23T17:34:11.8631105+00:00"}}'
"expiresOn": "2024-06-11T12:50:14.6380674+00:00"}}'
headers:
api-supported-versions:
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview,
2021-11-01, 2022-06-01, 2022-10-01, 2023-10-01
- 2020-07-20-preview2, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01,
2022-10-01, 2023-10-01
content-length:
- '122'
content-type:
- application/json; charset=utf-8
date:
- Mon, 22 Apr 2024 17:34:11 GMT
- Mon, 10 Jun 2024 12:50:14 GMT
ms-cv:
- m/WebUO1306lQhJc3LXd/Q.0
- 9p67HGeUIUOcq6AfKRgToA.2.0
request-context:
- appId=
strict-transport-security:
- max-age=31536000;includeSubDomains
x-azure-ref:
- 0k58mZgAAAACQJhi5fScTSoEgTE3C+VmVU04xRURHRTMwMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx
- 0hvZmZgAAAAD8u6MaLncxQKi6a7Zcqq2WSEtCRURHRTA3MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx
x-cache:
- CONFIG_NOCACHE
x-processing-time:
- 85ms
- 24ms
status:
code: 201
message: Created
Expand All @@ -117,40 +117,43 @@ interactions:
Content-Type:
- application/json
User-Agent:
- AzureCli/1.9.2 azsdk-python-communication-chat/1.3.0 Python/3.8.10 (Windows-10-10.0.22631-SP0)
- AzureCli/1.9.2 azsdk-python-communication-chat/1.3.0 Python/3.10.11 (Windows-10-10.0.19045-SP0)
repeatability-request-id:
- b8a9c886-b7d4-4739-a090-f59d2ad53203
- ac8f8a6e-80c3-4cfd-84cf-48a3ce880ca3
method: POST
uri: https://sanitized.communication.azure.com/chat/threads?api-version=2024-03-07
response:
body:
string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn":
"2024-04-22T17:34:12Z", "createdByCommunicationIdentifier": {"rawId": "sanitized",
"2024-06-10T12:50:16Z", "createdByCommunicationIdentifier": {"rawId": "sanitized",
"communicationUser": {"id": "sanitized"}}}}'
headers:
access-control-expose-headers:
- '*'
api-supported-versions:
- 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2023-04-01-preview, 2023-07-01-preview,
2023-11-07, 2023-11-15-preview, 2024-03-01-preview, 2024-03-07, 2024-03-15-preview
2023-11-07, 2023-11-15-preview, 2024-03-01-preview, 2024-03-07, 2024-03-15-preview,
2024-06-05-preview
content-length:
- '197'
content-type:
- application/json; charset=utf-8
date:
- Mon, 22 Apr 2024 17:34:12 GMT
- Mon, 10 Jun 2024 12:50:15 GMT
location:
- https://clitest000002.unitedstates.communication.azure.com/chat/threads/19%3AMwciB3hBHOvYNQIDMWMmiTa1Ktp3qHDrzUAQM5pI9Xs1@thread.v2
- https://clitest000002.unitedstates.communication.azure.com/chat/threads/19%3AgNwc1nXYnqx8jTQ8zC74lhNmHUAg-9Wd2cAYfZoVseA1@thread.v2
mise-correlation-id:
- 11f199d2-5d12-451b-8d7f-c79ab072189b
ms-cv:
- WQx1qEEbn0GIVOEVN1dd+Q.0
- Z1IxVPYMmkOGGa3ICHQapw.0
strict-transport-security:
- max-age=31536000;includeSubDomains
x-azure-ref:
- 0lJ8mZgAAAAD2jez5GNEDS6NNg+kUkrSCU04xRURHRTMwMDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx
- 0h/ZmZgAAAACy/sSQ3ULQSbX8YJT7vGyuSEtCRURHRTA3MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx
x-cache:
- CONFIG_NOCACHE
x-processing-time:
- 487ms
- 452ms
status:
code: 201
message: Created
Expand All @@ -169,7 +172,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-communication-chat/1.3.0 Python/3.8.10 (Windows-10-10.0.22631-SP0)
- azsdk-python-communication-chat/1.3.0 Python/3.10.11 (Windows-10-10.0.19045-SP0)
method: POST
uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2024-03-07
response:
Expand All @@ -180,23 +183,26 @@ interactions:
- '*'
api-supported-versions:
- 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2023-04-01-preview, 2023-07-01-preview,
2023-11-07, 2023-11-15-preview, 2024-03-01-preview, 2024-03-07, 2024-03-15-preview
2023-11-07, 2023-11-15-preview, 2024-03-01-preview, 2024-03-07, 2024-03-15-preview,
2024-06-05-preview
content-length:
- '2'
content-type:
- application/json; charset=utf-8
date:
- Mon, 22 Apr 2024 17:34:13 GMT
- Mon, 10 Jun 2024 12:50:17 GMT
mise-correlation-id:
- 3142a3cc-094b-40ed-88e9-69801e3ba9f4
ms-cv:
- ed5hHCIiE0Sid98CrnNMnQ.0
- bGtG/RRz0kGpEZnhFirNDQ.0
strict-transport-security:
- max-age=31536000;includeSubDomains
x-azure-ref:
- 0lZ8mZgAAAADVikwGPic7Tra6klypGUGUU04xRURHRTMxMTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx
- 0iPZmZgAAAABD1QQ0uJeBR6xS0J5qOf51SEtCRURHRTA3MTgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx
x-cache:
- CONFIG_NOCACHE
x-processing-time:
- 272ms
- 423ms
status:
code: 201
message: Created
Expand Down
Loading

0 comments on commit 4b0741b

Please sign in to comment.