From 4d68955d6e50f4b05b189a959fa7a066efc9a9a9 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 12 Sep 2024 07:45:54 +0000 Subject: [PATCH] CodeGen from PR 30459 in Azure/azure-rest-api-specs Merge 60d481f0ccaa47103dd5bcfa8508f9b16aff065d into 4e5b64a647cccbddbfac5c4a9635f751def8feb0 --- sdk/billing/azure-mgmt-billing/_meta.json | 4 +- .../azure/mgmt/billing/_version.py | 2 +- .../azure/mgmt/billing/models/__init__.py | 2 - .../azure/mgmt/billing/models/_models_py3.py | 151 +++++++----------- .../_available_balances_operations.py | 2 +- .../_billing_permissions_operations.py | 30 ++-- .../_billing_profiles_operations.py | 8 +- .../_billing_requests_operations.py | 10 +- .../_billing_role_assignments_operations.py | 66 ++++---- .../_billing_role_definition_operations.py | 28 ++-- .../_billing_subscriptions_operations.py | 2 +- .../operations/_customers_operations.py | 8 +- .../operations/_departments_operations.py | 2 +- .../_enrollment_accounts_operations.py | 8 +- .../_invoice_sections_operations.py | 18 +-- .../operations/_invoices_operations.py | 2 +- .../_partner_transfers_operations.py | 16 +- .../operations/_policies_operations.py | 16 +- .../operations/_products_operations.py | 8 +- .../operations/_reservations_operations.py | 2 +- .../operations/_transactions_operations.py | 10 +- .../operations/_transfers_operations.py | 16 +- 22 files changed, 183 insertions(+), 228 deletions(-) diff --git a/sdk/billing/azure-mgmt-billing/_meta.json b/sdk/billing/azure-mgmt-billing/_meta.json index 1124bc537283..e042571db732 100644 --- a/sdk/billing/azure-mgmt-billing/_meta.json +++ b/sdk/billing/azure-mgmt-billing/_meta.json @@ -1,11 +1,11 @@ { - "commit": "e79d9ef3e065f2dcb6bd1db51e29c62a99dff5cb", + "commit": "6a3a5dcf7d798b30084455dd380d9150bf679b52", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.10.2", "use": [ "@autorest/python@6.19.0", "@autorest/modelerfour@4.27.0" ], - "autorest_command": "autorest specification/billing/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", + "autorest_command": "autorest specification/billing/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", "readme": "specification/billing/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py index 364f3c906cf9..92721eef7dd5 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "7.0.0" +VERSION = "0.3.0" diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py index 61f4b1b3aaf2..437e4650688d 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py @@ -117,7 +117,6 @@ from ._models_py3 import InvoicePropertiesBilledAmount from ._models_py3 import InvoicePropertiesCreditAmount from ._models_py3 import InvoicePropertiesFreeAzureCreditApplied -from ._models_py3 import InvoicePropertiesRebillDetails from ._models_py3 import InvoicePropertiesRefundDetails from ._models_py3 import InvoicePropertiesSubTotal from ._models_py3 import InvoicePropertiesTaxAmount @@ -445,7 +444,6 @@ "InvoicePropertiesBilledAmount", "InvoicePropertiesCreditAmount", "InvoicePropertiesFreeAzureCreditApplied", - "InvoicePropertiesRebillDetails", "InvoicePropertiesRefundDetails", "InvoicePropertiesSubTotal", "InvoicePropertiesTaxAmount", diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py index ffb355b67e5a..5b11708660a4 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py @@ -5189,7 +5189,7 @@ class BillingSubscriptionListResult(_serialization.Model): :ivar next_link: The link (url) to the next page of results. :vartype next_link: str :ivar total_count: Total number of records. - :vartype total_count: int + :vartype total_count: float :ivar value: The list of resources. :vartype value: list[~azure.mgmt.billing.models.BillingSubscription] """ @@ -5202,7 +5202,7 @@ class BillingSubscriptionListResult(_serialization.Model): _attribute_map = { "next_link": {"key": "nextLink", "type": "str"}, - "total_count": {"key": "totalCount", "type": "int"}, + "total_count": {"key": "totalCount", "type": "float"}, "value": {"key": "value", "type": "[BillingSubscription]"}, } @@ -7140,7 +7140,7 @@ class InvoiceProperties(_serialization.Model): # pylint: disable=too-many-insta :ivar purchase_order_number: An optional purchase order number for the invoice. :vartype purchase_order_number: str :ivar rebill_details: Rebill details for an invoice. - :vartype rebill_details: ~azure.mgmt.billing.models.InvoicePropertiesRebillDetails + :vartype rebill_details: ~azure.mgmt.billing.models.RebillDetails :ivar status: The current status of the invoice. Known values are: "Other", "Due", "OverDue", "Paid", "Void", and "Locked". :vartype status: str or ~azure.mgmt.billing.models.InvoiceStatus @@ -7182,6 +7182,7 @@ class InvoiceProperties(_serialization.Model): # pylint: disable=too-many-insta "is_monthly_invoice": {"readonly": True}, "payments": {"readonly": True}, "purchase_order_number": {"readonly": True}, + "rebill_details": {"readonly": True}, "status": {"readonly": True}, "subscription_display_name": {"readonly": True}, "subscription_id": {"readonly": True}, @@ -7215,7 +7216,7 @@ class InvoiceProperties(_serialization.Model): # pylint: disable=too-many-insta "is_monthly_invoice": {"key": "isMonthlyInvoice", "type": "bool"}, "payments": {"key": "payments", "type": "[Payment]"}, "purchase_order_number": {"key": "purchaseOrderNumber", "type": "str"}, - "rebill_details": {"key": "rebillDetails", "type": "InvoicePropertiesRebillDetails"}, + "rebill_details": {"key": "rebillDetails", "type": "RebillDetails"}, "status": {"key": "status", "type": "str"}, "subscription_display_name": {"key": "subscriptionDisplayName", "type": "str"}, "subscription_id": {"key": "subscriptionId", "type": "str"}, @@ -7234,7 +7235,6 @@ def __init__( # pylint: disable=too-many-locals billed_amount: Optional["_models.InvoicePropertiesBilledAmount"] = None, credit_amount: Optional["_models.InvoicePropertiesCreditAmount"] = None, free_azure_credit_applied: Optional["_models.InvoicePropertiesFreeAzureCreditApplied"] = None, - rebill_details: Optional["_models.InvoicePropertiesRebillDetails"] = None, sub_total: Optional["_models.InvoicePropertiesSubTotal"] = None, tax_amount: Optional["_models.InvoicePropertiesTaxAmount"] = None, total_amount: Optional["_models.InvoicePropertiesTotalAmount"] = None, @@ -7258,8 +7258,6 @@ def __init__( # pylint: disable=too-many-locals This field is applicable to billing accounts with agreement type Microsoft Customer Agreement. :paramtype free_azure_credit_applied: ~azure.mgmt.billing.models.InvoicePropertiesFreeAzureCreditApplied - :keyword rebill_details: Rebill details for an invoice. - :paramtype rebill_details: ~azure.mgmt.billing.models.InvoicePropertiesRebillDetails :keyword sub_total: The pre-tax amount due. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement. :paramtype sub_total: ~azure.mgmt.billing.models.InvoicePropertiesSubTotal @@ -7293,7 +7291,7 @@ def __init__( # pylint: disable=too-many-locals self.is_monthly_invoice = None self.payments = None self.purchase_order_number = None - self.rebill_details = rebill_details + self.rebill_details = None self.status = None self.subscription_display_name = None self.subscription_id = None @@ -7372,53 +7370,6 @@ class InvoicePropertiesFreeAzureCreditApplied(Amount): """ -class RebillDetails(_serialization.Model): - """The rebill details of an invoice. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar invoice_document_id: The ID of invoice. - :vartype invoice_document_id: str - :ivar credit_note_document_id: The ID of credit note. - :vartype credit_note_document_id: str - :ivar rebill_details: The rebill details of an invoice. - :vartype rebill_details: ~azure.mgmt.billing.models.RebillDetails - """ - - _validation = { - "invoice_document_id": {"readonly": True}, - "credit_note_document_id": {"readonly": True}, - "rebill_details": {"readonly": True}, - } - - _attribute_map = { - "invoice_document_id": {"key": "invoiceDocumentId", "type": "str"}, - "credit_note_document_id": {"key": "creditNoteDocumentId", "type": "str"}, - "rebill_details": {"key": "rebillDetails", "type": "RebillDetails"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.invoice_document_id = None - self.credit_note_document_id = None - self.rebill_details = None - - -class InvoicePropertiesRebillDetails(RebillDetails): - """Rebill details for an invoice. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar invoice_document_id: The ID of invoice. - :vartype invoice_document_id: str - :ivar credit_note_document_id: The ID of credit note. - :vartype credit_note_document_id: str - :ivar rebill_details: The rebill details of an invoice. - :vartype rebill_details: ~azure.mgmt.billing.models.RebillDetails - """ - - class RefundDetailsSummary(_serialization.Model): """The details of refund request. @@ -9679,6 +9630,39 @@ def __init__( self.applied_scope_properties = applied_scope_properties +class RebillDetails(_serialization.Model): + """The rebill details of an invoice. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invoice_document_id: The ID of invoice. + :vartype invoice_document_id: str + :ivar credit_note_document_id: The ID of credit note. + :vartype credit_note_document_id: str + :ivar rebill_details: The rebill details of an invoice. + :vartype rebill_details: ~azure.mgmt.billing.models.RebillDetails + """ + + _validation = { + "invoice_document_id": {"readonly": True}, + "credit_note_document_id": {"readonly": True}, + "rebill_details": {"readonly": True}, + } + + _attribute_map = { + "invoice_document_id": {"key": "invoiceDocumentId", "type": "str"}, + "credit_note_document_id": {"key": "creditNoteDocumentId", "type": "str"}, + "rebill_details": {"key": "rebillDetails", "type": "RebillDetails"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.invoice_document_id = None + self.credit_note_document_id = None + self.rebill_details = None + + class RecipientTransferDetails(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes """Details of the transfer. @@ -10901,19 +10885,13 @@ class ReservationPurchaseRequest(_serialization.Model): # pylint: disable=too-m :ivar renew: Setting this to true will automatically purchase a new benefit on the expiration date time. :vartype renew: bool - :ivar instance_flexibility_properties_instance_flexibility: Allows reservation discount to be - applied across skus within the same auto fit group. Not all skus support instance size - flexibility. Known values are: "On" and "Off". - :vartype instance_flexibility_properties_instance_flexibility: str or - ~azure.mgmt.billing.models.InstanceFlexibility :ivar review_date_time: This is the date-time when the Azure hybrid benefit needs to be reviewed. :vartype review_date_time: ~datetime.datetime - :ivar instance_flexibility_properties_reserved_resource_properties_instance_flexibility: - Turning this on will apply the reservation discount to other VMs in the same VM size group. - Only specify for VirtualMachines reserved resource type. Known values are: "On" and "Off". - :vartype instance_flexibility_properties_reserved_resource_properties_instance_flexibility: str - or ~azure.mgmt.billing.models.InstanceFlexibility + :ivar instance_flexibility: Turning this on will apply the reservation discount to other VMs in + the same VM size group. Only specify for VirtualMachines reserved resource type. Known values + are: "On" and "Off". + :vartype instance_flexibility: str or ~azure.mgmt.billing.models.InstanceFlexibility """ _validation = { @@ -10938,15 +10916,8 @@ class ReservationPurchaseRequest(_serialization.Model): # pylint: disable=too-m "type": "ReservationAppliedScopeProperties", }, "renew": {"key": "properties.renew", "type": "bool"}, - "instance_flexibility_properties_instance_flexibility": { - "key": "properties.instanceFlexibility", - "type": "str", - }, "review_date_time": {"key": "properties.reviewDateTime", "type": "iso-8601"}, - "instance_flexibility_properties_reserved_resource_properties_instance_flexibility": { - "key": "properties.reservedResourceProperties.instanceFlexibility", - "type": "str", - }, + "instance_flexibility": {"key": "properties.reservedResourceProperties.instanceFlexibility", "type": "str"}, } def __init__( @@ -10961,13 +10932,8 @@ def __init__( applied_scopes: Optional[List[str]] = None, applied_scope_properties: Optional["_models.ReservationAppliedScopeProperties"] = None, renew: bool = False, - instance_flexibility_properties_instance_flexibility: Optional[ - Union[str, "_models.InstanceFlexibility"] - ] = None, review_date_time: Optional[datetime.datetime] = None, - instance_flexibility_properties_reserved_resource_properties_instance_flexibility: Optional[ - Union[str, "_models.InstanceFlexibility"] - ] = None, + instance_flexibility: Optional[Union[str, "_models.InstanceFlexibility"]] = None, **kwargs: Any ) -> None: """ @@ -10996,19 +10962,13 @@ def __init__( :keyword renew: Setting this to true will automatically purchase a new benefit on the expiration date time. :paramtype renew: bool - :keyword instance_flexibility_properties_instance_flexibility: Allows reservation discount to - be applied across skus within the same auto fit group. Not all skus support instance size - flexibility. Known values are: "On" and "Off". - :paramtype instance_flexibility_properties_instance_flexibility: str or - ~azure.mgmt.billing.models.InstanceFlexibility :keyword review_date_time: This is the date-time when the Azure hybrid benefit needs to be reviewed. :paramtype review_date_time: ~datetime.datetime - :keyword instance_flexibility_properties_reserved_resource_properties_instance_flexibility: - Turning this on will apply the reservation discount to other VMs in the same VM size group. - Only specify for VirtualMachines reserved resource type. Known values are: "On" and "Off". - :paramtype instance_flexibility_properties_reserved_resource_properties_instance_flexibility: - str or ~azure.mgmt.billing.models.InstanceFlexibility + :keyword instance_flexibility: Turning this on will apply the reservation discount to other VMs + in the same VM size group. Only specify for VirtualMachines reserved resource type. Known + values are: "On" and "Off". + :paramtype instance_flexibility: str or ~azure.mgmt.billing.models.InstanceFlexibility """ super().__init__(**kwargs) self.sku = sku @@ -11023,11 +10983,8 @@ def __init__( self.applied_scopes = applied_scopes self.applied_scope_properties = applied_scope_properties self.renew = renew - self.instance_flexibility_properties_instance_flexibility = instance_flexibility_properties_instance_flexibility self.review_date_time = review_date_time - self.instance_flexibility_properties_reserved_resource_properties_instance_flexibility = ( - instance_flexibility_properties_reserved_resource_properties_instance_flexibility - ) + self.instance_flexibility = instance_flexibility class ReservationSkuProperty(_serialization.Model): @@ -12455,7 +12412,7 @@ class TransactionProperties(_serialization.Model): # pylint: disable=too-many-i :ivar billing_currency: The ISO 4217 code for the currency in which this transaction is billed. :vartype billing_currency: str :ivar billing_profile_display_name: The name of the billing profile. - :vartype billing_profile_display_name: any + :vartype billing_profile_display_name: str :ivar billing_profile_id: The fully qualified ID that uniquely identifies a billing profile. :vartype billing_profile_id: str :ivar consumption_commitment_decremented: The amount of Microsoft Azure Consumption @@ -12547,7 +12504,7 @@ class TransactionProperties(_serialization.Model): # pylint: disable=too-many-i "azure_credit_applied": {"key": "azureCreditApplied", "type": "TransactionPropertiesAzureCreditApplied"}, "azure_plan": {"key": "azurePlan", "type": "str"}, "billing_currency": {"key": "billingCurrency", "type": "str"}, - "billing_profile_display_name": {"key": "billingProfileDisplayName", "type": "object"}, + "billing_profile_display_name": {"key": "billingProfileDisplayName", "type": "str"}, "billing_profile_id": {"key": "billingProfileId", "type": "str"}, "consumption_commitment_decremented": { "key": "consumptionCommitmentDecremented", @@ -12597,7 +12554,7 @@ def __init__( # pylint: disable=too-many-locals azure_credit_applied: Optional["_models.TransactionPropertiesAzureCreditApplied"] = None, azure_plan: Optional[str] = None, billing_currency: Optional[str] = None, - billing_profile_display_name: Optional[Any] = None, + billing_profile_display_name: Optional[str] = None, billing_profile_id: Optional[str] = None, consumption_commitment_decremented: Optional[ "_models.TransactionPropertiesConsumptionCommitmentDecremented" @@ -12648,7 +12605,7 @@ def __init__( # pylint: disable=too-many-locals billed. :paramtype billing_currency: str :keyword billing_profile_display_name: The name of the billing profile. - :paramtype billing_profile_display_name: any + :paramtype billing_profile_display_name: str :keyword billing_profile_id: The fully qualified ID that uniquely identifies a billing profile. :paramtype billing_profile_id: str :keyword consumption_commitment_decremented: The amount of Microsoft Azure Consumption diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_available_balances_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_available_balances_operations.py index 10df377e8ad2..9fa753d3a9fa 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_available_balances_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_available_balances_operations.py @@ -90,7 +90,7 @@ def build_get_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_permissions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_permissions_operations.py index 9152a8cecb06..8e50a5557807 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_permissions_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_permissions_operations.py @@ -93,7 +93,7 @@ def build_list_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -131,7 +131,7 @@ def build_check_access_by_billing_profile_request( # pylint: disable=name-too-l pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -170,9 +170,9 @@ def build_list_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -209,9 +209,9 @@ def build_check_access_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -249,10 +249,10 @@ def build_list_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -290,10 +290,10 @@ def build_check_access_by_invoice_section_request( # pylint: disable=name-too-l pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -365,7 +365,7 @@ def build_list_by_customer_at_billing_account_request( # pylint: disable=name-t "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -398,7 +398,7 @@ def build_list_by_department_request(billing_account_name: str, department_name: "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -434,7 +434,7 @@ def build_check_access_by_department_request( "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -472,7 +472,7 @@ def build_list_by_enrollment_account_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -510,7 +510,7 @@ def build_check_access_by_enrollment_account_request( # pylint: disable=name-to pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py index c587239bf6d4..b9e75b4cf24d 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py @@ -66,7 +66,7 @@ def build_validate_delete_eligibility_request( # pylint: disable=name-too-long pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -101,7 +101,7 @@ def build_delete_request(billing_account_name: str, billing_profile_name: str, * pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -136,7 +136,7 @@ def build_get_request(billing_account_name: str, billing_profile_name: str, **kw pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -172,7 +172,7 @@ def build_create_or_update_request(billing_account_name: str, billing_profile_na pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_requests_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_requests_operations.py index 0f8b0711c3b4..bd86a935b944 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_requests_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_requests_operations.py @@ -75,7 +75,7 @@ def build_list_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -134,9 +134,9 @@ def build_list_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -194,10 +194,10 @@ def build_list_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_assignments_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_assignments_operations.py index f3d466758fb3..f27d6fb0e5a8 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_assignments_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_assignments_operations.py @@ -66,7 +66,7 @@ def build_delete_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", @@ -109,7 +109,7 @@ def build_get_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", @@ -158,7 +158,7 @@ def build_list_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -202,7 +202,7 @@ def build_create_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -245,9 +245,9 @@ def build_delete_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", billing_role_assignment_name, @@ -293,9 +293,9 @@ def build_get_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", billing_role_assignment_name, @@ -344,9 +344,9 @@ def build_list_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -389,9 +389,9 @@ def build_create_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -435,9 +435,9 @@ def build_resolve_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -483,10 +483,10 @@ def build_delete_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", @@ -533,10 +533,10 @@ def build_get_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", @@ -586,10 +586,10 @@ def build_list_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -633,10 +633,10 @@ def build_create_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -681,10 +681,10 @@ def build_resolve_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -732,7 +732,7 @@ def build_resolve_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -975,7 +975,7 @@ def build_delete_by_department_request( "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", billing_role_assignment_name, @@ -1016,7 +1016,7 @@ def build_get_by_department_request( "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", billing_role_assignment_name, @@ -1058,7 +1058,7 @@ def build_create_or_update_by_department_request( # pylint: disable=name-too-lo "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", billing_role_assignment_name, @@ -1099,7 +1099,7 @@ def build_list_by_department_request(billing_account_name: str, department_name: "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -1135,7 +1135,7 @@ def build_delete_by_enrollment_account_request( # pylint: disable=name-too-long pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", @@ -1178,7 +1178,7 @@ def build_get_by_enrollment_account_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", @@ -1222,7 +1222,7 @@ def build_create_or_update_by_enrollment_account_request( # pylint: disable=nam pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "billingRoleAssignmentName": _SERIALIZER.url( "billing_role_assignment_name", @@ -1267,7 +1267,7 @@ def build_list_by_enrollment_account_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_definition_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_definition_operations.py index 43f9403843d4..222a717c12cd 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_definition_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_definition_operations.py @@ -61,7 +61,7 @@ def build_get_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "roleDefinitionName": _SERIALIZER.url( "role_definition_name", @@ -104,7 +104,7 @@ def build_list_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -141,9 +141,9 @@ def build_get_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "roleDefinitionName": _SERIALIZER.url( "role_definition_name", role_definition_name, @@ -185,9 +185,9 @@ def build_list_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -227,10 +227,10 @@ def build_get_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "roleDefinitionName": _SERIALIZER.url( "role_definition_name", @@ -273,10 +273,10 @@ def build_list_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -383,7 +383,7 @@ def build_get_by_department_request( "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "roleDefinitionName": _SERIALIZER.url( "role_definition_name", role_definition_name, @@ -422,7 +422,7 @@ def build_list_by_department_request(billing_account_name: str, department_name: "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -458,7 +458,7 @@ def build_get_by_enrollment_account_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "roleDefinitionName": _SERIALIZER.url( "role_definition_name", @@ -501,7 +501,7 @@ def build_list_by_enrollment_account_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py index fdccdbd48a82..73188ed5be83 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py @@ -650,7 +650,7 @@ def build_list_by_enrollment_account_request( path_format_arguments = { "billingAccountName": _SERIALIZER.url("billing_account_name", billing_account_name, "str"), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_customers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_customers_operations.py index e76216c1ec89..6a8b665a310e 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_customers_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_customers_operations.py @@ -61,9 +61,9 @@ def build_get_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -109,7 +109,7 @@ def build_list_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -156,7 +156,7 @@ def build_get_by_billing_account_request(billing_account_name: str, customer_nam "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_departments_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_departments_operations.py index c0ea06a2ed7d..9932f8f41db2 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_departments_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_departments_operations.py @@ -57,7 +57,7 @@ def build_get_request(billing_account_name: str, department_name: str, **kwargs: "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_enrollment_accounts_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_enrollment_accounts_operations.py index ad55392a68d5..6f92cba96d17 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_enrollment_accounts_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_enrollment_accounts_operations.py @@ -60,9 +60,9 @@ def build_get_by_department_request( "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -107,7 +107,7 @@ def build_list_by_department_request( "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "departmentName": _SERIALIZER.url("department_name", department_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -153,7 +153,7 @@ def build_get_request(billing_account_name: str, enrollment_account_name: str, * pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "enrollmentAccountName": _SERIALIZER.url( - "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "enrollment_account_name", enrollment_account_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py index e9b0d4a3651b..acf387f410b2 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py @@ -66,10 +66,10 @@ def build_validate_delete_eligibility_request( # pylint: disable=name-too-long pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -106,10 +106,10 @@ def build_delete_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -146,10 +146,10 @@ def build_get_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -187,10 +187,10 @@ def build_create_or_update_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -239,7 +239,7 @@ def build_list_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py index b05d70fd69a9..5288d3612e9c 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py @@ -78,7 +78,7 @@ def build_list_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_partner_transfers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_partner_transfers_operations.py index 9b0ae9ec1a43..5a34181bfb77 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_partner_transfers_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_partner_transfers_operations.py @@ -62,9 +62,9 @@ def build_get_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "transferName": _SERIALIZER.url("transfer_name", transfer_name, "str", pattern=r"^[a-z0-9]*$"), } @@ -102,9 +102,9 @@ def build_initiate_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "transferName": _SERIALIZER.url("transfer_name", transfer_name, "str", pattern=r"^[a-z0-9]*$"), } @@ -143,9 +143,9 @@ def build_cancel_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "transferName": _SERIALIZER.url("transfer_name", transfer_name, "str", pattern=r"^[a-z0-9]*$"), } @@ -182,9 +182,9 @@ def build_list_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_policies_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_policies_operations.py index abe7cb0faa0b..ab997d66564a 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_policies_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_policies_operations.py @@ -68,9 +68,9 @@ def build_get_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), "policyName": _SERIALIZER.url("policy_name", policy_name, "str"), } @@ -108,9 +108,9 @@ def build_create_or_update_by_customer_request( # pylint: disable=name-too-long pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -148,7 +148,7 @@ def build_get_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -186,7 +186,7 @@ def build_create_or_update_by_billing_profile_request( # pylint: disable=name-t pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -224,7 +224,7 @@ def build_get_by_customer_at_billing_account_request( # pylint: disable=name-to "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -260,7 +260,7 @@ def build_create_or_update_by_customer_at_billing_account_request( # pylint: di "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_products_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_products_operations.py index d1d67c5a133c..cc81a7d66bf8 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_products_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_products_operations.py @@ -76,10 +76,10 @@ def build_list_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -137,7 +137,7 @@ def build_list_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -194,7 +194,7 @@ def build_list_by_customer_request( "str", pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservations_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservations_operations.py index bb795e9ea4e5..13b622835a80 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservations_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservations_operations.py @@ -126,7 +126,7 @@ def build_list_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transactions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transactions_operations.py index 8742b2da003d..8dd8d6588d8e 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transactions_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transactions_operations.py @@ -79,9 +79,9 @@ def build_list_by_customer_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), - "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$"), + "customerName": _SERIALIZER.url("customer_name", customer_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -145,10 +145,10 @@ def build_list_by_invoice_section_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } @@ -212,7 +212,7 @@ def build_list_by_billing_profile_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), } diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transfers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transfers_operations.py index 411591bdfd08..20337e291f68 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transfers_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transfers_operations.py @@ -62,10 +62,10 @@ def build_get_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "transferName": _SERIALIZER.url("transfer_name", transfer_name, "str", pattern=r"^[a-z0-9]*$"), } @@ -104,10 +104,10 @@ def build_initiate_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "transferName": _SERIALIZER.url("transfer_name", transfer_name, "str", pattern=r"^[a-z0-9]*$"), } @@ -147,10 +147,10 @@ def build_cancel_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "transferName": _SERIALIZER.url("transfer_name", transfer_name, "str", pattern=r"^[a-z0-9]*$"), } @@ -188,10 +188,10 @@ def build_list_request( pattern=r"^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$", ), "billingProfileName": _SERIALIZER.url( - "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "billing_profile_name", billing_profile_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), "invoiceSectionName": _SERIALIZER.url( - "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z\d-_]{1,128}$" + "invoice_section_name", invoice_section_name, "str", pattern=r"^[a-zA-Z0-9-_]{1,128}$" ), }