Skip to content

Commit

Permalink
CodeGen from PR 16207 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Fix schemas readme files (Azure#16207)

* Fix schemas readme files

* fix ref
  • Loading branch information
SDKAuto committed Nov 1, 2021
1 parent a644e1e commit 9c521d8
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 76 deletions.
2 changes: 1 addition & 1 deletion sdk/azurearcdata/azure-mgmt-azurearcdata/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "b28a542b3eb4f2f4f384b14b635d0a835df818cd",
"commit": "9f70268eb3c71b3d79a7ded837ea20d3e7383d30",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/azurearcdata/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/azurearcdata/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-11-01"
self.api_version = "2021-08-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-azurearcdata/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-11-01",
"total_api_version_list": ["2021-11-01"],
"chosen_version": "2021-08-01",
"total_api_version_list": ["2021-08-01"],
"client": {
"name": "AzureArcDataManagementClient",
"filename": "_azure_arc_data_management_client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-11-01"
self.api_version = "2021-08-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-azurearcdata/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def list_in_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -133,7 +133,7 @@ def list_in_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -197,7 +197,7 @@ async def _put_data_controller_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -325,7 +325,7 @@ async def _delete_data_controller_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -445,7 +445,7 @@ async def get_data_controller(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -507,7 +507,7 @@ async def patch_data_controller(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -133,7 +133,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -207,7 +207,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -256,7 +256,7 @@ async def _create_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -384,7 +384,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -507,7 +507,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -133,7 +133,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -207,7 +207,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -256,7 +256,7 @@ async def _create_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -384,7 +384,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -507,7 +507,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,12 @@ class DataControllerProperties(msrest.serialization.Model):
:param last_uploaded_date: Last uploaded date from Kubernetes cluster. Defaults to current date
time.
:type last_uploaded_date: ~datetime.datetime
:param basic_login_information: Deprecated. Azure Arc Data Services data controller no longer
expose any endpoint. All traffic are exposed through Kubernetes native API.
:param basic_login_information: Username and password for basic login authentication.
:type basic_login_information: ~azure_arc_data_management_client.models.BasicLoginInformation
:param metrics_dashboard_credential: Login credential for metrics dashboard on the Kubernetes
cluster.
:type metrics_dashboard_credential:
~azure_arc_data_management_client.models.BasicLoginInformation
:param logs_dashboard_credential: Login credential for logs dashboard on the Kubernetes
cluster.
:type logs_dashboard_credential: ~azure_arc_data_management_client.models.BasicLoginInformation
:param log_analytics_workspace_config: Log analytics workspace id and primary key.
:type log_analytics_workspace_config:
~azure_arc_data_management_client.models.LogAnalyticsWorkspaceConfig
:param upload_service_principal: Deprecated. Service principal is deprecated in favor of Arc
Kubernetes service extension managed identity.
:param upload_service_principal: Service principal for uploading billing, metrics and logs.
:type upload_service_principal: ~azure_arc_data_management_client.models.UploadServicePrincipal
:ivar provisioning_state:
:vartype provisioning_state: str
Expand All @@ -133,8 +124,6 @@ class DataControllerProperties(msrest.serialization.Model):
'upload_watermark': {'key': 'uploadWatermark', 'type': 'UploadWatermark'},
'last_uploaded_date': {'key': 'lastUploadedDate', 'type': 'iso-8601'},
'basic_login_information': {'key': 'basicLoginInformation', 'type': 'BasicLoginInformation'},
'metrics_dashboard_credential': {'key': 'metricsDashboardCredential', 'type': 'BasicLoginInformation'},
'logs_dashboard_credential': {'key': 'logsDashboardCredential', 'type': 'BasicLoginInformation'},
'log_analytics_workspace_config': {'key': 'logAnalyticsWorkspaceConfig', 'type': 'LogAnalyticsWorkspaceConfig'},
'upload_service_principal': {'key': 'uploadServicePrincipal', 'type': 'UploadServicePrincipal'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
Expand All @@ -153,8 +142,6 @@ def __init__(
self.upload_watermark = kwargs.get('upload_watermark', None)
self.last_uploaded_date = kwargs.get('last_uploaded_date', None)
self.basic_login_information = kwargs.get('basic_login_information', None)
self.metrics_dashboard_credential = kwargs.get('metrics_dashboard_credential', None)
self.logs_dashboard_credential = kwargs.get('logs_dashboard_credential', None)
self.log_analytics_workspace_config = kwargs.get('log_analytics_workspace_config', None)
self.upload_service_principal = kwargs.get('upload_service_principal', None)
self.provisioning_state = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,12 @@ class DataControllerProperties(msrest.serialization.Model):
:param last_uploaded_date: Last uploaded date from Kubernetes cluster. Defaults to current date
time.
:type last_uploaded_date: ~datetime.datetime
:param basic_login_information: Deprecated. Azure Arc Data Services data controller no longer
expose any endpoint. All traffic are exposed through Kubernetes native API.
:param basic_login_information: Username and password for basic login authentication.
:type basic_login_information: ~azure_arc_data_management_client.models.BasicLoginInformation
:param metrics_dashboard_credential: Login credential for metrics dashboard on the Kubernetes
cluster.
:type metrics_dashboard_credential:
~azure_arc_data_management_client.models.BasicLoginInformation
:param logs_dashboard_credential: Login credential for logs dashboard on the Kubernetes
cluster.
:type logs_dashboard_credential: ~azure_arc_data_management_client.models.BasicLoginInformation
:param log_analytics_workspace_config: Log analytics workspace id and primary key.
:type log_analytics_workspace_config:
~azure_arc_data_management_client.models.LogAnalyticsWorkspaceConfig
:param upload_service_principal: Deprecated. Service principal is deprecated in favor of Arc
Kubernetes service extension managed identity.
:param upload_service_principal: Service principal for uploading billing, metrics and logs.
:type upload_service_principal: ~azure_arc_data_management_client.models.UploadServicePrincipal
:ivar provisioning_state:
:vartype provisioning_state: str
Expand All @@ -147,8 +138,6 @@ class DataControllerProperties(msrest.serialization.Model):
'upload_watermark': {'key': 'uploadWatermark', 'type': 'UploadWatermark'},
'last_uploaded_date': {'key': 'lastUploadedDate', 'type': 'iso-8601'},
'basic_login_information': {'key': 'basicLoginInformation', 'type': 'BasicLoginInformation'},
'metrics_dashboard_credential': {'key': 'metricsDashboardCredential', 'type': 'BasicLoginInformation'},
'logs_dashboard_credential': {'key': 'logsDashboardCredential', 'type': 'BasicLoginInformation'},
'log_analytics_workspace_config': {'key': 'logAnalyticsWorkspaceConfig', 'type': 'LogAnalyticsWorkspaceConfig'},
'upload_service_principal': {'key': 'uploadServicePrincipal', 'type': 'UploadServicePrincipal'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
Expand All @@ -165,8 +154,6 @@ def __init__(
upload_watermark: Optional["UploadWatermark"] = None,
last_uploaded_date: Optional[datetime.datetime] = None,
basic_login_information: Optional["BasicLoginInformation"] = None,
metrics_dashboard_credential: Optional["BasicLoginInformation"] = None,
logs_dashboard_credential: Optional["BasicLoginInformation"] = None,
log_analytics_workspace_config: Optional["LogAnalyticsWorkspaceConfig"] = None,
upload_service_principal: Optional["UploadServicePrincipal"] = None,
cluster_id: Optional[str] = None,
Expand All @@ -180,8 +167,6 @@ def __init__(
self.upload_watermark = upload_watermark
self.last_uploaded_date = last_uploaded_date
self.basic_login_information = basic_login_information
self.metrics_dashboard_credential = metrics_dashboard_credential
self.logs_dashboard_credential = logs_dashboard_credential
self.log_analytics_workspace_config = log_analytics_workspace_config
self.upload_service_principal = upload_service_principal
self.provisioning_state = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def list_in_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -139,7 +139,7 @@ def list_in_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -204,7 +204,7 @@ def _put_data_controller_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -334,7 +334,7 @@ def _delete_data_controller_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -456,7 +456,7 @@ def get_data_controller(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -519,7 +519,7 @@ def patch_data_controller(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-11-01"
api_version = "2021-08-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Loading

0 comments on commit 9c521d8

Please sign in to comment.