diff --git a/sdk/databasewatcher/azure-mgmt-databasewatcher/_meta.json b/sdk/databasewatcher/azure-mgmt-databasewatcher/_meta.json index da0476bfcbef..bbb2af6e4bb1 100644 --- a/sdk/databasewatcher/azure-mgmt-databasewatcher/_meta.json +++ b/sdk/databasewatcher/azure-mgmt-databasewatcher/_meta.json @@ -1,6 +1,6 @@ { - "commit": "07da438f8dc690946b39511467744ed889434de5", + "commit": "3350b3c1fe16b906adc33891c41ef8ace067c3dd", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/databasewatcher/DatabaseWatcher.Management", - "@azure-tools/typespec-python": "0.38.2" + "@azure-tools/typespec-python": "0.38.4" } \ No newline at end of file diff --git a/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/_serialization.py b/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/_serialization.py index a066e16a64dd..e2a20b1d534c 100644 --- a/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/_serialization.py +++ b/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/_serialization.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=line-too-long,useless-suppression,too-many-lines # -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. @@ -1361,7 +1361,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument # Iter and wrapped, should have found one node only (the wrap one) if len(children) != 1: raise DeserializationError( - "Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format( # pylint: disable=line-too-long + "Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format( xml_name ) ) diff --git a/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/models/_models.py b/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/models/_models.py index d88489e1adba..dede409515b0 100644 --- a/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/models/_models.py +++ b/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/models/_models.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -24,7 +24,7 @@ class Resource(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str @@ -38,7 +38,7 @@ class Resource(_model_base.Model): id: Optional[str] = rest_field(visibility=["read"]) """Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long""" + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" name: Optional[str] = rest_field(visibility=["read"]) """The name of the resource.""" type: Optional[str] = rest_field(visibility=["read"]) @@ -55,7 +55,7 @@ class ProxyResource(Resource): Readonly variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str @@ -75,7 +75,7 @@ class AlertRuleResource(ProxyResource): Readonly variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str @@ -89,7 +89,9 @@ class AlertRuleResource(ProxyResource): :vartype properties: ~azure.mgmt.databasewatcher.models.AlertRuleResourceProperties """ - properties: Optional["_models.AlertRuleResourceProperties"] = rest_field() + properties: Optional["_models.AlertRuleResourceProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) """The resource-specific properties for this resource.""" @overload @@ -134,23 +136,31 @@ class AlertRuleResourceProperties(_model_base.Model): :vartype alert_rule_template_version: str """ - alert_rule_resource_id: str = rest_field(name="alertRuleResourceId") + alert_rule_resource_id: str = rest_field( + name="alertRuleResourceId", visibility=["read", "create", "update", "delete", "query"] + ) """The resource ID of the alert rule resource. Required.""" created_with_properties: Union[str, "_models.AlertRuleCreationProperties"] = rest_field( - name="createdWithProperties" + name="createdWithProperties", visibility=["read", "create", "update", "delete", "query"] ) """The properties with which the alert rule resource was created. Required. Known values are: \"CreatedWithActionGroup\" and \"None\".""" - creation_time: datetime.datetime = rest_field(name="creationTime", format="rfc3339") + creation_time: datetime.datetime = rest_field( + name="creationTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) """The creation time of the alert rule resource. Required.""" provisioning_state: Optional[Union[str, "_models.ResourceProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) """The provisioning state of the alert rule resource. Known values are: \"Succeeded\", \"Failed\", and \"Canceled\".""" - alert_rule_template_id: str = rest_field(name="alertRuleTemplateId") + alert_rule_template_id: str = rest_field( + name="alertRuleTemplateId", visibility=["read", "create", "update", "delete", "query"] + ) """The template ID associated with alert rule resource. Required.""" - alert_rule_template_version: str = rest_field(name="alertRuleTemplateVersion") + alert_rule_template_version: str = rest_field( + name="alertRuleTemplateVersion", visibility=["read", "create", "update", "delete", "query"] + ) """The alert rule template version. Required.""" @overload @@ -196,19 +206,33 @@ class Datastore(_model_base.Model): :vartype kusto_offering_type: str or ~azure.mgmt.databasewatcher.models.KustoOfferingType """ - adx_cluster_resource_id: Optional[str] = rest_field(name="adxClusterResourceId") + adx_cluster_resource_id: Optional[str] = rest_field( + name="adxClusterResourceId", visibility=["read", "create", "update", "delete", "query"] + ) """The Azure resource ID of an Azure Data Explorer cluster.""" - kusto_cluster_display_name: Optional[str] = rest_field(name="kustoClusterDisplayName") + kusto_cluster_display_name: Optional[str] = rest_field( + name="kustoClusterDisplayName", visibility=["read", "create", "update", "delete", "query"] + ) """The Kusto cluster display name.""" - kusto_cluster_uri: str = rest_field(name="kustoClusterUri") + kusto_cluster_uri: str = rest_field( + name="kustoClusterUri", visibility=["read", "create", "update", "delete", "query"] + ) """The Kusto cluster URI. Required.""" - kusto_data_ingestion_uri: str = rest_field(name="kustoDataIngestionUri") + kusto_data_ingestion_uri: str = rest_field( + name="kustoDataIngestionUri", visibility=["read", "create", "update", "delete", "query"] + ) """The Kusto data ingestion URI. Required.""" - kusto_database_name: str = rest_field(name="kustoDatabaseName") + kusto_database_name: str = rest_field( + name="kustoDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) """The name of a Kusto database. Required.""" - kusto_management_url: str = rest_field(name="kustoManagementUrl") + kusto_management_url: str = rest_field( + name="kustoManagementUrl", visibility=["read", "create", "update", "delete", "query"] + ) """The Kusto management URL. Required.""" - kusto_offering_type: Union[str, "_models.KustoOfferingType"] = rest_field(name="kustoOfferingType") + kusto_offering_type: Union[str, "_models.KustoOfferingType"] = rest_field( + name="kustoOfferingType", visibility=["read", "create", "update", "delete", "query"] + ) """The type of a Kusto offering. Required. Known values are: \"adx\", \"free\", and \"fabric\".""" @overload @@ -291,7 +315,7 @@ class ErrorResponse(_model_base.Model): :vartype error: ~azure.mgmt.databasewatcher.models.ErrorDetail """ - error: Optional["_models.ErrorDetail"] = rest_field() + error: Optional["_models.ErrorDetail"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The error object.""" @overload @@ -319,7 +343,7 @@ class HealthValidation(ProxyResource): Readonly variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str @@ -333,7 +357,9 @@ class HealthValidation(ProxyResource): :vartype properties: ~azure.mgmt.databasewatcher.models.HealthValidationProperties """ - properties: Optional["_models.HealthValidationProperties"] = rest_field() + properties: Optional["_models.HealthValidationProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) """The resource-specific properties for this resource.""" @overload @@ -417,11 +443,13 @@ class ManagedServiceIdentityV4(_model_base.Model): tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"]) """The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.""" - type: Union[str, "_models.ManagedServiceIdentityType"] = rest_field() + type: Union[str, "_models.ManagedServiceIdentityType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) """The type of managed identity assigned to this resource. Required. Known values are: \"None\", \"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned, UserAssigned\".""" user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentity"]] = rest_field( - name="userAssignedIdentities" + name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"] ) """The identities assigned to this resource by the user.""" @@ -473,7 +501,9 @@ class Operation(_model_base.Model): is_data_action: Optional[bool] = rest_field(name="isDataAction", visibility=["read"]) """Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations.""" - display: Optional["_models.OperationDisplay"] = rest_field() + display: Optional["_models.OperationDisplay"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) """Localized display information for this particular operation.""" origin: Optional[Union[str, "_models.Origin"]] = rest_field(visibility=["read"]) """The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit @@ -541,7 +571,7 @@ class SharedPrivateLinkResource(ProxyResource): Readonly variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str @@ -555,7 +585,9 @@ class SharedPrivateLinkResource(ProxyResource): :vartype properties: ~azure.mgmt.databasewatcher.models.SharedPrivateLinkResourceProperties """ - properties: Optional["_models.SharedPrivateLinkResourceProperties"] = rest_field() + properties: Optional["_models.SharedPrivateLinkResourceProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) """The resource-specific properties for this resource.""" @overload @@ -591,10 +623,13 @@ class SharedPrivateLinkResourceProperties(_model_base.Model): :ivar request_message: The request message for requesting approval of the shared private link resource. Required. :vartype request_message: str - :ivar dns_zone: The DNS zone to be included in the DNS name of the shared private link. Value - is required for Azure Data Explorer clusters and SQL managed instances. The value to use is the - second segment of the host FQDN name of the resource that the shared private link resource is - for. + :ivar dns_zone: The DNS zone segment to be included in the DNS name of the shared private link. + Value is required for Azure Data Explorer clusters and SQL managed instances, and must be + omitted for SQL logical servers and key vaults. The value is the second segment of the host + FQDN name of the resource that the shared private link resource is for. For example: if the + host name is 'adx-cluster-21187695.eastus.kusto.windows.net', then the value is 'eastus'; if + the host name is 'sql-mi-23961134.767d5869f605.database.windows.net', then the value is + '767d5869f605'. :vartype dns_zone: str :ivar status: Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. Known values are: "Pending", "Approved", "Rejected", and "Disconnected". @@ -605,16 +640,21 @@ class SharedPrivateLinkResourceProperties(_model_base.Model): ~azure.mgmt.databasewatcher.models.ResourceProvisioningState """ - private_link_resource_id: str = rest_field(name="privateLinkResourceId") + private_link_resource_id: str = rest_field( + name="privateLinkResourceId", visibility=["read", "create", "update", "delete", "query"] + ) """The resource ID of the resource the shared private link resource is for. Required.""" - group_id: str = rest_field(name="groupId") + group_id: str = rest_field(name="groupId", visibility=["read", "create", "update", "delete", "query"]) """The group id from the provider of resource the shared private link resource is for. Required.""" - request_message: str = rest_field(name="requestMessage") + request_message: str = rest_field(name="requestMessage", visibility=["read", "create", "update", "delete", "query"]) """The request message for requesting approval of the shared private link resource. Required.""" - dns_zone: Optional[str] = rest_field(name="dnsZone") - """The DNS zone to be included in the DNS name of the shared private link. Value is required for - Azure Data Explorer clusters and SQL managed instances. The value to use is the second segment - of the host FQDN name of the resource that the shared private link resource is for.""" + dns_zone: Optional[str] = rest_field(name="dnsZone", visibility=["read", "create", "update", "delete", "query"]) + """The DNS zone segment to be included in the DNS name of the shared private link. Value is + required for Azure Data Explorer clusters and SQL managed instances, and must be omitted for + SQL logical servers and key vaults. The value is the second segment of the host FQDN name of + the resource that the shared private link resource is for. For example: if the host name is + 'adx-cluster-21187695.eastus.kusto.windows.net', then the value is 'eastus'; if the host name + is 'sql-mi-23961134.767d5869f605.database.windows.net', then the value is '767d5869f605'.""" status: Optional[Union[str, "_models.SharedPrivateLinkResourceStatus"]] = rest_field(visibility=["read"]) """Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. Known values are: \"Pending\", \"Approved\", \"Rejected\", and \"Disconnected\".""" @@ -664,8 +704,12 @@ class TargetProperties(_model_base.Model): :ivar target_vault: To use SQL authentication when connecting to targets, specify the vault where the login name and password secrets are stored. :vartype target_vault: ~azure.mgmt.databasewatcher.models.VaultSecret - :ivar connection_server_name: The server name to use in the connection string when connecting - to a target. Port number and instance name must be specified separately. Required. + :ivar connection_server_name: The FQDN host name of the server to use in the connection string + when connecting to a target. For example, for an Azure SQL logical server in the Azure + commercial cloud, the value might be 'sql-logical-server-22092780.database.windows.net'; for an + Azure SQL managed instance in the Azure commercial cloud, the value might be + 'sql-mi-39441134.767d5869f605.database.windows.net'. Port number and instance name must be + specified separately. Required. :vartype connection_server_name: str :ivar provisioning_state: The provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". @@ -677,16 +721,23 @@ class TargetProperties(_model_base.Model): target_type: str = rest_discriminator(name="targetType") """Discriminator property for TargetProperties. Required. Default value is None.""" target_authentication_type: Union[str, "_models.TargetAuthenticationType"] = rest_field( - name="targetAuthenticationType" + name="targetAuthenticationType", visibility=["read", "create", "update", "delete", "query"] ) """The type of authentication to use when connecting to a target. Required. Known values are: \"Aad\" and \"Sql\".""" - target_vault: Optional["_models.VaultSecret"] = rest_field(name="targetVault") + target_vault: Optional["_models.VaultSecret"] = rest_field( + name="targetVault", visibility=["read", "create", "update", "delete", "query"] + ) """To use SQL authentication when connecting to targets, specify the vault where the login name and password secrets are stored.""" - connection_server_name: str = rest_field(name="connectionServerName") - """The server name to use in the connection string when connecting to a target. Port number and - instance name must be specified separately. Required.""" + connection_server_name: str = rest_field( + name="connectionServerName", visibility=["read", "create", "update", "delete", "query"] + ) + """The FQDN host name of the server to use in the connection string when connecting to a target. + For example, for an Azure SQL logical server in the Azure commercial cloud, the value might be + 'sql-logical-server-22092780.database.windows.net'; for an Azure SQL managed instance in the + Azure commercial cloud, the value might be 'sql-mi-39441134.767d5869f605.database.windows.net'. + Port number and instance name must be specified separately. Required.""" provisioning_state: Optional[Union[str, "_models.ResourceProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) @@ -715,7 +766,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SqlDbElasticPoolTargetProperties(TargetProperties, discriminator="SqlEp"): - """The properties specific to elastic pool in Azure SQL Database. + """The properties specific to an elastic pool in Azure SQL Database. Readonly variables are only populated by the server, and will be ignored when sending a request. @@ -727,8 +778,12 @@ class SqlDbElasticPoolTargetProperties(TargetProperties, discriminator="SqlEp"): :ivar target_vault: To use SQL authentication when connecting to targets, specify the vault where the login name and password secrets are stored. :vartype target_vault: ~azure.mgmt.databasewatcher.models.VaultSecret - :ivar connection_server_name: The server name to use in the connection string when connecting - to a target. Port number and instance name must be specified separately. Required. + :ivar connection_server_name: The FQDN host name of the server to use in the connection string + when connecting to a target. For example, for an Azure SQL logical server in the Azure + commercial cloud, the value might be 'sql-logical-server-22092780.database.windows.net'; for an + Azure SQL managed instance in the Azure commercial cloud, the value might be + 'sql-mi-39441134.767d5869f605.database.windows.net'. Port number and instance name must be + specified separately. Required. :vartype connection_server_name: str :ivar provisioning_state: The provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". @@ -747,13 +802,19 @@ class SqlDbElasticPoolTargetProperties(TargetProperties, discriminator="SqlEp"): :vartype read_intent: bool """ - target_type: Literal["SqlEp"] = rest_discriminator(name="targetType") # type: ignore + target_type: Literal["SqlEp"] = rest_discriminator(name="targetType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """The Azure SQL DB elastic pool target. Required. Default value is \"SqlEp\".""" - sql_ep_resource_id: str = rest_field(name="sqlEpResourceId") + sql_ep_resource_id: str = rest_field( + name="sqlEpResourceId", visibility=["read", "create", "update", "delete", "query"] + ) """The Azure resource ID of an Azure SQL DB elastic pool target. Required.""" - anchor_database_resource_id: str = rest_field(name="anchorDatabaseResourceId") + anchor_database_resource_id: str = rest_field( + name="anchorDatabaseResourceId", visibility=["read", "create", "update", "delete", "query"] + ) """The Azure resource ID of the anchor database used to connect to an elastic pool. Required.""" - read_intent: Optional[bool] = rest_field(name="readIntent") + read_intent: Optional[bool] = rest_field( + name="readIntent", visibility=["read", "create", "update", "delete", "query"] + ) """Set to true to monitor a high availability replica of specified target, if any.""" @overload @@ -780,7 +841,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SqlDbSingleDatabaseTargetProperties(TargetProperties, discriminator="SqlDb"): - """The properties specific to single database in Azure SQL Database. + """The properties specific to a database in Azure SQL Database. Readonly variables are only populated by the server, and will be ignored when sending a request. @@ -792,8 +853,12 @@ class SqlDbSingleDatabaseTargetProperties(TargetProperties, discriminator="SqlDb :ivar target_vault: To use SQL authentication when connecting to targets, specify the vault where the login name and password secrets are stored. :vartype target_vault: ~azure.mgmt.databasewatcher.models.VaultSecret - :ivar connection_server_name: The server name to use in the connection string when connecting - to a target. Port number and instance name must be specified separately. Required. + :ivar connection_server_name: The FQDN host name of the server to use in the connection string + when connecting to a target. For example, for an Azure SQL logical server in the Azure + commercial cloud, the value might be 'sql-logical-server-22092780.database.windows.net'; for an + Azure SQL managed instance in the Azure commercial cloud, the value might be + 'sql-mi-39441134.767d5869f605.database.windows.net'. Port number and instance name must be + specified separately. Required. :vartype connection_server_name: str :ivar provisioning_state: The provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". @@ -801,19 +866,22 @@ class SqlDbSingleDatabaseTargetProperties(TargetProperties, discriminator="SqlDb ~azure.mgmt.databasewatcher.models.ResourceProvisioningState :ivar target_type: The Azure SQL DB single database target. Required. Default value is "SqlDb". :vartype target_type: str - :ivar sql_db_resource_id: The Azure resource ID of an Azure SQL DB single database target. - Required. + :ivar sql_db_resource_id: The Azure resource ID of an Azure SQL DB database target. Required. :vartype sql_db_resource_id: str :ivar read_intent: Set to true to monitor a high availability replica of specified target, if any. :vartype read_intent: bool """ - target_type: Literal["SqlDb"] = rest_discriminator(name="targetType") # type: ignore + target_type: Literal["SqlDb"] = rest_discriminator(name="targetType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """The Azure SQL DB single database target. Required. Default value is \"SqlDb\".""" - sql_db_resource_id: str = rest_field(name="sqlDbResourceId") - """The Azure resource ID of an Azure SQL DB single database target. Required.""" - read_intent: Optional[bool] = rest_field(name="readIntent") + sql_db_resource_id: str = rest_field( + name="sqlDbResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure resource ID of an Azure SQL DB database target. Required.""" + read_intent: Optional[bool] = rest_field( + name="readIntent", visibility=["read", "create", "update", "delete", "query"] + ) """Set to true to monitor a high availability replica of specified target, if any.""" @overload @@ -851,8 +919,12 @@ class SqlMiTargetProperties(TargetProperties, discriminator="SqlMi"): :ivar target_vault: To use SQL authentication when connecting to targets, specify the vault where the login name and password secrets are stored. :vartype target_vault: ~azure.mgmt.databasewatcher.models.VaultSecret - :ivar connection_server_name: The server name to use in the connection string when connecting - to a target. Port number and instance name must be specified separately. Required. + :ivar connection_server_name: The FQDN host name of the server to use in the connection string + when connecting to a target. For example, for an Azure SQL logical server in the Azure + commercial cloud, the value might be 'sql-logical-server-22092780.database.windows.net'; for an + Azure SQL managed instance in the Azure commercial cloud, the value might be + 'sql-mi-39441134.767d5869f605.database.windows.net'. Port number and instance name must be + specified separately. Required. :vartype connection_server_name: str :ivar provisioning_state: The provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". @@ -871,14 +943,20 @@ class SqlMiTargetProperties(TargetProperties, discriminator="SqlMi"): :vartype read_intent: bool """ - target_type: Literal["SqlMi"] = rest_discriminator(name="targetType") # type: ignore + target_type: Literal["SqlMi"] = rest_discriminator(name="targetType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """The Azure SQL Managed Instance target. Required. Default value is \"SqlMi\".""" - sql_mi_resource_id: str = rest_field(name="sqlMiResourceId") + sql_mi_resource_id: str = rest_field( + name="sqlMiResourceId", visibility=["read", "create", "update", "delete", "query"] + ) """The Azure resource ID of an Azure SQL Managed Instance target. Required.""" - connection_tcp_port: Optional[int] = rest_field(name="connectionTcpPort") + connection_tcp_port: Optional[int] = rest_field( + name="connectionTcpPort", visibility=["read", "create", "update", "delete", "query"] + ) """The TCP port number to optionally use in the connection string when connecting to an Azure SQL Managed Instance target.""" - read_intent: Optional[bool] = rest_field(name="readIntent") + read_intent: Optional[bool] = rest_field( + name="readIntent", visibility=["read", "create", "update", "delete", "query"] + ) """Set to true to monitor a high availability replica of specified target, if any.""" @overload @@ -923,19 +1001,29 @@ class SystemData(_model_base.Model): :vartype last_modified_at: ~datetime.datetime """ - created_by: Optional[str] = rest_field(name="createdBy") + created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"]) """The identity that created the resource.""" - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field(name="createdByType") + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="createdByType", visibility=["read", "create", "update", "delete", "query"] + ) """The type of identity that created the resource. Known values are: \"User\", \"Application\", \"ManagedIdentity\", and \"Key\".""" - created_at: Optional[datetime.datetime] = rest_field(name="createdAt", format="rfc3339") + created_at: Optional[datetime.datetime] = rest_field( + name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) """The timestamp of resource creation (UTC).""" - last_modified_by: Optional[str] = rest_field(name="lastModifiedBy") + last_modified_by: Optional[str] = rest_field( + name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"] + ) """The identity that last modified the resource.""" - last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field(name="lastModifiedByType") + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"] + ) """The type of identity that last modified the resource. Known values are: \"User\", \"Application\", \"ManagedIdentity\", and \"Key\".""" - last_modified_at: Optional[datetime.datetime] = rest_field(name="lastModifiedAt", format="rfc3339") + last_modified_at: Optional[datetime.datetime] = rest_field( + name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) """The timestamp of resource last modification (UTC).""" @overload @@ -968,7 +1056,7 @@ class Target(ProxyResource): Readonly variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str @@ -982,7 +1070,9 @@ class Target(ProxyResource): :vartype properties: ~azure.mgmt.databasewatcher.models.TargetProperties """ - properties: Optional["_models.TargetProperties"] = rest_field() + properties: Optional["_models.TargetProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) """The resource-specific properties for this resource.""" @overload @@ -1011,7 +1101,7 @@ class TrackedResource(Resource): :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str @@ -1027,7 +1117,7 @@ class TrackedResource(Resource): :vartype location: str """ - tags: Optional[Dict[str, str]] = rest_field() + tags: Optional[Dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Resource tags.""" location: str = rest_field(visibility=["read", "create"]) """The geo-location where the resource lives. Required.""" @@ -1056,16 +1146,16 @@ class UserAssignedIdentity(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - :ivar principal_id: The principal ID of the assigned identity. - :vartype principal_id: str :ivar client_id: The client ID of the assigned identity. :vartype client_id: str + :ivar principal_id: The principal ID of the assigned identity. + :vartype principal_id: str """ - principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) - """The principal ID of the assigned identity.""" client_id: Optional[str] = rest_field(name="clientId", visibility=["read"]) """The client ID of the assigned identity.""" + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The principal ID of the assigned identity.""" class ValidationIssue(_model_base.Model): @@ -1120,12 +1210,18 @@ class VaultSecret(_model_base.Model): :vartype akv_target_password: str """ - akv_resource_id: Optional[str] = rest_field(name="akvResourceId") + akv_resource_id: Optional[str] = rest_field( + name="akvResourceId", visibility=["read", "create", "update", "delete", "query"] + ) """The Azure resource ID of the Key Vault instance storing database authentication secrets.""" - akv_target_user: Optional[str] = rest_field(name="akvTargetUser") + akv_target_user: Optional[str] = rest_field( + name="akvTargetUser", visibility=["read", "create", "update", "delete", "query"] + ) """The path to the Key Vault secret storing the login name (aka user name, aka account name) for authentication to a target.""" - akv_target_password: Optional[str] = rest_field(name="akvTargetPassword") + akv_target_password: Optional[str] = rest_field( + name="akvTargetPassword", visibility=["read", "create", "update", "delete", "query"] + ) """The path to the Key Vault secret storing the password for authentication to a target.""" @overload @@ -1155,7 +1251,7 @@ class Watcher(TrackedResource): :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str @@ -1175,9 +1271,13 @@ class Watcher(TrackedResource): :vartype identity: ~azure.mgmt.databasewatcher.models.ManagedServiceIdentityV4 """ - properties: Optional["_models.WatcherProperties"] = rest_field() + properties: Optional["_models.WatcherProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) """The resource-specific properties for this resource.""" - identity: Optional["_models.ManagedServiceIdentityV4"] = rest_field() + identity: Optional["_models.ManagedServiceIdentityV4"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) """The managed service identities assigned to this resource.""" @overload @@ -1220,7 +1320,7 @@ class WatcherProperties(_model_base.Model): :vartype default_alert_rule_identity_resource_id: str """ - datastore: Optional["_models.Datastore"] = rest_field() + datastore: Optional["_models.Datastore"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The data store for collected monitoring data.""" status: Optional[Union[str, "_models.WatcherStatus"]] = rest_field(visibility=["read"]) """The monitoring collection status of the watcher. Known values are: \"Starting\", \"Running\", @@ -1230,7 +1330,9 @@ class WatcherProperties(_model_base.Model): ) """The provisioning state of the resource watcher. Known values are: \"Succeeded\", \"Failed\", and \"Canceled\".""" - default_alert_rule_identity_resource_id: Optional[str] = rest_field(name="defaultAlertRuleIdentityResourceId") + default_alert_rule_identity_resource_id: Optional[str] = rest_field( + name="defaultAlertRuleIdentityResourceId", visibility=["read", "create", "update", "delete", "query"] + ) """The resource ID of a user-assigned managed identity that will be assigned to a new alert rule.""" @overload @@ -1263,11 +1365,15 @@ class WatcherUpdate(_model_base.Model): :vartype properties: ~azure.mgmt.databasewatcher.models.WatcherUpdateProperties """ - identity: Optional["_models.ManagedServiceIdentityV4"] = rest_field() + identity: Optional["_models.ManagedServiceIdentityV4"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) """The managed service identities assigned to this resource.""" - tags: Optional[Dict[str, str]] = rest_field() + tags: Optional[Dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Resource tags.""" - properties: Optional["_models.WatcherUpdateProperties"] = rest_field() + properties: Optional["_models.WatcherUpdateProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) """The resource-specific properties for this resource.""" @overload @@ -1300,9 +1406,11 @@ class WatcherUpdateProperties(_model_base.Model): :vartype default_alert_rule_identity_resource_id: str """ - datastore: Optional["_models.Datastore"] = rest_field() + datastore: Optional["_models.Datastore"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The data store for collected monitoring data.""" - default_alert_rule_identity_resource_id: Optional[str] = rest_field(name="defaultAlertRuleIdentityResourceId") + default_alert_rule_identity_resource_id: Optional[str] = rest_field( + name="defaultAlertRuleIdentityResourceId", visibility=["read", "create", "update", "delete", "query"] + ) """The resource ID of a user-assigned managed identity that will be assigned to a new alert rule.""" @overload diff --git a/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/operations/_operations.py b/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/operations/_operations.py index 05716073510d..b5477bd245eb 100644 --- a/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/operations/_operations.py +++ b/sdk/databasewatcher/azure-mgmt-databasewatcher/azure/mgmt/databasewatcher/operations/_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -79,7 +79,7 @@ def build_watchers_get_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -108,7 +108,7 @@ def build_watchers_create_or_update_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -139,7 +139,7 @@ def build_watchers_update_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -169,7 +169,7 @@ def build_watchers_delete_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -197,7 +197,7 @@ def build_watchers_list_by_resource_group_request( # pylint: disable=name-too-l accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -250,7 +250,7 @@ def build_watchers_start_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/start" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/start" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -278,7 +278,7 @@ def build_watchers_stop_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/stop" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/stop" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -306,7 +306,7 @@ def build_alert_rule_resources_get_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -336,7 +336,7 @@ def build_alert_rule_resources_create_or_update_request( # pylint: disable=name accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -367,7 +367,7 @@ def build_alert_rule_resources_delete_request( # pylint: disable=name-too-long accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -396,7 +396,7 @@ def build_alert_rule_resources_list_by_parent_request( # pylint: disable=name-t accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -424,7 +424,7 @@ def build_health_validations_get_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -453,7 +453,7 @@ def build_health_validations_list_by_parent_request( # pylint: disable=name-too accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -481,7 +481,7 @@ def build_health_validations_start_validation_request( # pylint: disable=name-t accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}/startValidation" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}/startValidation" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -510,7 +510,7 @@ def build_targets_get_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets/{targetName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets/{targetName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -540,7 +540,7 @@ def build_targets_create_or_update_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets/{targetName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets/{targetName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -571,7 +571,7 @@ def build_targets_delete_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets/{targetName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets/{targetName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -600,7 +600,7 @@ def build_targets_list_by_watcher_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -632,7 +632,7 @@ def build_shared_private_link_resources_get_request( # pylint: disable=name-too accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -668,7 +668,7 @@ def build_shared_private_link_resources_create_request( # pylint: disable=name- accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -705,7 +705,7 @@ def build_shared_private_link_resources_delete_request( # pylint: disable=name- accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -736,7 +736,7 @@ def build_shared_private_link_resources_list_by_watcher_request( # pylint: disa accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), diff --git a/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/alert_rule_resources_create_or_update_maximum_set_gen.py b/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/alert_rule_resources_create_or_update_maximum_set_gen.py index 426b9e7b0197..4d407758d567 100644 --- a/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/alert_rule_resources_create_or_update_maximum_set_gen.py +++ b/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/alert_rule_resources_create_or_update_maximum_set_gen.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/shared_private_link_resources_create_maximum_set_gen.py b/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/shared_private_link_resources_create_maximum_set_gen.py index 22a553fca841..ec2d286719ea 100644 --- a/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/shared_private_link_resources_create_maximum_set_gen.py +++ b/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/shared_private_link_resources_create_maximum_set_gen.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/targets_create_or_update_maximum_set_gen.py b/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/targets_create_or_update_maximum_set_gen.py index 4ce44e0101c9..384a5902193f 100644 --- a/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/targets_create_or_update_maximum_set_gen.py +++ b/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/targets_create_or_update_maximum_set_gen.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/watchers_create_or_update_maximum_set_gen.py b/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/watchers_create_or_update_maximum_set_gen.py index 47358f2a94ac..c6ace54e37e3 100644 --- a/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/watchers_create_or_update_maximum_set_gen.py +++ b/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/watchers_create_or_update_maximum_set_gen.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/watchers_update_maximum_set_gen.py b/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/watchers_update_maximum_set_gen.py index e2084a0e8309..0adb88671c76 100644 --- a/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/watchers_update_maximum_set_gen.py +++ b/sdk/databasewatcher/azure-mgmt-databasewatcher/generated_samples/watchers_update_maximum_set_gen.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/sdk/databasewatcher/azure-mgmt-databasewatcher/tsp-location.yaml b/sdk/databasewatcher/azure-mgmt-databasewatcher/tsp-location.yaml index bcd3f01c6196..2abaae3f3f9c 100644 --- a/sdk/databasewatcher/azure-mgmt-databasewatcher/tsp-location.yaml +++ b/sdk/databasewatcher/azure-mgmt-databasewatcher/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/databasewatcher/DatabaseWatcher.Management -commit: 07da438f8dc690946b39511467744ed889434de5 +commit: 3350b3c1fe16b906adc33891c41ef8ace067c3dd repo: Azure/azure-rest-api-specs additionalDirectories: