Skip to content

Commit

Permalink
CodeGen from PR 18356 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Adding Microsoft.App stable version 2022-03-01 (Azure#18356)

* Adds base for updating Microsoft.App from version preview/2022-01-01-preview to version 2022-03-01

* Updates readme

* Updates API version in new specs and examples

* refactore properties (Azure#18137)

* [Non Break Change]Update to use easy auth v2 same as Web App (Azure#18143) (Azure#18217)

* Update auth config to use the same auth config in App Service

* Update for spell check

* Remove TokenStore/ConfigFilePath as not supported for ContainerApp

* Copy AuthConfig from previous version (Azure#18221)

* Copy updated AuthConfig from previous version

* Add suppression

* Add API for checkNameAvailability in 2022-03-01 (Azure#18204)

* add API

* update

* fix

* update

* update

* Add label property (Azure#18280)

* Add label property

* fix prettier

Co-authored-by: Juliehzl <[email protected]>

* refactor sc properties in 03-01 (Azure#18343)

* refactor sc properties in 03-01

* Revert "refactore properties (Azure#18137)"

This reverts commit 4fe86bce74ae6a3566388d0a1037cb35be8a23e7.

* add odata query (Azure#18364)

* Updating patch spec. (Azure#18354)

* Updating patch spec.

* Fix linter

* prettier fix

* Adding x-ms-long-running-operation

Co-authored-by: Ruslan Yakushev 🚴 <[email protected]>

Co-authored-by: Xingjian Wang <[email protected]>
Co-authored-by: erich-wang <[email protected]>
Co-authored-by: Zunli Hu <[email protected]>
Co-authored-by: Michael Dai <[email protected]>
Co-authored-by: Vaclav Turecek <[email protected]>
  • Loading branch information
6 people committed Mar 25, 2022
1 parent 77b9240 commit bfca3ee
Show file tree
Hide file tree
Showing 33 changed files with 1,156 additions and 661 deletions.
4 changes: 2 additions & 2 deletions sdk/app/azure-mgmt-app/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "4ac6be1b22f88bfbb6ca3e294e73538bcac90b49",
"commit": "202149c96d7e5cdd07cdcbc138309142b55321ad",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/app/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/app/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/app/resource-manager/readme.md"
}
2 changes: 1 addition & 1 deletion sdk/app/azure-mgmt-app/azure/mgmt/app/_configuration.py
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 = "2022-01-01-preview"
self.api_version = "2022-03-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-app/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
47 changes: 24 additions & 23 deletions sdk/app/azure-mgmt-app/azure/mgmt/app/_container_apps_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from . import models
from ._configuration import ContainerAppsAPIClientConfiguration
from .operations import CertificatesOperations, ContainerAppsAuthConfigsOperations, ContainerAppsOperations, ContainerAppsRevisionReplicasOperations, ContainerAppsRevisionsOperations, ContainerAppsSourceControlsOperations, DaprComponentsOperations, ManagedEnvironmentsOperations, ManagedEnvironmentsStoragesOperations, Operations
from .operations import CertificatesOperations, ContainerAppsAuthConfigsOperations, ContainerAppsOperations, ContainerAppsRevisionReplicasOperations, ContainerAppsRevisionsOperations, ContainerAppsSourceControlsOperations, DaprComponentsOperations, ManagedEnvironmentsOperations, ManagedEnvironmentsStoragesOperations, NamespacesOperations, Operations

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
Expand All @@ -24,32 +24,32 @@
class ContainerAppsAPIClient:
"""ContainerAppsAPIClient.
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
:vartype container_apps_auth_configs:
azure.mgmt.app.operations.ContainerAppsAuthConfigsOperations
:ivar container_apps: ContainerAppsOperations operations
:vartype container_apps: container_apps_api_client.operations.ContainerAppsOperations
:vartype container_apps: azure.mgmt.app.operations.ContainerAppsOperations
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
:vartype container_apps_revisions:
container_apps_api_client.operations.ContainerAppsRevisionsOperations
:vartype container_apps_revisions: azure.mgmt.app.operations.ContainerAppsRevisionsOperations
:ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations
:vartype container_apps_revision_replicas:
container_apps_api_client.operations.ContainerAppsRevisionReplicasOperations
azure.mgmt.app.operations.ContainerAppsRevisionReplicasOperations
:ivar dapr_components: DaprComponentsOperations operations
:vartype dapr_components: azure.mgmt.app.operations.DaprComponentsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.app.operations.Operations
:ivar managed_environments: ManagedEnvironmentsOperations operations
:vartype managed_environments:
container_apps_api_client.operations.ManagedEnvironmentsOperations
:vartype managed_environments: azure.mgmt.app.operations.ManagedEnvironmentsOperations
:ivar certificates: CertificatesOperations operations
:vartype certificates: container_apps_api_client.operations.CertificatesOperations
:ivar operations: Operations operations
:vartype operations: container_apps_api_client.operations.Operations
:ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
:vartype container_apps_source_controls:
container_apps_api_client.operations.ContainerAppsSourceControlsOperations
:ivar dapr_components: DaprComponentsOperations operations
:vartype dapr_components: container_apps_api_client.operations.DaprComponentsOperations
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
:vartype container_apps_auth_configs:
container_apps_api_client.operations.ContainerAppsAuthConfigsOperations
:vartype certificates: azure.mgmt.app.operations.CertificatesOperations
:ivar namespaces: NamespacesOperations operations
:vartype namespaces: azure.mgmt.app.operations.NamespacesOperations
:ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations
:vartype managed_environments_storages:
container_apps_api_client.operations.ManagedEnvironmentsStoragesOperations
azure.mgmt.app.operations.ManagedEnvironmentsStoragesOperations
:ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
:vartype container_apps_source_controls:
azure.mgmt.app.operations.ContainerAppsSourceControlsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
Expand All @@ -74,16 +74,17 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_revisions = ContainerAppsRevisionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations(self._client, self._config, self._serialize, self._deserialize)
self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.managed_environments = ManagedEnvironmentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.certificates = CertificatesOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_source_controls = ContainerAppsSourceControlsOperations(self._client, self._config, self._serialize, self._deserialize)
self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations(self._client, self._config, self._serialize, self._deserialize)
self.namespaces = NamespacesOperations(self._client, self._config, self._serialize, self._deserialize)
self.managed_environments_storages = ManagedEnvironmentsStoragesOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_source_controls = ContainerAppsSourceControlsOperations(self._client, self._config, self._serialize, self._deserialize)


def _send_request(
Expand Down
15 changes: 8 additions & 7 deletions sdk/app/azure-mgmt-app/azure/mgmt/app/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2022-01-01-preview",
"total_api_version_list": ["2022-01-01-preview"],
"chosen_version": "2022-03-01",
"total_api_version_list": ["2022-03-01"],
"client": {
"name": "ContainerAppsAPIClient",
"filename": "_container_apps_api_client",
Expand Down Expand Up @@ -97,15 +97,16 @@
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
},
"operation_groups": {
"container_apps_auth_configs": "ContainerAppsAuthConfigsOperations",
"container_apps": "ContainerAppsOperations",
"container_apps_revisions": "ContainerAppsRevisionsOperations",
"container_apps_revision_replicas": "ContainerAppsRevisionReplicasOperations",
"dapr_components": "DaprComponentsOperations",
"operations": "Operations",
"managed_environments": "ManagedEnvironmentsOperations",
"certificates": "CertificatesOperations",
"operations": "Operations",
"container_apps_source_controls": "ContainerAppsSourceControlsOperations",
"dapr_components": "DaprComponentsOperations",
"container_apps_auth_configs": "ContainerAppsAuthConfigsOperations",
"managed_environments_storages": "ManagedEnvironmentsStoragesOperations"
"namespaces": "NamespacesOperations",
"managed_environments_storages": "ManagedEnvironmentsStoragesOperations",
"container_apps_source_controls": "ContainerAppsSourceControlsOperations"
}
}
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 = "2022-01-01-preview"
self.api_version = "2022-03-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-app/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from .. import models
from ._configuration import ContainerAppsAPIClientConfiguration
from .operations import CertificatesOperations, ContainerAppsAuthConfigsOperations, ContainerAppsOperations, ContainerAppsRevisionReplicasOperations, ContainerAppsRevisionsOperations, ContainerAppsSourceControlsOperations, DaprComponentsOperations, ManagedEnvironmentsOperations, ManagedEnvironmentsStoragesOperations, Operations
from .operations import CertificatesOperations, ContainerAppsAuthConfigsOperations, ContainerAppsOperations, ContainerAppsRevisionReplicasOperations, ContainerAppsRevisionsOperations, ContainerAppsSourceControlsOperations, DaprComponentsOperations, ManagedEnvironmentsOperations, ManagedEnvironmentsStoragesOperations, NamespacesOperations, Operations

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
Expand All @@ -24,32 +24,33 @@
class ContainerAppsAPIClient:
"""ContainerAppsAPIClient.
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
:vartype container_apps_auth_configs:
azure.mgmt.app.aio.operations.ContainerAppsAuthConfigsOperations
:ivar container_apps: ContainerAppsOperations operations
:vartype container_apps: container_apps_api_client.aio.operations.ContainerAppsOperations
:vartype container_apps: azure.mgmt.app.aio.operations.ContainerAppsOperations
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
:vartype container_apps_revisions:
container_apps_api_client.aio.operations.ContainerAppsRevisionsOperations
azure.mgmt.app.aio.operations.ContainerAppsRevisionsOperations
:ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations
:vartype container_apps_revision_replicas:
container_apps_api_client.aio.operations.ContainerAppsRevisionReplicasOperations
azure.mgmt.app.aio.operations.ContainerAppsRevisionReplicasOperations
:ivar dapr_components: DaprComponentsOperations operations
:vartype dapr_components: azure.mgmt.app.aio.operations.DaprComponentsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.app.aio.operations.Operations
:ivar managed_environments: ManagedEnvironmentsOperations operations
:vartype managed_environments:
container_apps_api_client.aio.operations.ManagedEnvironmentsOperations
:vartype managed_environments: azure.mgmt.app.aio.operations.ManagedEnvironmentsOperations
:ivar certificates: CertificatesOperations operations
:vartype certificates: container_apps_api_client.aio.operations.CertificatesOperations
:ivar operations: Operations operations
:vartype operations: container_apps_api_client.aio.operations.Operations
:ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
:vartype container_apps_source_controls:
container_apps_api_client.aio.operations.ContainerAppsSourceControlsOperations
:ivar dapr_components: DaprComponentsOperations operations
:vartype dapr_components: container_apps_api_client.aio.operations.DaprComponentsOperations
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
:vartype container_apps_auth_configs:
container_apps_api_client.aio.operations.ContainerAppsAuthConfigsOperations
:vartype certificates: azure.mgmt.app.aio.operations.CertificatesOperations
:ivar namespaces: NamespacesOperations operations
:vartype namespaces: azure.mgmt.app.aio.operations.NamespacesOperations
:ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations
:vartype managed_environments_storages:
container_apps_api_client.aio.operations.ManagedEnvironmentsStoragesOperations
azure.mgmt.app.aio.operations.ManagedEnvironmentsStoragesOperations
:ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
:vartype container_apps_source_controls:
azure.mgmt.app.aio.operations.ContainerAppsSourceControlsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
Expand All @@ -74,16 +75,17 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_revisions = ContainerAppsRevisionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations(self._client, self._config, self._serialize, self._deserialize)
self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.managed_environments = ManagedEnvironmentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.certificates = CertificatesOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_source_controls = ContainerAppsSourceControlsOperations(self._client, self._config, self._serialize, self._deserialize)
self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations(self._client, self._config, self._serialize, self._deserialize)
self.namespaces = NamespacesOperations(self._client, self._config, self._serialize, self._deserialize)
self.managed_environments_storages = ManagedEnvironmentsStoragesOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_source_controls = ContainerAppsSourceControlsOperations(self._client, self._config, self._serialize, self._deserialize)


def _send_request(
Expand Down
18 changes: 10 additions & 8 deletions sdk/app/azure-mgmt-app/azure/mgmt/app/aio/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,28 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._container_apps_auth_configs_operations import ContainerAppsAuthConfigsOperations
from ._container_apps_operations import ContainerAppsOperations
from ._container_apps_revisions_operations import ContainerAppsRevisionsOperations
from ._container_apps_revision_replicas_operations import ContainerAppsRevisionReplicasOperations
from ._dapr_components_operations import DaprComponentsOperations
from ._operations import Operations
from ._managed_environments_operations import ManagedEnvironmentsOperations
from ._certificates_operations import CertificatesOperations
from ._operations import Operations
from ._container_apps_source_controls_operations import ContainerAppsSourceControlsOperations
from ._dapr_components_operations import DaprComponentsOperations
from ._container_apps_auth_configs_operations import ContainerAppsAuthConfigsOperations
from ._namespaces_operations import NamespacesOperations
from ._managed_environments_storages_operations import ManagedEnvironmentsStoragesOperations
from ._container_apps_source_controls_operations import ContainerAppsSourceControlsOperations

__all__ = [
'ContainerAppsAuthConfigsOperations',
'ContainerAppsOperations',
'ContainerAppsRevisionsOperations',
'ContainerAppsRevisionReplicasOperations',
'DaprComponentsOperations',
'Operations',
'ManagedEnvironmentsOperations',
'CertificatesOperations',
'Operations',
'ContainerAppsSourceControlsOperations',
'DaprComponentsOperations',
'ContainerAppsAuthConfigsOperations',
'NamespacesOperations',
'ManagedEnvironmentsStoragesOperations',
'ContainerAppsSourceControlsOperations',
]
Loading

0 comments on commit bfca3ee

Please sign in to comment.