id
int64
0
843k
repository_name
stringlengths
7
55
file_path
stringlengths
9
332
class_name
stringlengths
3
290
human_written_code
stringlengths
12
4.36M
class_skeleton
stringlengths
19
2.2M
total_program_units
int64
1
9.57k
total_doc_str
int64
0
4.2k
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
300
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
176
CountClassBase
float64
0
48
CountClassCoupled
float64
0
589
CountClassCoupledModified
float64
0
581
CountClassDerived
float64
0
5.37k
CountDeclInstanceMethod
float64
0
4.2k
CountDeclInstanceVariable
float64
0
299
CountDeclMethod
float64
0
4.2k
CountDeclMethodAll
float64
0
4.2k
CountLine
float64
1
115k
CountLineBlank
float64
0
9.01k
CountLineCode
float64
0
94.4k
CountLineCodeDecl
float64
0
46.1k
CountLineCodeExe
float64
0
91.3k
CountLineComment
float64
0
27k
CountStmt
float64
1
93.2k
CountStmtDecl
float64
0
46.1k
CountStmtExe
float64
0
90.2k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
6k
8,300
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/ipam_pool/_delete.py
azext_network_manager.aaz.latest.network.manager.ipam_pool._delete.Delete.IpamPoolsDelete
class IpamPoolsDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_204, self.on_error, lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "poolName", self.ctx.args.pool_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-05-01", required=True, ), } return parameters def on_204(self, session): pass def on_200_201(self, session): pass
class IpamPoolsDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_204(self, session): pass def on_200_201(self, session): pass
14
0
9
0
9
0
1
0
1
0
0
0
8
1
8
8
88
9
79
20
65
0
28
14
19
4
1
1
11
8,301
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_update.py
azext_spring.tests.latest.test_asa_update.TestSpringAppUpdateWithPrivateStorageAccess
class TestSpringAppUpdateWithPrivateStorageAccess(BasicTest): def test_asa_update_with_private_storage_access(self): self._execute('rg', 'asa', enable_private_storage_access=True) resource = self.updated_resource self.assertEqual("Enabled", resource.properties.vnet_addons.private_storage_access)
class TestSpringAppUpdateWithPrivateStorageAccess(BasicTest): def test_asa_update_with_private_storage_access(self): pass
2
0
4
0
4
0
1
0
1
0
0
0
1
0
1
76
5
0
5
3
3
0
5
3
3
1
3
0
1
8,302
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/ipam_pool/_create.py
azext_network_manager.aaz.latest.network.manager.ipam_pool._create.Create.IpamPoolsCreate
class IpamPoolsCreate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "poolName", self.ctx.args.pool_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-05-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={ "flags": {"required": True}}) _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) _builder.set_prop("tags", AAZDictType, ".tags") properties = _builder.get(".properties") if properties is not None: properties.set_prop("addressPrefixes", AAZListType, ".address_prefixes", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("description", AAZStrType, ".description") properties.set_prop("displayName", AAZStrType, ".display_name") properties.set_prop( "parentPoolName", AAZStrType, ".parent_pool_name") address_prefixes = _builder.get(".properties.addressPrefixes") if address_prefixes is not None: address_prefixes.set_elements(AAZStrType, ".") tags = _builder.get(".tags") if tags is not None: tags.set_elements(AAZStrType, ".") return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.location = AAZStrType( flags={"required": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType( flags={"required": True}, ) _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200_201.tags = AAZDictType() _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.address_prefixes = AAZListType( serialized_name="addressPrefixes", flags={"required": True}, ) properties.description = AAZStrType() properties.display_name = AAZStrType( serialized_name="displayName", ) properties.ip_address_type = AAZListType( serialized_name="ipAddressType", flags={"read_only": True}, ) properties.parent_pool_name = AAZStrType( serialized_name="parentPoolName", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) address_prefixes = cls._schema_on_200_201.properties.address_prefixes address_prefixes.Element = AAZStrType() ip_address_type = cls._schema_on_200_201.properties.ip_address_type ip_address_type.Element = AAZStrType() system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) tags = cls._schema_on_200_201.tags tags.Element = AAZStrType() return cls._schema_on_200_201
class IpamPoolsCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
18
1
17
0
2
0
1
0
0
0
9
1
10
10
204
24
180
38
161
0
80
29
69
4
1
1
16
8,303
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_custom_tester.py
azext_spring.tests.latest.test_custom_tester.TestStringReplacer
class TestStringReplacer(unittest.TestCase): def _mock_request(self, uri, body=None): request = mock.MagicMock() request.uri = uri request.method = 'POST' request.headers = {'Content-Type': 'application/json'} request.body = body return request def _mock_repsonse(self, parameter): return { 'body': { 'string': parameter }, 'headers': { 'azure-asyncoperation': [parameter], 'location': [parameter] } } def test_process_request(self): for parameter, expected in { '/resourceGroups/cli/Spring/cli': '/resourceGroups/moniker/Spring/moniker', '/resourceGroups/cli/Spring/cli-unittest?api-version=2022-11-01': '/resourceGroups/moniker/Spring/cli-unittest?api-version=2022-11-01', '/resourceGroups/cli-unittest/Spring/cli?api-version=2022-11-01': '/resourceGroups/cli-unittest/Spring/moniker?api-version=2022-11-01', '/resourceGroups/cli-unittest/Spring/cli': '/resourceGroups/cli-unittest/Spring/moniker', '{"resourceGroup": "cli", "id": "/resourceGroups/cli/Spring/cli-unittest", "name": "cli-unittest"}': '{"resourceGroup": "moniker", "id": "/resourceGroups/moniker/Spring/cli-unittest", "name": "cli-unittest"}', '"fqdn":"cli.azuremicroservices.io"': '"fqdn":"moniker.azuremicroservices.io"', 'X1jIN@cli.test.azuremicroservices.io': 'X1jIN@moniker.test.azuremicroservices.io', '/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitestnlsit2kc/operationId/id': '/resourceGroups/moniker/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitestnlsit2kc/operationId/id', }.items(): processor = SpringSingleValueReplacer('cli', 'moniker') request = processor.process_request(self._mock_request(parameter)) self.assertEqual(expected, request.uri) processor = SpringSingleValueReplacer('cli', 'moniker') response = processor.process_response(self._mock_repsonse(parameter)) self.assertEqual(expected, response['body']['string']) self.assertEqual(expected, str(response['headers']['location'][0])) self.assertEqual(expected, response['headers']['azure-asyncoperation'][0])
class TestStringReplacer(unittest.TestCase): def _mock_request(self, uri, body=None): pass def _mock_repsonse(self, parameter): pass def test_process_request(self): pass
4
0
12
0
12
0
1
0
1
3
1
0
3
0
3
75
40
3
37
9
33
0
20
9
16
2
2
1
4
8,304
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/_app_platform_management_client.py
azext_spring.vendored_sdks.appplatform._app_platform_management_client.AppPlatformManagementClient
class AppPlatformManagementClient(MultiApiClientMixin, _SDKClient): """REST API for Azure Spring Apps. This ready contains multiple API versions, to help you deal with all of the Azure clouds (Azure Stack, Azure Government, Azure China, etc.). By default, it uses the latest API version available on public Azure. For production, you should stick to a particular api-version and/or profile. The profile sets a mapping between an operation group and its API version. The api-version parameter sets the default API version if the operation group is not described in the profile. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param api_version: API version to use if no profile is provided, or if missing in profile. :type api_version: str :param base_url: Service URL :type base_url: str :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ DEFAULT_API_VERSION = '2023-12-01' _PROFILE_TAG = "azure.mgmt.appplatform.AppPlatformManagementClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, }}, _PROFILE_TAG + " latest" ) def __init__( self, credential: "TokenCredential", subscription_id: str, api_version: Optional[str]=None, base_url: str = "https://management.azure.com", profile: KnownProfiles=KnownProfiles.default, **kwargs: Any ): if api_version: kwargs.setdefault('api_version', api_version) self._config = AppPlatformManagementClientConfiguration(credential, subscription_id, **kwargs) _policies = kwargs.pop("policies", None) if _policies is None: _policies = [ policies.RequestIdPolicy(**kwargs), self._config.headers_policy, self._config.user_agent_policy, self._config.proxy_policy, policies.ContentDecodePolicy(**kwargs), ARMAutoResourceProviderRegistrationPolicy(), self._config.redirect_policy, self._config.retry_policy, self._config.authentication_policy, self._config.custom_hook_policy, self._config.logging_policy, policies.DistributedTracingPolicy(**kwargs), policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] self._client = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) super(AppPlatformManagementClient, self).__init__( api_version=api_version, profile=profile ) @classmethod def _models_dict(cls, api_version): return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} @classmethod def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2020-07-01: :mod:`v2020_07_01.models<azure.mgmt.appplatform.v2020_07_01.models>` * 2020-11-01-preview: :mod:`v2020_11_01_preview.models<azure.mgmt.appplatform.v2020_11_01_preview.models>` * 2021-06-01-preview: :mod:`v2021_06_01_preview.models<azure.mgmt.appplatform.v2021_06_01_preview.models>` * 2021-09-01-preview: :mod:`v2021_09_01_preview.models<azure.mgmt.appplatform.v2021_09_01_preview.models>` * 2022-01-01-preview: :mod:`v2022_01_01_preview.models<azure.mgmt.appplatform.v2022_01_01_preview.models>` * 2022-03-01-preview: :mod:`v2022_03_01_preview.models<azure.mgmt.appplatform.v2022_03_01_preview.models>` * 2022-04-01: :mod:`v2022_04_01.models<azure.mgmt.appplatform.v2022_04_01.models>` * 2022-05-01-preview: :mod:`v2022_05_01_preview.models<azure.mgmt.appplatform.v2022_05_01_preview.models>` * 2022-09-01-preview: :mod:`v2022_09_01_preview.models<azure.mgmt.appplatform.v2022_09_01_preview.models>` * 2022-11-01-preview: :mod:`v2022_11_01_preview.models<azure.mgmt.appplatform.v2022_11_01_preview.models>` * 2022-12-01: :mod:`v2022_12_01.models<azure.mgmt.appplatform.v2022_12_01.models>` * 2023-01-01-preview: :mod:`v2023_01_01_preview.models<azure.mgmt.appplatform.v2023_01_01_preview.models>` * 2023-03-01-preview: :mod:`v2023_03_01_preview.models<azure.mgmt.appplatform.v2023_03_01_preview.models>` * 2023-05-01-preview: :mod:`v2023_05_01_preview.models<azure.mgmt.appplatform.v2023_05_01_preview.models>` * 2023-07-01-preview: :mod:`v2023_07_01_preview.models<azure.mgmt.appplatform.v2023_07_01_preview.models>` * 2023-09-01-preview: :mod:`v2023_09_01_preview.models<azure.mgmt.appplatform.v2023_09_01_preview.models>` * 2023-11-01-preview: :mod:`v2023_11_01_preview.models<azure.mgmt.appplatform.v2023_11_01_preview.models>` * 2023-12-01: :mod:`v2023_12_01.models<azure.mgmt.appplatform.v2023_12_01.models>` * 2024-01-01-preview: :mod:`v2024_01_01_preview.models<azure.mgmt.appplatform.v2024_01_01_preview.models>` * 2024-05-01-preview: :mod:`v2024_05_01_preview.models<azure.mgmt.appplatform.v2024_05_01_preview.models>` """ if api_version == '2020-07-01': from .v2020_07_01 import models return models elif api_version == '2020-11-01-preview': from .v2020_11_01_preview import models return models elif api_version == '2021-06-01-preview': from .v2021_06_01_preview import models return models elif api_version == '2021-09-01-preview': from .v2021_09_01_preview import models return models elif api_version == '2022-01-01-preview': from .v2022_01_01_preview import models return models elif api_version == '2022-03-01-preview': from .v2022_03_01_preview import models return models elif api_version == '2022-04-01': from .v2022_04_01 import models return models elif api_version == '2022-05-01-preview': from .v2022_05_01_preview import models return models elif api_version == '2022-09-01-preview': from .v2022_09_01_preview import models return models elif api_version == '2022-11-01-preview': from .v2022_11_01_preview import models return models elif api_version == '2022-12-01': from .v2022_12_01 import models return models elif api_version == '2023-01-01-preview': from .v2023_01_01_preview import models return models elif api_version == '2023-03-01-preview': from .v2023_03_01_preview import models return models elif api_version == '2023-05-01-preview': from .v2023_05_01_preview import models return models elif api_version == '2023-07-01-preview': from .v2023_07_01_preview import models return models elif api_version == '2023-09-01-preview': from .v2023_09_01_preview import models return models elif api_version == '2023-11-01-preview': from .v2023_11_01_preview import models return models elif api_version == '2023-12-01': from .v2023_12_01 import models return models elif api_version == '2024-01-01-preview': from .v2024_01_01_preview import models return models elif api_version == '2024-05-01-preview': from .v2024_05_01_preview import models return models raise ValueError("API version {} is not available".format(api_version)) @property def api_portal_custom_domains(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2022-03-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2022-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2022-09-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2022-11-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2022-12-01: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.operations.ApiPortalCustomDomainsOperations>` * 2023-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-03-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-07-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-09-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-11-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-12-01: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.operations.ApiPortalCustomDomainsOperations>` * 2024-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2024-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ApiPortalCustomDomainsOperations>` """ api_version = self._get_api_version('api_portal_custom_domains') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import ApiPortalCustomDomainsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'api_portal_custom_domains'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def api_portals(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ApiPortalsOperations>` * 2022-03-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ApiPortalsOperations>` * 2022-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ApiPortalsOperations>` * 2022-09-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ApiPortalsOperations>` * 2022-11-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ApiPortalsOperations>` * 2022-12-01: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_12_01.operations.ApiPortalsOperations>` * 2023-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ApiPortalsOperations>` * 2023-03-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ApiPortalsOperations>` * 2023-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ApiPortalsOperations>` * 2023-07-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ApiPortalsOperations>` * 2023-09-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ApiPortalsOperations>` * 2023-11-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ApiPortalsOperations>` * 2023-12-01: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_12_01.operations.ApiPortalsOperations>` * 2024-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ApiPortalsOperations>` * 2024-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ApiPortalsOperations>` """ api_version = self._get_api_version('api_portals') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import ApiPortalsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import ApiPortalsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import ApiPortalsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'api_portals'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def apms(self): """Instance depends on the API version: * 2023-05-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ApmsOperations>` * 2023-07-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ApmsOperations>` * 2023-09-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ApmsOperations>` * 2023-11-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ApmsOperations>` * 2023-12-01: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_12_01.operations.ApmsOperations>` * 2024-01-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ApmsOperations>` * 2024-05-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ApmsOperations>` """ api_version = self._get_api_version('apms') if api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import ApmsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import ApmsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import ApmsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import ApmsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import ApmsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import ApmsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import ApmsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'apms'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def application_accelerators(self): """Instance depends on the API version: * 2022-11-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-01-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-03-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-05-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-07-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-09-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-11-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-12-01: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.operations.ApplicationAcceleratorsOperations>` * 2024-01-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ApplicationAcceleratorsOperations>` * 2024-05-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ApplicationAcceleratorsOperations>` """ api_version = self._get_api_version('application_accelerators') if api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import ApplicationAcceleratorsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'application_accelerators'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def application_live_views(self): """Instance depends on the API version: * 2022-11-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-01-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-03-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-05-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-07-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-09-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-11-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-12-01: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_12_01.operations.ApplicationLiveViewsOperations>` * 2024-01-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ApplicationLiveViewsOperations>` * 2024-05-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ApplicationLiveViewsOperations>` """ api_version = self._get_api_version('application_live_views') if api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import ApplicationLiveViewsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'application_live_views'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def apps(self): """Instance depends on the API version: * 2020-07-01: :class:`AppsOperations<azure.mgmt.appplatform.v2020_07_01.operations.AppsOperations>` * 2020-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.AppsOperations>` * 2021-06-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.AppsOperations>` * 2021-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.AppsOperations>` * 2022-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.AppsOperations>` * 2022-03-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.AppsOperations>` * 2022-04-01: :class:`AppsOperations<azure.mgmt.appplatform.v2022_04_01.operations.AppsOperations>` * 2022-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.AppsOperations>` * 2022-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.AppsOperations>` * 2022-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.AppsOperations>` * 2022-12-01: :class:`AppsOperations<azure.mgmt.appplatform.v2022_12_01.operations.AppsOperations>` * 2023-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.AppsOperations>` * 2023-03-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.AppsOperations>` * 2023-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.AppsOperations>` * 2023-07-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.AppsOperations>` * 2023-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.AppsOperations>` * 2023-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.AppsOperations>` * 2023-12-01: :class:`AppsOperations<azure.mgmt.appplatform.v2023_12_01.operations.AppsOperations>` * 2024-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.AppsOperations>` * 2024-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.AppsOperations>` """ api_version = self._get_api_version('apps') if api_version == '2020-07-01': from .v2020_07_01.operations import AppsOperations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import AppsOperations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import AppsOperations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import AppsOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import AppsOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import AppsOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import AppsOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import AppsOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import AppsOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import AppsOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import AppsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import AppsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import AppsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import AppsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import AppsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import AppsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import AppsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import AppsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import AppsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import AppsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'apps'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def bindings(self): """Instance depends on the API version: * 2020-07-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_07_01.operations.BindingsOperations>` * 2020-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.BindingsOperations>` * 2021-06-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.BindingsOperations>` * 2021-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.BindingsOperations>` * 2022-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.BindingsOperations>` * 2022-03-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.BindingsOperations>` * 2022-04-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_04_01.operations.BindingsOperations>` * 2022-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.BindingsOperations>` * 2022-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.BindingsOperations>` * 2022-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.BindingsOperations>` * 2022-12-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_12_01.operations.BindingsOperations>` * 2023-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.BindingsOperations>` * 2023-03-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.BindingsOperations>` * 2023-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.BindingsOperations>` * 2023-07-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.BindingsOperations>` * 2023-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.BindingsOperations>` * 2023-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.BindingsOperations>` * 2023-12-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_12_01.operations.BindingsOperations>` * 2024-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.BindingsOperations>` * 2024-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.BindingsOperations>` """ api_version = self._get_api_version('bindings') if api_version == '2020-07-01': from .v2020_07_01.operations import BindingsOperations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import BindingsOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import BindingsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import BindingsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import BindingsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import BindingsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'bindings'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def build_service(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildServiceOperations>` * 2022-03-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildServiceOperations>` * 2022-04-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_04_01.operations.BuildServiceOperations>` * 2022-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildServiceOperations>` * 2022-09-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildServiceOperations>` * 2022-11-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildServiceOperations>` * 2022-12-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_12_01.operations.BuildServiceOperations>` * 2023-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildServiceOperations>` * 2023-03-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildServiceOperations>` * 2023-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildServiceOperations>` * 2023-07-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildServiceOperations>` * 2023-09-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildServiceOperations>` * 2023-11-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildServiceOperations>` * 2023-12-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceOperations>` * 2024-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildServiceOperations>` * 2024-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.BuildServiceOperations>` """ api_version = self._get_api_version('build_service') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import BuildServiceOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import BuildServiceOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import BuildServiceOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import BuildServiceOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import BuildServiceOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'build_service'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def build_service_agent_pool(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildServiceAgentPoolOperations>` * 2022-03-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildServiceAgentPoolOperations>` * 2022-04-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_04_01.operations.BuildServiceAgentPoolOperations>` * 2022-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildServiceAgentPoolOperations>` * 2022-09-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildServiceAgentPoolOperations>` * 2022-11-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildServiceAgentPoolOperations>` * 2022-12-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_12_01.operations.BuildServiceAgentPoolOperations>` * 2023-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-03-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-07-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-09-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-11-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-12-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceAgentPoolOperations>` * 2024-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildServiceAgentPoolOperations>` * 2024-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.BuildServiceAgentPoolOperations>` """ api_version = self._get_api_version('build_service_agent_pool') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import BuildServiceAgentPoolOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'build_service_agent_pool'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def build_service_builder(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildServiceBuilderOperations>` * 2022-03-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildServiceBuilderOperations>` * 2022-04-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_04_01.operations.BuildServiceBuilderOperations>` * 2022-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildServiceBuilderOperations>` * 2022-09-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildServiceBuilderOperations>` * 2022-11-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildServiceBuilderOperations>` * 2022-12-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_12_01.operations.BuildServiceBuilderOperations>` * 2023-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildServiceBuilderOperations>` * 2023-03-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildServiceBuilderOperations>` * 2023-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildServiceBuilderOperations>` * 2023-07-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildServiceBuilderOperations>` * 2023-09-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildServiceBuilderOperations>` * 2023-11-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildServiceBuilderOperations>` * 2023-12-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceBuilderOperations>` * 2024-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildServiceBuilderOperations>` * 2024-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.BuildServiceBuilderOperations>` """ api_version = self._get_api_version('build_service_builder') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import BuildServiceBuilderOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'build_service_builder'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def buildpack_binding(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildpackBindingOperations>` * 2022-03-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildpackBindingOperations>` * 2022-04-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_04_01.operations.BuildpackBindingOperations>` * 2022-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildpackBindingOperations>` * 2022-09-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildpackBindingOperations>` * 2022-11-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildpackBindingOperations>` * 2022-12-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_12_01.operations.BuildpackBindingOperations>` * 2023-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildpackBindingOperations>` * 2023-03-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildpackBindingOperations>` * 2023-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildpackBindingOperations>` * 2023-07-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildpackBindingOperations>` * 2023-09-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildpackBindingOperations>` * 2023-11-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildpackBindingOperations>` * 2023-12-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_12_01.operations.BuildpackBindingOperations>` * 2024-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildpackBindingOperations>` * 2024-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.BuildpackBindingOperations>` """ api_version = self._get_api_version('buildpack_binding') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import BuildpackBindingOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import BuildpackBindingOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import BuildpackBindingOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'buildpack_binding'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def certificates(self): """Instance depends on the API version: * 2020-07-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_07_01.operations.CertificatesOperations>` * 2020-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.CertificatesOperations>` * 2021-06-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.CertificatesOperations>` * 2021-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.CertificatesOperations>` * 2022-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.CertificatesOperations>` * 2022-03-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.CertificatesOperations>` * 2022-04-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_04_01.operations.CertificatesOperations>` * 2022-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.CertificatesOperations>` * 2022-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.CertificatesOperations>` * 2022-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.CertificatesOperations>` * 2022-12-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_12_01.operations.CertificatesOperations>` * 2023-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.CertificatesOperations>` * 2023-03-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.CertificatesOperations>` * 2023-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.CertificatesOperations>` * 2023-07-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.CertificatesOperations>` * 2023-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.CertificatesOperations>` * 2023-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.CertificatesOperations>` * 2023-12-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_12_01.operations.CertificatesOperations>` * 2024-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.CertificatesOperations>` * 2024-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.CertificatesOperations>` """ api_version = self._get_api_version('certificates') if api_version == '2020-07-01': from .v2020_07_01.operations import CertificatesOperations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import CertificatesOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import CertificatesOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import CertificatesOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import CertificatesOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import CertificatesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'certificates'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def config_servers(self): """Instance depends on the API version: * 2020-07-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_07_01.operations.ConfigServersOperations>` * 2020-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.ConfigServersOperations>` * 2021-06-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.ConfigServersOperations>` * 2021-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.ConfigServersOperations>` * 2022-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ConfigServersOperations>` * 2022-03-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ConfigServersOperations>` * 2022-04-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_04_01.operations.ConfigServersOperations>` * 2022-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ConfigServersOperations>` * 2022-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ConfigServersOperations>` * 2022-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ConfigServersOperations>` * 2022-12-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_12_01.operations.ConfigServersOperations>` * 2023-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ConfigServersOperations>` * 2023-03-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ConfigServersOperations>` * 2023-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ConfigServersOperations>` * 2023-07-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ConfigServersOperations>` * 2023-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ConfigServersOperations>` * 2023-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ConfigServersOperations>` * 2023-12-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_12_01.operations.ConfigServersOperations>` * 2024-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ConfigServersOperations>` * 2024-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ConfigServersOperations>` """ api_version = self._get_api_version('config_servers') if api_version == '2020-07-01': from .v2020_07_01.operations import ConfigServersOperations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import ConfigServersOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import ConfigServersOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import ConfigServersOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import ConfigServersOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import ConfigServersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'config_servers'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def configuration_services(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ConfigurationServicesOperations>` * 2022-03-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ConfigurationServicesOperations>` * 2022-04-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_04_01.operations.ConfigurationServicesOperations>` * 2022-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ConfigurationServicesOperations>` * 2022-09-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ConfigurationServicesOperations>` * 2022-11-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ConfigurationServicesOperations>` * 2022-12-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_12_01.operations.ConfigurationServicesOperations>` * 2023-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ConfigurationServicesOperations>` * 2023-03-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ConfigurationServicesOperations>` * 2023-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ConfigurationServicesOperations>` * 2023-07-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ConfigurationServicesOperations>` * 2023-09-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ConfigurationServicesOperations>` * 2023-11-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ConfigurationServicesOperations>` * 2023-12-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_12_01.operations.ConfigurationServicesOperations>` * 2024-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ConfigurationServicesOperations>` * 2024-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ConfigurationServicesOperations>` """ api_version = self._get_api_version('configuration_services') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import ConfigurationServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'configuration_services'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def container_registries(self): """Instance depends on the API version: * 2023-03-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ContainerRegistriesOperations>` * 2023-05-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ContainerRegistriesOperations>` * 2023-07-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ContainerRegistriesOperations>` * 2023-09-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ContainerRegistriesOperations>` * 2023-11-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ContainerRegistriesOperations>` * 2023-12-01: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_12_01.operations.ContainerRegistriesOperations>` * 2024-01-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ContainerRegistriesOperations>` * 2024-05-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ContainerRegistriesOperations>` """ api_version = self._get_api_version('container_registries') if api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import ContainerRegistriesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'container_registries'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def custom_domains(self): """Instance depends on the API version: * 2020-07-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_07_01.operations.CustomDomainsOperations>` * 2020-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.CustomDomainsOperations>` * 2021-06-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.CustomDomainsOperations>` * 2021-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.CustomDomainsOperations>` * 2022-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.CustomDomainsOperations>` * 2022-03-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.CustomDomainsOperations>` * 2022-04-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_04_01.operations.CustomDomainsOperations>` * 2022-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.CustomDomainsOperations>` * 2022-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.CustomDomainsOperations>` * 2022-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.CustomDomainsOperations>` * 2022-12-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.operations.CustomDomainsOperations>` * 2023-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.CustomDomainsOperations>` * 2023-03-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.CustomDomainsOperations>` * 2023-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.CustomDomainsOperations>` * 2023-07-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.CustomDomainsOperations>` * 2023-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.CustomDomainsOperations>` * 2023-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.CustomDomainsOperations>` * 2023-12-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.operations.CustomDomainsOperations>` * 2024-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.CustomDomainsOperations>` * 2024-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.CustomDomainsOperations>` """ api_version = self._get_api_version('custom_domains') if api_version == '2020-07-01': from .v2020_07_01.operations import CustomDomainsOperations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import CustomDomainsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import CustomDomainsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import CustomDomainsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'custom_domains'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def customized_accelerators(self): """Instance depends on the API version: * 2022-11-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-01-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-03-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-05-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-07-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-09-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-11-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-12-01: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.operations.CustomizedAcceleratorsOperations>` * 2024-01-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.CustomizedAcceleratorsOperations>` * 2024-05-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.CustomizedAcceleratorsOperations>` """ api_version = self._get_api_version('customized_accelerators') if api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import CustomizedAcceleratorsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'customized_accelerators'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def deployments(self): """Instance depends on the API version: * 2020-07-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_07_01.operations.DeploymentsOperations>` * 2020-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.DeploymentsOperations>` * 2021-06-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.DeploymentsOperations>` * 2021-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.DeploymentsOperations>` * 2022-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.DeploymentsOperations>` * 2022-03-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.DeploymentsOperations>` * 2022-04-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_04_01.operations.DeploymentsOperations>` * 2022-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.DeploymentsOperations>` * 2022-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.DeploymentsOperations>` * 2022-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.DeploymentsOperations>` * 2022-12-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_12_01.operations.DeploymentsOperations>` * 2023-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.DeploymentsOperations>` * 2023-03-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.DeploymentsOperations>` * 2023-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.DeploymentsOperations>` * 2023-07-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.DeploymentsOperations>` * 2023-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.DeploymentsOperations>` * 2023-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.DeploymentsOperations>` * 2023-12-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_12_01.operations.DeploymentsOperations>` * 2024-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.DeploymentsOperations>` * 2024-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.DeploymentsOperations>` """ api_version = self._get_api_version('deployments') if api_version == '2020-07-01': from .v2020_07_01.operations import DeploymentsOperations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import DeploymentsOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import DeploymentsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import DeploymentsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import DeploymentsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import DeploymentsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'deployments'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def dev_tool_portals(self): """Instance depends on the API version: * 2022-11-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.DevToolPortalsOperations>` * 2023-01-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.DevToolPortalsOperations>` * 2023-03-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.DevToolPortalsOperations>` * 2023-05-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.DevToolPortalsOperations>` * 2023-07-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.DevToolPortalsOperations>` * 2023-09-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.DevToolPortalsOperations>` * 2023-11-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.DevToolPortalsOperations>` * 2023-12-01: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_12_01.operations.DevToolPortalsOperations>` * 2024-01-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.DevToolPortalsOperations>` * 2024-05-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.DevToolPortalsOperations>` """ api_version = self._get_api_version('dev_tool_portals') if api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import DevToolPortalsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import DevToolPortalsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import DevToolPortalsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'dev_tool_portals'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def eureka_servers(self): """Instance depends on the API version: * 2023-05-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.EurekaServersOperations>` * 2023-07-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.EurekaServersOperations>` * 2023-09-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.EurekaServersOperations>` * 2023-11-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.EurekaServersOperations>` * 2024-01-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.EurekaServersOperations>` * 2024-05-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.EurekaServersOperations>` """ api_version = self._get_api_version('eureka_servers') if api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import EurekaServersOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import EurekaServersOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import EurekaServersOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import EurekaServersOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import EurekaServersOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import EurekaServersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'eureka_servers'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def gateway_custom_domains(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.GatewayCustomDomainsOperations>` * 2022-03-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.GatewayCustomDomainsOperations>` * 2022-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.GatewayCustomDomainsOperations>` * 2022-09-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.GatewayCustomDomainsOperations>` * 2022-11-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.GatewayCustomDomainsOperations>` * 2022-12-01: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.operations.GatewayCustomDomainsOperations>` * 2023-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-03-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-07-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-09-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-11-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-12-01: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.operations.GatewayCustomDomainsOperations>` * 2024-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.GatewayCustomDomainsOperations>` * 2024-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.GatewayCustomDomainsOperations>` """ api_version = self._get_api_version('gateway_custom_domains') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import GatewayCustomDomainsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'gateway_custom_domains'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def gateway_route_configs(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.GatewayRouteConfigsOperations>` * 2022-03-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.GatewayRouteConfigsOperations>` * 2022-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.GatewayRouteConfigsOperations>` * 2022-09-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.GatewayRouteConfigsOperations>` * 2022-11-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.GatewayRouteConfigsOperations>` * 2022-12-01: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_12_01.operations.GatewayRouteConfigsOperations>` * 2023-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-03-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-07-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-09-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-11-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-12-01: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_12_01.operations.GatewayRouteConfigsOperations>` * 2024-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.GatewayRouteConfigsOperations>` * 2024-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.GatewayRouteConfigsOperations>` """ api_version = self._get_api_version('gateway_route_configs') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import GatewayRouteConfigsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'gateway_route_configs'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def gateways(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.GatewaysOperations>` * 2022-03-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.GatewaysOperations>` * 2022-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.GatewaysOperations>` * 2022-09-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.GatewaysOperations>` * 2022-11-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.GatewaysOperations>` * 2022-12-01: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_12_01.operations.GatewaysOperations>` * 2023-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.GatewaysOperations>` * 2023-03-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.GatewaysOperations>` * 2023-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.GatewaysOperations>` * 2023-07-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.GatewaysOperations>` * 2023-09-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.GatewaysOperations>` * 2023-11-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.GatewaysOperations>` * 2023-12-01: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_12_01.operations.GatewaysOperations>` * 2024-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.GatewaysOperations>` * 2024-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.GatewaysOperations>` """ api_version = self._get_api_version('gateways') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import GatewaysOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import GatewaysOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import GatewaysOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import GatewaysOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'gateways'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def job(self): """Instance depends on the API version: * 2024-05-01-preview: :class:`JobOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.JobOperations>` """ api_version = self._get_api_version('job') if api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import JobOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'job'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def job_execution(self): """Instance depends on the API version: * 2024-05-01-preview: :class:`JobExecutionOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.JobExecutionOperations>` """ api_version = self._get_api_version('job_execution') if api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import JobExecutionOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'job_execution'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def job_executions(self): """Instance depends on the API version: * 2024-05-01-preview: :class:`JobExecutionsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.JobExecutionsOperations>` """ api_version = self._get_api_version('job_executions') if api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import JobExecutionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'job_executions'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def jobs(self): """Instance depends on the API version: * 2024-05-01-preview: :class:`JobsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.JobsOperations>` """ api_version = self._get_api_version('jobs') if api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import JobsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'jobs'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def monitoring_settings(self): """Instance depends on the API version: * 2020-07-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_07_01.operations.MonitoringSettingsOperations>` * 2020-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.MonitoringSettingsOperations>` * 2021-06-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.MonitoringSettingsOperations>` * 2021-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.MonitoringSettingsOperations>` * 2022-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.MonitoringSettingsOperations>` * 2022-03-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.MonitoringSettingsOperations>` * 2022-04-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_04_01.operations.MonitoringSettingsOperations>` * 2022-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.MonitoringSettingsOperations>` * 2022-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.MonitoringSettingsOperations>` * 2022-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.MonitoringSettingsOperations>` * 2022-12-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_12_01.operations.MonitoringSettingsOperations>` * 2023-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.MonitoringSettingsOperations>` * 2023-03-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.MonitoringSettingsOperations>` * 2023-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.MonitoringSettingsOperations>` * 2023-07-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.MonitoringSettingsOperations>` * 2023-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.MonitoringSettingsOperations>` * 2023-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.MonitoringSettingsOperations>` * 2023-12-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_12_01.operations.MonitoringSettingsOperations>` * 2024-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.MonitoringSettingsOperations>` * 2024-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.MonitoringSettingsOperations>` """ api_version = self._get_api_version('monitoring_settings') if api_version == '2020-07-01': from .v2020_07_01.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import MonitoringSettingsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'monitoring_settings'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def operations(self): """Instance depends on the API version: * 2020-07-01: :class:`Operations<azure.mgmt.appplatform.v2020_07_01.operations.Operations>` * 2020-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2020_11_01_preview.operations.Operations>` * 2021-06-01-preview: :class:`Operations<azure.mgmt.appplatform.v2021_06_01_preview.operations.Operations>` * 2021-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2021_09_01_preview.operations.Operations>` * 2022-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_01_01_preview.operations.Operations>` * 2022-03-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_03_01_preview.operations.Operations>` * 2022-04-01: :class:`Operations<azure.mgmt.appplatform.v2022_04_01.operations.Operations>` * 2022-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_05_01_preview.operations.Operations>` * 2022-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_09_01_preview.operations.Operations>` * 2022-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_11_01_preview.operations.Operations>` * 2022-12-01: :class:`Operations<azure.mgmt.appplatform.v2022_12_01.operations.Operations>` * 2023-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_01_01_preview.operations.Operations>` * 2023-03-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_03_01_preview.operations.Operations>` * 2023-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_05_01_preview.operations.Operations>` * 2023-07-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_07_01_preview.operations.Operations>` * 2023-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_09_01_preview.operations.Operations>` * 2023-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_11_01_preview.operations.Operations>` * 2023-12-01: :class:`Operations<azure.mgmt.appplatform.v2023_12_01.operations.Operations>` * 2024-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2024_01_01_preview.operations.Operations>` * 2024-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2024_05_01_preview.operations.Operations>` """ api_version = self._get_api_version('operations') if api_version == '2020-07-01': from .v2020_07_01.operations import Operations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import Operations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import Operations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import Operations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import Operations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import Operations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import Operations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import Operations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import Operations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import Operations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import Operations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import Operations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import Operations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import Operations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import Operations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import Operations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import Operations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import Operations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import Operations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import Operations as OperationClass else: raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def predefined_accelerators(self): """Instance depends on the API version: * 2022-11-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-01-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-03-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-05-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-07-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-09-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-11-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-12-01: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.operations.PredefinedAcceleratorsOperations>` * 2024-01-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.PredefinedAcceleratorsOperations>` * 2024-05-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.PredefinedAcceleratorsOperations>` """ api_version = self._get_api_version('predefined_accelerators') if api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import PredefinedAcceleratorsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'predefined_accelerators'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def runtime_versions(self): """Instance depends on the API version: * 2020-07-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_07_01.operations.RuntimeVersionsOperations>` * 2020-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.RuntimeVersionsOperations>` * 2021-06-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.RuntimeVersionsOperations>` * 2021-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.RuntimeVersionsOperations>` * 2022-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.RuntimeVersionsOperations>` * 2022-03-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.RuntimeVersionsOperations>` * 2022-04-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_04_01.operations.RuntimeVersionsOperations>` * 2022-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.RuntimeVersionsOperations>` * 2022-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.RuntimeVersionsOperations>` * 2022-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.RuntimeVersionsOperations>` * 2022-12-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_12_01.operations.RuntimeVersionsOperations>` * 2023-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.RuntimeVersionsOperations>` * 2023-03-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.RuntimeVersionsOperations>` * 2023-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.RuntimeVersionsOperations>` * 2023-07-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.RuntimeVersionsOperations>` * 2023-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.RuntimeVersionsOperations>` * 2023-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.RuntimeVersionsOperations>` * 2023-12-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_12_01.operations.RuntimeVersionsOperations>` * 2024-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.RuntimeVersionsOperations>` * 2024-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.RuntimeVersionsOperations>` """ api_version = self._get_api_version('runtime_versions') if api_version == '2020-07-01': from .v2020_07_01.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import RuntimeVersionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'runtime_versions'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def service_registries(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ServiceRegistriesOperations>` * 2022-03-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ServiceRegistriesOperations>` * 2022-04-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_04_01.operations.ServiceRegistriesOperations>` * 2022-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ServiceRegistriesOperations>` * 2022-09-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ServiceRegistriesOperations>` * 2022-11-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ServiceRegistriesOperations>` * 2022-12-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_12_01.operations.ServiceRegistriesOperations>` * 2023-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ServiceRegistriesOperations>` * 2023-03-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ServiceRegistriesOperations>` * 2023-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ServiceRegistriesOperations>` * 2023-07-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ServiceRegistriesOperations>` * 2023-09-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ServiceRegistriesOperations>` * 2023-11-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ServiceRegistriesOperations>` * 2023-12-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_12_01.operations.ServiceRegistriesOperations>` * 2024-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ServiceRegistriesOperations>` * 2024-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ServiceRegistriesOperations>` """ api_version = self._get_api_version('service_registries') if api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import ServiceRegistriesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'service_registries'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def services(self): """Instance depends on the API version: * 2020-07-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_07_01.operations.ServicesOperations>` * 2020-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.ServicesOperations>` * 2021-06-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.ServicesOperations>` * 2021-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.ServicesOperations>` * 2022-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ServicesOperations>` * 2022-03-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ServicesOperations>` * 2022-04-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_04_01.operations.ServicesOperations>` * 2022-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ServicesOperations>` * 2022-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ServicesOperations>` * 2022-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ServicesOperations>` * 2022-12-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_12_01.operations.ServicesOperations>` * 2023-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ServicesOperations>` * 2023-03-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ServicesOperations>` * 2023-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ServicesOperations>` * 2023-07-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ServicesOperations>` * 2023-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ServicesOperations>` * 2023-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ServicesOperations>` * 2023-12-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_12_01.operations.ServicesOperations>` * 2024-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ServicesOperations>` * 2024-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ServicesOperations>` """ api_version = self._get_api_version('services') if api_version == '2020-07-01': from .v2020_07_01.operations import ServicesOperations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import ServicesOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import ServicesOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import ServicesOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import ServicesOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import ServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'services'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def skus(self): """Instance depends on the API version: * 2020-07-01: :class:`SkusOperations<azure.mgmt.appplatform.v2020_07_01.operations.SkusOperations>` * 2020-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.SkusOperations>` * 2021-06-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.SkusOperations>` * 2021-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.SkusOperations>` * 2022-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.SkusOperations>` * 2022-03-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.SkusOperations>` * 2022-04-01: :class:`SkusOperations<azure.mgmt.appplatform.v2022_04_01.operations.SkusOperations>` * 2022-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.SkusOperations>` * 2022-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.SkusOperations>` * 2022-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.SkusOperations>` * 2022-12-01: :class:`SkusOperations<azure.mgmt.appplatform.v2022_12_01.operations.SkusOperations>` * 2023-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.SkusOperations>` * 2023-03-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.SkusOperations>` * 2023-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.SkusOperations>` * 2023-07-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.SkusOperations>` * 2023-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.SkusOperations>` * 2023-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.SkusOperations>` * 2023-12-01: :class:`SkusOperations<azure.mgmt.appplatform.v2023_12_01.operations.SkusOperations>` * 2024-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.SkusOperations>` * 2024-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.SkusOperations>` """ api_version = self._get_api_version('skus') if api_version == '2020-07-01': from .v2020_07_01.operations import SkusOperations as OperationClass elif api_version == '2020-11-01-preview': from .v2020_11_01_preview.operations import SkusOperations as OperationClass elif api_version == '2021-06-01-preview': from .v2021_06_01_preview.operations import SkusOperations as OperationClass elif api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import SkusOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import SkusOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import SkusOperations as OperationClass elif api_version == '2022-04-01': from .v2022_04_01.operations import SkusOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import SkusOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import SkusOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import SkusOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import SkusOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import SkusOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import SkusOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import SkusOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import SkusOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import SkusOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import SkusOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import SkusOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import SkusOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import SkusOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'skus'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def storages(self): """Instance depends on the API version: * 2021-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.StoragesOperations>` * 2022-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.StoragesOperations>` * 2022-03-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.StoragesOperations>` * 2022-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.StoragesOperations>` * 2022-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.StoragesOperations>` * 2022-11-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.StoragesOperations>` * 2022-12-01: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_12_01.operations.StoragesOperations>` * 2023-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.StoragesOperations>` * 2023-03-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.StoragesOperations>` * 2023-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.StoragesOperations>` * 2023-07-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.StoragesOperations>` * 2023-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.StoragesOperations>` * 2023-11-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.StoragesOperations>` * 2023-12-01: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_12_01.operations.StoragesOperations>` * 2024-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.StoragesOperations>` * 2024-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.StoragesOperations>` """ api_version = self._get_api_version('storages') if api_version == '2021-09-01-preview': from .v2021_09_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2022-01-01-preview': from .v2022_01_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2022-03-01-preview': from .v2022_03_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2022-05-01-preview': from .v2022_05_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2022-09-01-preview': from .v2022_09_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2022-11-01-preview': from .v2022_11_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2022-12-01': from .v2022_12_01.operations import StoragesOperations as OperationClass elif api_version == '2023-01-01-preview': from .v2023_01_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2023-03-01-preview': from .v2023_03_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2023-05-01-preview': from .v2023_05_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2023-07-01-preview': from .v2023_07_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2023-09-01-preview': from .v2023_09_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2023-11-01-preview': from .v2023_11_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2023-12-01': from .v2023_12_01.operations import StoragesOperations as OperationClass elif api_version == '2024-01-01-preview': from .v2024_01_01_preview.operations import StoragesOperations as OperationClass elif api_version == '2024-05-01-preview': from .v2024_05_01_preview.operations import StoragesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'storages'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) def close(self): self._client.close() def __enter__(self): self._client.__enter__() return self def __exit__(self, *exc_details): self._client.__exit__(*exc_details)
class AppPlatformManagementClient(MultiApiClientMixin, _SDKClient): '''REST API for Azure Spring Apps. This ready contains multiple API versions, to help you deal with all of the Azure clouds (Azure Stack, Azure Government, Azure China, etc.). By default, it uses the latest API version available on public Azure. For production, you should stick to a particular api-version and/or profile. The profile sets a mapping between an operation group and its API version. The api-version parameter sets the default API version if the operation group is not described in the profile. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param api_version: API version to use if no profile is provided, or if missing in profile. :type api_version: str :param base_url: Service URL :type base_url: str :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. ''' def __init__( self, credential: "TokenCredential", subscription_id: str, api_version: Optional[str]=None, base_url: str = "https://management.azure.com", profile: KnownProfiles=KnownProfiles.default, **kwargs: Any ): pass @classmethod def _models_dict(cls, api_version): pass @classmethod def models(cls, api_version=DEFAULT_API_VERSION): '''Module depends on the API version: * 2020-07-01: :mod:`v2020_07_01.models<azure.mgmt.appplatform.v2020_07_01.models>` * 2020-11-01-preview: :mod:`v2020_11_01_preview.models<azure.mgmt.appplatform.v2020_11_01_preview.models>` * 2021-06-01-preview: :mod:`v2021_06_01_preview.models<azure.mgmt.appplatform.v2021_06_01_preview.models>` * 2021-09-01-preview: :mod:`v2021_09_01_preview.models<azure.mgmt.appplatform.v2021_09_01_preview.models>` * 2022-01-01-preview: :mod:`v2022_01_01_preview.models<azure.mgmt.appplatform.v2022_01_01_preview.models>` * 2022-03-01-preview: :mod:`v2022_03_01_preview.models<azure.mgmt.appplatform.v2022_03_01_preview.models>` * 2022-04-01: :mod:`v2022_04_01.models<azure.mgmt.appplatform.v2022_04_01.models>` * 2022-05-01-preview: :mod:`v2022_05_01_preview.models<azure.mgmt.appplatform.v2022_05_01_preview.models>` * 2022-09-01-preview: :mod:`v2022_09_01_preview.models<azure.mgmt.appplatform.v2022_09_01_preview.models>` * 2022-11-01-preview: :mod:`v2022_11_01_preview.models<azure.mgmt.appplatform.v2022_11_01_preview.models>` * 2022-12-01: :mod:`v2022_12_01.models<azure.mgmt.appplatform.v2022_12_01.models>` * 2023-01-01-preview: :mod:`v2023_01_01_preview.models<azure.mgmt.appplatform.v2023_01_01_preview.models>` * 2023-03-01-preview: :mod:`v2023_03_01_preview.models<azure.mgmt.appplatform.v2023_03_01_preview.models>` * 2023-05-01-preview: :mod:`v2023_05_01_preview.models<azure.mgmt.appplatform.v2023_05_01_preview.models>` * 2023-07-01-preview: :mod:`v2023_07_01_preview.models<azure.mgmt.appplatform.v2023_07_01_preview.models>` * 2023-09-01-preview: :mod:`v2023_09_01_preview.models<azure.mgmt.appplatform.v2023_09_01_preview.models>` * 2023-11-01-preview: :mod:`v2023_11_01_preview.models<azure.mgmt.appplatform.v2023_11_01_preview.models>` * 2023-12-01: :mod:`v2023_12_01.models<azure.mgmt.appplatform.v2023_12_01.models>` * 2024-01-01-preview: :mod:`v2024_01_01_preview.models<azure.mgmt.appplatform.v2024_01_01_preview.models>` * 2024-05-01-preview: :mod:`v2024_05_01_preview.models<azure.mgmt.appplatform.v2024_05_01_preview.models>` ''' pass @property def api_portal_custom_domains(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2022-03-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2022-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2022-09-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2022-11-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2022-12-01: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.operations.ApiPortalCustomDomainsOperations>` * 2023-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-03-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-07-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-09-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-11-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2023-12-01: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.operations.ApiPortalCustomDomainsOperations>` * 2024-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ApiPortalCustomDomainsOperations>` * 2024-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ApiPortalCustomDomainsOperations>` ''' pass @property def api_portals(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ApiPortalsOperations>` * 2022-03-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ApiPortalsOperations>` * 2022-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ApiPortalsOperations>` * 2022-09-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ApiPortalsOperations>` * 2022-11-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ApiPortalsOperations>` * 2022-12-01: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_12_01.operations.ApiPortalsOperations>` * 2023-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ApiPortalsOperations>` * 2023-03-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ApiPortalsOperations>` * 2023-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ApiPortalsOperations>` * 2023-07-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ApiPortalsOperations>` * 2023-09-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ApiPortalsOperations>` * 2023-11-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ApiPortalsOperations>` * 2023-12-01: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_12_01.operations.ApiPortalsOperations>` * 2024-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ApiPortalsOperations>` * 2024-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ApiPortalsOperations>` ''' pass @property def apms(self): '''Instance depends on the API version: * 2023-05-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ApmsOperations>` * 2023-07-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ApmsOperations>` * 2023-09-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ApmsOperations>` * 2023-11-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ApmsOperations>` * 2023-12-01: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_12_01.operations.ApmsOperations>` * 2024-01-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ApmsOperations>` * 2024-05-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ApmsOperations>` ''' pass @property def application_accelerators(self): '''Instance depends on the API version: * 2022-11-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-01-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-03-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-05-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-07-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-09-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-11-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ApplicationAcceleratorsOperations>` * 2023-12-01: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.operations.ApplicationAcceleratorsOperations>` * 2024-01-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ApplicationAcceleratorsOperations>` * 2024-05-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ApplicationAcceleratorsOperations>` ''' pass @property def application_live_views(self): '''Instance depends on the API version: * 2022-11-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-01-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-03-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-05-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-07-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-09-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-11-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ApplicationLiveViewsOperations>` * 2023-12-01: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_12_01.operations.ApplicationLiveViewsOperations>` * 2024-01-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ApplicationLiveViewsOperations>` * 2024-05-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ApplicationLiveViewsOperations>` ''' pass @property def apps(self): '''Instance depends on the API version: * 2020-07-01: :class:`AppsOperations<azure.mgmt.appplatform.v2020_07_01.operations.AppsOperations>` * 2020-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.AppsOperations>` * 2021-06-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.AppsOperations>` * 2021-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.AppsOperations>` * 2022-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.AppsOperations>` * 2022-03-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.AppsOperations>` * 2022-04-01: :class:`AppsOperations<azure.mgmt.appplatform.v2022_04_01.operations.AppsOperations>` * 2022-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.AppsOperations>` * 2022-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.AppsOperations>` * 2022-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.AppsOperations>` * 2022-12-01: :class:`AppsOperations<azure.mgmt.appplatform.v2022_12_01.operations.AppsOperations>` * 2023-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.AppsOperations>` * 2023-03-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.AppsOperations>` * 2023-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.AppsOperations>` * 2023-07-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.AppsOperations>` * 2023-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.AppsOperations>` * 2023-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.AppsOperations>` * 2023-12-01: :class:`AppsOperations<azure.mgmt.appplatform.v2023_12_01.operations.AppsOperations>` * 2024-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.AppsOperations>` * 2024-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.AppsOperations>` ''' pass @property def bindings(self): '''Instance depends on the API version: * 2020-07-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_07_01.operations.BindingsOperations>` * 2020-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.BindingsOperations>` * 2021-06-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.BindingsOperations>` * 2021-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.BindingsOperations>` * 2022-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.BindingsOperations>` * 2022-03-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.BindingsOperations>` * 2022-04-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_04_01.operations.BindingsOperations>` * 2022-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.BindingsOperations>` * 2022-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.BindingsOperations>` * 2022-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.BindingsOperations>` * 2022-12-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_12_01.operations.BindingsOperations>` * 2023-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.BindingsOperations>` * 2023-03-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.BindingsOperations>` * 2023-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.BindingsOperations>` * 2023-07-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.BindingsOperations>` * 2023-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.BindingsOperations>` * 2023-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.BindingsOperations>` * 2023-12-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_12_01.operations.BindingsOperations>` * 2024-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.BindingsOperations>` * 2024-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.BindingsOperations>` ''' pass @property def build_service(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildServiceOperations>` * 2022-03-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildServiceOperations>` * 2022-04-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_04_01.operations.BuildServiceOperations>` * 2022-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildServiceOperations>` * 2022-09-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildServiceOperations>` * 2022-11-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildServiceOperations>` * 2022-12-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_12_01.operations.BuildServiceOperations>` * 2023-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildServiceOperations>` * 2023-03-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildServiceOperations>` * 2023-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildServiceOperations>` * 2023-07-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildServiceOperations>` * 2023-09-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildServiceOperations>` * 2023-11-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildServiceOperations>` * 2023-12-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceOperations>` * 2024-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildServiceOperations>` * 2024-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.BuildServiceOperations>` ''' pass @property def build_service_agent_pool(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildServiceAgentPoolOperations>` * 2022-03-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildServiceAgentPoolOperations>` * 2022-04-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_04_01.operations.BuildServiceAgentPoolOperations>` * 2022-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildServiceAgentPoolOperations>` * 2022-09-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildServiceAgentPoolOperations>` * 2022-11-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildServiceAgentPoolOperations>` * 2022-12-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_12_01.operations.BuildServiceAgentPoolOperations>` * 2023-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-03-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-07-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-09-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-11-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildServiceAgentPoolOperations>` * 2023-12-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceAgentPoolOperations>` * 2024-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildServiceAgentPoolOperations>` * 2024-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.BuildServiceAgentPoolOperations>` ''' pass @property def build_service_builder(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildServiceBuilderOperations>` * 2022-03-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildServiceBuilderOperations>` * 2022-04-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_04_01.operations.BuildServiceBuilderOperations>` * 2022-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildServiceBuilderOperations>` * 2022-09-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildServiceBuilderOperations>` * 2022-11-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildServiceBuilderOperations>` * 2022-12-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_12_01.operations.BuildServiceBuilderOperations>` * 2023-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildServiceBuilderOperations>` * 2023-03-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildServiceBuilderOperations>` * 2023-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildServiceBuilderOperations>` * 2023-07-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildServiceBuilderOperations>` * 2023-09-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildServiceBuilderOperations>` * 2023-11-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildServiceBuilderOperations>` * 2023-12-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceBuilderOperations>` * 2024-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildServiceBuilderOperations>` * 2024-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.BuildServiceBuilderOperations>` ''' pass @property def buildpack_binding(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildpackBindingOperations>` * 2022-03-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildpackBindingOperations>` * 2022-04-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_04_01.operations.BuildpackBindingOperations>` * 2022-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildpackBindingOperations>` * 2022-09-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildpackBindingOperations>` * 2022-11-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildpackBindingOperations>` * 2022-12-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_12_01.operations.BuildpackBindingOperations>` * 2023-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildpackBindingOperations>` * 2023-03-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildpackBindingOperations>` * 2023-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildpackBindingOperations>` * 2023-07-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildpackBindingOperations>` * 2023-09-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildpackBindingOperations>` * 2023-11-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildpackBindingOperations>` * 2023-12-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_12_01.operations.BuildpackBindingOperations>` * 2024-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildpackBindingOperations>` * 2024-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.BuildpackBindingOperations>` ''' pass @property def certificates(self): '''Instance depends on the API version: * 2020-07-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_07_01.operations.CertificatesOperations>` * 2020-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.CertificatesOperations>` * 2021-06-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.CertificatesOperations>` * 2021-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.CertificatesOperations>` * 2022-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.CertificatesOperations>` * 2022-03-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.CertificatesOperations>` * 2022-04-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_04_01.operations.CertificatesOperations>` * 2022-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.CertificatesOperations>` * 2022-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.CertificatesOperations>` * 2022-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.CertificatesOperations>` * 2022-12-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_12_01.operations.CertificatesOperations>` * 2023-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.CertificatesOperations>` * 2023-03-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.CertificatesOperations>` * 2023-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.CertificatesOperations>` * 2023-07-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.CertificatesOperations>` * 2023-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.CertificatesOperations>` * 2023-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.CertificatesOperations>` * 2023-12-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_12_01.operations.CertificatesOperations>` * 2024-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.CertificatesOperations>` * 2024-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.CertificatesOperations>` ''' pass @property def config_servers(self): '''Instance depends on the API version: * 2020-07-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_07_01.operations.ConfigServersOperations>` * 2020-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.ConfigServersOperations>` * 2021-06-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.ConfigServersOperations>` * 2021-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.ConfigServersOperations>` * 2022-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ConfigServersOperations>` * 2022-03-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ConfigServersOperations>` * 2022-04-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_04_01.operations.ConfigServersOperations>` * 2022-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ConfigServersOperations>` * 2022-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ConfigServersOperations>` * 2022-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ConfigServersOperations>` * 2022-12-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_12_01.operations.ConfigServersOperations>` * 2023-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ConfigServersOperations>` * 2023-03-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ConfigServersOperations>` * 2023-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ConfigServersOperations>` * 2023-07-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ConfigServersOperations>` * 2023-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ConfigServersOperations>` * 2023-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ConfigServersOperations>` * 2023-12-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_12_01.operations.ConfigServersOperations>` * 2024-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ConfigServersOperations>` * 2024-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ConfigServersOperations>` ''' pass @property def configuration_services(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ConfigurationServicesOperations>` * 2022-03-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ConfigurationServicesOperations>` * 2022-04-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_04_01.operations.ConfigurationServicesOperations>` * 2022-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ConfigurationServicesOperations>` * 2022-09-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ConfigurationServicesOperations>` * 2022-11-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ConfigurationServicesOperations>` * 2022-12-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_12_01.operations.ConfigurationServicesOperations>` * 2023-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ConfigurationServicesOperations>` * 2023-03-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ConfigurationServicesOperations>` * 2023-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ConfigurationServicesOperations>` * 2023-07-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ConfigurationServicesOperations>` * 2023-09-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ConfigurationServicesOperations>` * 2023-11-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ConfigurationServicesOperations>` * 2023-12-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_12_01.operations.ConfigurationServicesOperations>` * 2024-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ConfigurationServicesOperations>` * 2024-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ConfigurationServicesOperations>` ''' pass @property def container_registries(self): '''Instance depends on the API version: * 2023-03-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ContainerRegistriesOperations>` * 2023-05-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ContainerRegistriesOperations>` * 2023-07-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ContainerRegistriesOperations>` * 2023-09-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ContainerRegistriesOperations>` * 2023-11-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ContainerRegistriesOperations>` * 2023-12-01: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_12_01.operations.ContainerRegistriesOperations>` * 2024-01-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ContainerRegistriesOperations>` * 2024-05-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ContainerRegistriesOperations>` ''' pass @property def custom_domains(self): '''Instance depends on the API version: * 2020-07-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_07_01.operations.CustomDomainsOperations>` * 2020-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.CustomDomainsOperations>` * 2021-06-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.CustomDomainsOperations>` * 2021-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.CustomDomainsOperations>` * 2022-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.CustomDomainsOperations>` * 2022-03-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.CustomDomainsOperations>` * 2022-04-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_04_01.operations.CustomDomainsOperations>` * 2022-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.CustomDomainsOperations>` * 2022-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.CustomDomainsOperations>` * 2022-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.CustomDomainsOperations>` * 2022-12-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.operations.CustomDomainsOperations>` * 2023-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.CustomDomainsOperations>` * 2023-03-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.CustomDomainsOperations>` * 2023-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.CustomDomainsOperations>` * 2023-07-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.CustomDomainsOperations>` * 2023-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.CustomDomainsOperations>` * 2023-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.CustomDomainsOperations>` * 2023-12-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.operations.CustomDomainsOperations>` * 2024-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.CustomDomainsOperations>` * 2024-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.CustomDomainsOperations>` ''' pass @property def customized_accelerators(self): '''Instance depends on the API version: * 2022-11-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-01-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-03-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-05-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-07-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-09-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-11-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.CustomizedAcceleratorsOperations>` * 2023-12-01: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.operations.CustomizedAcceleratorsOperations>` * 2024-01-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.CustomizedAcceleratorsOperations>` * 2024-05-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.CustomizedAcceleratorsOperations>` ''' pass @property def deployments(self): '''Instance depends on the API version: * 2020-07-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_07_01.operations.DeploymentsOperations>` * 2020-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.DeploymentsOperations>` * 2021-06-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.DeploymentsOperations>` * 2021-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.DeploymentsOperations>` * 2022-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.DeploymentsOperations>` * 2022-03-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.DeploymentsOperations>` * 2022-04-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_04_01.operations.DeploymentsOperations>` * 2022-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.DeploymentsOperations>` * 2022-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.DeploymentsOperations>` * 2022-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.DeploymentsOperations>` * 2022-12-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_12_01.operations.DeploymentsOperations>` * 2023-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.DeploymentsOperations>` * 2023-03-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.DeploymentsOperations>` * 2023-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.DeploymentsOperations>` * 2023-07-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.DeploymentsOperations>` * 2023-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.DeploymentsOperations>` * 2023-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.DeploymentsOperations>` * 2023-12-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_12_01.operations.DeploymentsOperations>` * 2024-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.DeploymentsOperations>` * 2024-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.DeploymentsOperations>` ''' pass @property def dev_tool_portals(self): '''Instance depends on the API version: * 2022-11-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.DevToolPortalsOperations>` * 2023-01-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.DevToolPortalsOperations>` * 2023-03-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.DevToolPortalsOperations>` * 2023-05-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.DevToolPortalsOperations>` * 2023-07-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.DevToolPortalsOperations>` * 2023-09-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.DevToolPortalsOperations>` * 2023-11-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.DevToolPortalsOperations>` * 2023-12-01: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_12_01.operations.DevToolPortalsOperations>` * 2024-01-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.DevToolPortalsOperations>` * 2024-05-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.DevToolPortalsOperations>` ''' pass @property def eureka_servers(self): '''Instance depends on the API version: * 2023-05-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.EurekaServersOperations>` * 2023-07-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.EurekaServersOperations>` * 2023-09-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.EurekaServersOperations>` * 2023-11-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.EurekaServersOperations>` * 2024-01-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.EurekaServersOperations>` * 2024-05-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.EurekaServersOperations>` ''' pass @property def gateway_custom_domains(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.GatewayCustomDomainsOperations>` * 2022-03-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.GatewayCustomDomainsOperations>` * 2022-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.GatewayCustomDomainsOperations>` * 2022-09-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.GatewayCustomDomainsOperations>` * 2022-11-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.GatewayCustomDomainsOperations>` * 2022-12-01: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.operations.GatewayCustomDomainsOperations>` * 2023-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-03-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-07-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-09-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-11-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.GatewayCustomDomainsOperations>` * 2023-12-01: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.operations.GatewayCustomDomainsOperations>` * 2024-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.GatewayCustomDomainsOperations>` * 2024-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.GatewayCustomDomainsOperations>` ''' pass @property def gateway_route_configs(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.GatewayRouteConfigsOperations>` * 2022-03-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.GatewayRouteConfigsOperations>` * 2022-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.GatewayRouteConfigsOperations>` * 2022-09-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.GatewayRouteConfigsOperations>` * 2022-11-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.GatewayRouteConfigsOperations>` * 2022-12-01: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_12_01.operations.GatewayRouteConfigsOperations>` * 2023-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-03-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-07-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-09-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-11-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.GatewayRouteConfigsOperations>` * 2023-12-01: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_12_01.operations.GatewayRouteConfigsOperations>` * 2024-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.GatewayRouteConfigsOperations>` * 2024-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.GatewayRouteConfigsOperations>` ''' pass @property def gateways(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.GatewaysOperations>` * 2022-03-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.GatewaysOperations>` * 2022-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.GatewaysOperations>` * 2022-09-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.GatewaysOperations>` * 2022-11-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.GatewaysOperations>` * 2022-12-01: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_12_01.operations.GatewaysOperations>` * 2023-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.GatewaysOperations>` * 2023-03-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.GatewaysOperations>` * 2023-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.GatewaysOperations>` * 2023-07-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.GatewaysOperations>` * 2023-09-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.GatewaysOperations>` * 2023-11-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.GatewaysOperations>` * 2023-12-01: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_12_01.operations.GatewaysOperations>` * 2024-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.GatewaysOperations>` * 2024-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.GatewaysOperations>` ''' pass @property def job(self): '''Instance depends on the API version: * 2024-05-01-preview: :class:`JobOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.JobOperations>` ''' pass @property def job_execution(self): '''Instance depends on the API version: * 2024-05-01-preview: :class:`JobExecutionOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.JobExecutionOperations>` ''' pass @property def job_executions(self): '''Instance depends on the API version: * 2024-05-01-preview: :class:`JobExecutionsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.JobExecutionsOperations>` ''' pass @property def jobs(self): '''Instance depends on the API version: * 2024-05-01-preview: :class:`JobsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.JobsOperations>` ''' pass @property def monitoring_settings(self): '''Instance depends on the API version: * 2020-07-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_07_01.operations.MonitoringSettingsOperations>` * 2020-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.MonitoringSettingsOperations>` * 2021-06-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.MonitoringSettingsOperations>` * 2021-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.MonitoringSettingsOperations>` * 2022-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.MonitoringSettingsOperations>` * 2022-03-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.MonitoringSettingsOperations>` * 2022-04-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_04_01.operations.MonitoringSettingsOperations>` * 2022-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.MonitoringSettingsOperations>` * 2022-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.MonitoringSettingsOperations>` * 2022-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.MonitoringSettingsOperations>` * 2022-12-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_12_01.operations.MonitoringSettingsOperations>` * 2023-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.MonitoringSettingsOperations>` * 2023-03-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.MonitoringSettingsOperations>` * 2023-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.MonitoringSettingsOperations>` * 2023-07-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.MonitoringSettingsOperations>` * 2023-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.MonitoringSettingsOperations>` * 2023-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.MonitoringSettingsOperations>` * 2023-12-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_12_01.operations.MonitoringSettingsOperations>` * 2024-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.MonitoringSettingsOperations>` * 2024-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.MonitoringSettingsOperations>` ''' pass @property def operations(self): '''Instance depends on the API version: * 2020-07-01: :class:`Operations<azure.mgmt.appplatform.v2020_07_01.operations.Operations>` * 2020-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2020_11_01_preview.operations.Operations>` * 2021-06-01-preview: :class:`Operations<azure.mgmt.appplatform.v2021_06_01_preview.operations.Operations>` * 2021-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2021_09_01_preview.operations.Operations>` * 2022-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_01_01_preview.operations.Operations>` * 2022-03-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_03_01_preview.operations.Operations>` * 2022-04-01: :class:`Operations<azure.mgmt.appplatform.v2022_04_01.operations.Operations>` * 2022-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_05_01_preview.operations.Operations>` * 2022-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_09_01_preview.operations.Operations>` * 2022-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_11_01_preview.operations.Operations>` * 2022-12-01: :class:`Operations<azure.mgmt.appplatform.v2022_12_01.operations.Operations>` * 2023-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_01_01_preview.operations.Operations>` * 2023-03-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_03_01_preview.operations.Operations>` * 2023-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_05_01_preview.operations.Operations>` * 2023-07-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_07_01_preview.operations.Operations>` * 2023-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_09_01_preview.operations.Operations>` * 2023-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_11_01_preview.operations.Operations>` * 2023-12-01: :class:`Operations<azure.mgmt.appplatform.v2023_12_01.operations.Operations>` * 2024-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2024_01_01_preview.operations.Operations>` * 2024-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2024_05_01_preview.operations.Operations>` ''' pass @property def predefined_accelerators(self): '''Instance depends on the API version: * 2022-11-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-01-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-03-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-05-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-07-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-09-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-11-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.PredefinedAcceleratorsOperations>` * 2023-12-01: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.operations.PredefinedAcceleratorsOperations>` * 2024-01-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.PredefinedAcceleratorsOperations>` * 2024-05-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.PredefinedAcceleratorsOperations>` ''' pass @property def runtime_versions(self): '''Instance depends on the API version: * 2020-07-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_07_01.operations.RuntimeVersionsOperations>` * 2020-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.RuntimeVersionsOperations>` * 2021-06-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.RuntimeVersionsOperations>` * 2021-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.RuntimeVersionsOperations>` * 2022-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.RuntimeVersionsOperations>` * 2022-03-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.RuntimeVersionsOperations>` * 2022-04-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_04_01.operations.RuntimeVersionsOperations>` * 2022-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.RuntimeVersionsOperations>` * 2022-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.RuntimeVersionsOperations>` * 2022-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.RuntimeVersionsOperations>` * 2022-12-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_12_01.operations.RuntimeVersionsOperations>` * 2023-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.RuntimeVersionsOperations>` * 2023-03-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.RuntimeVersionsOperations>` * 2023-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.RuntimeVersionsOperations>` * 2023-07-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.RuntimeVersionsOperations>` * 2023-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.RuntimeVersionsOperations>` * 2023-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.RuntimeVersionsOperations>` * 2023-12-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_12_01.operations.RuntimeVersionsOperations>` * 2024-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.RuntimeVersionsOperations>` * 2024-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.RuntimeVersionsOperations>` ''' pass @property def service_registries(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ServiceRegistriesOperations>` * 2022-03-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ServiceRegistriesOperations>` * 2022-04-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_04_01.operations.ServiceRegistriesOperations>` * 2022-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ServiceRegistriesOperations>` * 2022-09-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ServiceRegistriesOperations>` * 2022-11-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ServiceRegistriesOperations>` * 2022-12-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_12_01.operations.ServiceRegistriesOperations>` * 2023-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ServiceRegistriesOperations>` * 2023-03-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ServiceRegistriesOperations>` * 2023-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ServiceRegistriesOperations>` * 2023-07-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ServiceRegistriesOperations>` * 2023-09-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ServiceRegistriesOperations>` * 2023-11-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ServiceRegistriesOperations>` * 2023-12-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_12_01.operations.ServiceRegistriesOperations>` * 2024-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ServiceRegistriesOperations>` * 2024-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ServiceRegistriesOperations>` ''' pass @property def services(self): '''Instance depends on the API version: * 2020-07-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_07_01.operations.ServicesOperations>` * 2020-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.ServicesOperations>` * 2021-06-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.ServicesOperations>` * 2021-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.ServicesOperations>` * 2022-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.ServicesOperations>` * 2022-03-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.ServicesOperations>` * 2022-04-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_04_01.operations.ServicesOperations>` * 2022-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.ServicesOperations>` * 2022-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.ServicesOperations>` * 2022-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.ServicesOperations>` * 2022-12-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_12_01.operations.ServicesOperations>` * 2023-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.ServicesOperations>` * 2023-03-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.ServicesOperations>` * 2023-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.ServicesOperations>` * 2023-07-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.ServicesOperations>` * 2023-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.ServicesOperations>` * 2023-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.ServicesOperations>` * 2023-12-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_12_01.operations.ServicesOperations>` * 2024-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.ServicesOperations>` * 2024-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.ServicesOperations>` ''' pass @property def skus(self): '''Instance depends on the API version: * 2020-07-01: :class:`SkusOperations<azure.mgmt.appplatform.v2020_07_01.operations.SkusOperations>` * 2020-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.SkusOperations>` * 2021-06-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.SkusOperations>` * 2021-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.SkusOperations>` * 2022-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.SkusOperations>` * 2022-03-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.SkusOperations>` * 2022-04-01: :class:`SkusOperations<azure.mgmt.appplatform.v2022_04_01.operations.SkusOperations>` * 2022-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.SkusOperations>` * 2022-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.SkusOperations>` * 2022-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.SkusOperations>` * 2022-12-01: :class:`SkusOperations<azure.mgmt.appplatform.v2022_12_01.operations.SkusOperations>` * 2023-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.SkusOperations>` * 2023-03-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.SkusOperations>` * 2023-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.SkusOperations>` * 2023-07-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.SkusOperations>` * 2023-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.SkusOperations>` * 2023-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.SkusOperations>` * 2023-12-01: :class:`SkusOperations<azure.mgmt.appplatform.v2023_12_01.operations.SkusOperations>` * 2024-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.SkusOperations>` * 2024-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.SkusOperations>` ''' pass @property def storages(self): '''Instance depends on the API version: * 2021-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2021_09_01_preview.operations.StoragesOperations>` * 2022-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_01_01_preview.operations.StoragesOperations>` * 2022-03-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_03_01_preview.operations.StoragesOperations>` * 2022-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_05_01_preview.operations.StoragesOperations>` * 2022-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_09_01_preview.operations.StoragesOperations>` * 2022-11-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_11_01_preview.operations.StoragesOperations>` * 2022-12-01: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_12_01.operations.StoragesOperations>` * 2023-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_01_01_preview.operations.StoragesOperations>` * 2023-03-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_03_01_preview.operations.StoragesOperations>` * 2023-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_05_01_preview.operations.StoragesOperations>` * 2023-07-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_07_01_preview.operations.StoragesOperations>` * 2023-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_09_01_preview.operations.StoragesOperations>` * 2023-11-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_11_01_preview.operations.StoragesOperations>` * 2023-12-01: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_12_01.operations.StoragesOperations>` * 2024-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2024_01_01_preview.operations.StoragesOperations>` * 2024-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2024_05_01_preview.operations.StoragesOperations>` ''' pass def close(self): pass def __enter__(self): pass def __exit__(self, *exc_details): pass
79
37
46
1
31
14
13
0.45
2
73
68
0
39
2
41
42
1,998
78
1,326
630
737
594
757
585
213
21
2
1
546
8,305
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_build_service_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._build_service_operations.BuildServiceOperations
class BuildServiceOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`build_service` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def list_build_services( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuildService"]: """List build services resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either BuildService or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuildService] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_build_services_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("BuildServiceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @distributed_trace_async async def get_build_service( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> _models.BuildService: """Get a build service resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: BuildService or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuildService :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) _request = build_get_build_service_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("BuildService", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, build_service_name: str, build_service: Union[_models.BuildService, IO[bytes]], **kwargs: Any ) -> _models.BuildService: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(build_service, (IOBase, bytes)): _content = build_service else: _json = self._serialize.body(build_service, "BuildService") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("BuildService", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("BuildService", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, build_service: _models.BuildService, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildService]: """Create a build service resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_service: Parameters for the create operation. Required. :type build_service: ~azure.mgmt.appplatform.v2023_12_01.models.BuildService :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildService or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildService] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, build_service: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildService]: """Create a build service resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_service: Parameters for the create operation. Required. :type build_service: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildService or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildService] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, build_service: Union[_models.BuildService, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.BuildService]: """Create a build service resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_service: Parameters for the create operation. Is either a BuildService type or a IO[bytes] type. Required. :type build_service: ~azure.mgmt.appplatform.v2023_12_01.models.BuildService or IO[bytes] :return: An instance of AsyncLROPoller that returns either BuildService or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildService] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, build_service=build_service, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("BuildService", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast( AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) ) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.BuildService].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.BuildService]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @distributed_trace def list_builds( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> AsyncIterable["_models.Build"]: """List KPack builds. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: An iterator like instance of either Build or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.Build] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_builds_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("BuildCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @distributed_trace_async async def get_build( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any ) -> _models.Build: """Get a KPack build. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :return: Build or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.Build :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.Build] = kwargs.pop("cls", None) _request = build_get_build_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, build_name=build_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("Build", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def create_or_update_build( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, build: _models.Build, *, content_type: str = "application/json", **kwargs: Any ) -> _models.Build: """Create or update a KPack build. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :param build: Parameters for the create or update operation. Required. :type build: ~azure.mgmt.appplatform.v2023_12_01.models.Build :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: Build or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.Build :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def create_or_update_build( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, build: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.Build: """Create or update a KPack build. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :param build: Parameters for the create or update operation. Required. :type build: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: Build or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.Build :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def create_or_update_build( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, build: Union[_models.Build, IO[bytes]], **kwargs: Any ) -> _models.Build: """Create or update a KPack build. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :param build: Parameters for the create or update operation. Is either a Build type or a IO[bytes] type. Required. :type build: ~azure.mgmt.appplatform.v2023_12_01.models.Build or IO[bytes] :return: Build or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.Build :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Build] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(build, (IOBase, bytes)): _content = build else: _json = self._serialize.body(build, "Build") _request = build_create_or_update_build_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, build_name=build_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("Build", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("Build", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _delete_build_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_build_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, build_name=build_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) if cls: return cls(pipeline_response, None, response_headers) # type: ignore @distributed_trace_async async def begin_delete_build( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """delete a KPack build. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_build_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, build_name=build_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast( AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) ) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list_build_results( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuildResult"]: """List KPack build results. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :return: An iterator like instance of either BuildResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuildResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_build_results_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, build_name=build_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("BuildResultCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @distributed_trace_async async def get_build_result( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, build_result_name: str, **kwargs: Any ) -> _models.BuildResult: """Get a KPack build result. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :param build_result_name: The name of the build result resource. Required. :type build_result_name: str :return: BuildResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuildResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) _request = build_get_build_result_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, build_name=build_name, build_result_name=build_result_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("BuildResult", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @distributed_trace_async async def get_build_result_log( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, build_result_name: str, **kwargs: Any ) -> _models.BuildResultLog: """Get a KPack build result log download URL. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :param build_result_name: The name of the build result resource. Required. :type build_result_name: str :return: BuildResultLog or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuildResultLog :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) _request = build_get_build_result_log_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, build_name=build_name, build_result_name=build_result_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("BuildResultLog", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @distributed_trace_async async def get_resource_upload_url( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> _models.ResourceUploadDefinition: """Get an resource upload URL for build service, which may be artifacts or source archive. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: ResourceUploadDefinition or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceUploadDefinition :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) _request = build_get_resource_upload_url_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @distributed_trace_async async def list_supported_buildpacks( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> _models.SupportedBuildpacksCollection: """Get all supported buildpacks. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: SupportedBuildpacksCollection or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.SupportedBuildpacksCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) _request = build_list_supported_buildpacks_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @distributed_trace_async async def get_supported_buildpack( self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any ) -> _models.SupportedBuildpackResource: """Get the supported buildpack resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param buildpack_name: The name of the buildpack resource. Required. :type buildpack_name: str :return: SupportedBuildpackResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.SupportedBuildpackResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) _request = build_get_supported_buildpack_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, buildpack_name=buildpack_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @distributed_trace_async async def list_supported_stacks( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> _models.SupportedStacksCollection: """Get all supported stacks. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: SupportedStacksCollection or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.SupportedStacksCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) _request = build_list_supported_stacks_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @distributed_trace_async async def get_supported_stack( self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any ) -> _models.SupportedStackResource: """Get the supported stack resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param stack_name: The name of the stack resource. Required. :type stack_name: str :return: SupportedStackResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.SupportedStackResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) _request = build_get_supported_stack_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, stack_name=stack_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("SupportedStackResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized
class BuildServiceOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`build_service` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace def list_build_services( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuildService"]: '''List build services resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either BuildService or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuildService] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @distributed_trace_async async def get_build_service( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> _models.BuildService: '''Get a build service resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: BuildService or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuildService :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, build_service_name: str, build_service: Union[_models.BuildService, IO[bytes]], **kwargs: Any ) -> _models.BuildService: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, build_service: _models.BuildService, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildService]: '''Create a build service resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_service: Parameters for the create operation. Required. :type build_service: ~azure.mgmt.appplatform.v2023_12_01.models.BuildService :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildService or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildService] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, build_service: _models.BuildService, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildService]: '''Create a build service resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_service: Parameters for the create operation. Required. :type build_service: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildService or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildService] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, build_service: _models.BuildService, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildService]: '''Create a build service resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_service: Parameters for the create operation. Is either a BuildService type or a IO[bytes] type. Required. :type build_service: ~azure.mgmt.appplatform.v2023_12_01.models.BuildService or IO[bytes] :return: An instance of AsyncLROPoller that returns either BuildService or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildService] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list_builds( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> AsyncIterable["_models.Build"]: '''List KPack builds. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: An iterator like instance of either Build or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.Build] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @distributed_trace_async async def get_build_service( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> _models.BuildService: '''Get a KPack build. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :return: Build or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.Build :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def create_or_update_build( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, build: _models.Build, *, content_type: str = "application/json", **kwargs: Any ) -> _models.Build: '''Create or update a KPack build. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :param build: Parameters for the create or update operation. Required. :type build: ~azure.mgmt.appplatform.v2023_12_01.models.Build :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: Build or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.Build :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def create_or_update_build( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, build: _models.Build, *, content_type: str = "application/json", **kwargs: Any ) -> _models.Build: '''Create or update a KPack build. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :param build: Parameters for the create or update operation. Required. :type build: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: Build or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.Build :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def create_or_update_build( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, build: _models.Build, *, content_type: str = "application/json", **kwargs: Any ) -> _models.Build: '''Create or update a KPack build. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :param build: Parameters for the create or update operation. Is either a Build type or a IO[bytes] type. Required. :type build: ~azure.mgmt.appplatform.v2023_12_01.models.Build or IO[bytes] :return: Build or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.Build :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _delete_build_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete_build( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''delete a KPack build. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list_build_results( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuildResult"]: '''List KPack build results. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :return: An iterator like instance of either BuildResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuildResult] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @distributed_trace_async async def get_build_result( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, build_result_name: str, **kwargs: Any ) -> _models.BuildResult: '''Get a KPack build result. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :param build_result_name: The name of the build result resource. Required. :type build_result_name: str :return: BuildResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuildResult :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def get_build_result_log( self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, build_result_name: str, **kwargs: Any ) -> _models.BuildResultLog: '''Get a KPack build result log download URL. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param build_name: The name of the build resource. Required. :type build_name: str :param build_result_name: The name of the build result resource. Required. :type build_result_name: str :return: BuildResultLog or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuildResultLog :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def get_resource_upload_url( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> _models.ResourceUploadDefinition: '''Get an resource upload URL for build service, which may be artifacts or source archive. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: ResourceUploadDefinition or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceUploadDefinition :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def list_supported_buildpacks( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> _models.SupportedBuildpacksCollection: '''Get all supported buildpacks. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: SupportedBuildpacksCollection or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.SupportedBuildpacksCollection :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def get_supported_buildpack( self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any ) -> _models.SupportedBuildpackResource: '''Get the supported buildpack resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param buildpack_name: The name of the buildpack resource. Required. :type buildpack_name: str :return: SupportedBuildpackResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.SupportedBuildpackResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def list_supported_stacks( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> _models.SupportedStacksCollection: '''Get all supported stacks. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: SupportedStacksCollection or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.SupportedStacksCollection :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def get_supported_stack( self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any ) -> _models.SupportedStackResource: '''Get the supported stack resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param stack_name: The name of the stack resource. Required. :type stack_name: str :return: SupportedStackResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.SupportedStackResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass
53
20
44
6
30
11
3
0.4
0
7
0
0
22
5
22
22
1,341
193
853
348
700
343
427
229
393
6
0
1
88
8,306
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_build_service_builder_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._build_service_builder_operations.BuildServiceBuilderOperations
class BuildServiceBuilderOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`build_service_builder` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any ) -> _models.BuilderResource: """Get a KPack builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :return: BuilderResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("BuilderResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, builder_resource: Union[_models.BuilderResource, IO[bytes]], **kwargs: Any ) -> _models.BuilderResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(builder_resource, (IOBase, bytes)): _content = builder_resource else: _json = self._serialize.body(builder_resource, "BuilderResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("BuilderResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("BuilderResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, builder_resource: _models.BuilderResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuilderResource]: """Create or update a KPack builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param builder_resource: The target builder for the create or update operation. Required. :type builder_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, builder_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuilderResource]: """Create or update a KPack builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param builder_resource: The target builder for the create or update operation. Required. :type builder_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, builder_resource: Union[_models.BuilderResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.BuilderResource]: """Create or update a KPack builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param builder_resource: The target builder for the create or update operation. Is either a BuilderResource type or a IO[bytes] type. Required. :type builder_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, builder_resource=builder_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("BuilderResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.BuilderResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.BuilderResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a KPack builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuilderResource"]: """List KPack builders result. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: An iterator like instance of either BuilderResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @distributed_trace_async async def list_deployments( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any ) -> _models.DeploymentList: """List deployments that are using the builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :return: DeploymentList or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentList :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) _request = build_list_deployments_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("DeploymentList", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized
class BuildServiceBuilderOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`build_service_builder` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any ) -> _models.BuilderResource: '''Get a KPack builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :return: BuilderResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, builder_resource: Union[_models.BuilderResource, IO[bytes]], **kwargs: Any ) -> _models.BuilderResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, builder_resource: _models.BuilderResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuilderResource]: '''Create or update a KPack builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param builder_resource: The target builder for the create or update operation. Required. :type builder_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, builder_resource: _models.BuilderResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuilderResource]: '''Create or update a KPack builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param builder_resource: The target builder for the create or update operation. Required. :type builder_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, builder_resource: _models.BuilderResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuilderResource]: '''Create or update a KPack builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param builder_resource: The target builder for the create or update operation. Is either a BuilderResource type or a IO[bytes] type. Required. :type builder_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Delete a KPack builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuilderResource"]: '''List KPack builders result. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: An iterator like instance of either BuilderResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuilderResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @distributed_trace_async async def list_deployments( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any ) -> _models.DeploymentList: '''List deployments that are using the builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :return: DeploymentList or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentList :raises ~azure.core.exceptions.HttpResponseError: ''' pass
23
8
39
4
27
10
3
0.4
0
7
0
0
10
5
10
10
558
72
362
152
293
144
180
99
164
6
0
1
44
8,307
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_build_service_agent_pool_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._build_service_agent_pool_operations.BuildServiceAgentPoolOperations
class BuildServiceAgentPoolOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`build_service_agent_pool` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def list( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: """List build service agent pool. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any ) -> _models.BuildServiceAgentPoolResource: """Get build service agent pool. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param agent_pool_name: The name of the build service agent pool resource. Required. :type agent_pool_name: str :return: BuildServiceAgentPoolResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, agent_pool_name=agent_pool_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _update_put_initial( self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], **kwargs: Any ) -> _models.BuildServiceAgentPoolResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(agent_pool_resource, (IOBase, bytes)): _content = agent_pool_resource else: _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") _request = build_update_put_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, agent_pool_name=agent_pool_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_update_put( self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, agent_pool_resource: _models.BuildServiceAgentPoolResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: """Create or update build service agent pool. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param agent_pool_name: The name of the build service agent pool resource. Required. :type agent_pool_name: str :param agent_pool_resource: Parameters for the update operation. Required. :type agent_pool_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_update_put( self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, agent_pool_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: """Create or update build service agent pool. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param agent_pool_name: The name of the build service agent pool resource. Required. :type agent_pool_name: str :param agent_pool_resource: Parameters for the update operation. Required. :type agent_pool_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_update_put( self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: """Create or update build service agent pool. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param agent_pool_name: The name of the build service agent pool resource. Required. :type agent_pool_name: str :param agent_pool_resource: Parameters for the update operation. Is either a BuildServiceAgentPoolResource type or a IO[bytes] type. Required. :type agent_pool_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._update_put_initial( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, agent_pool_name=agent_pool_name, agent_pool_resource=agent_pool_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore )
class BuildServiceAgentPoolOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`build_service_agent_pool` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace def list( self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: '''List build service agent pool. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @distributed_trace_async async def get_next(next_link=None): '''Get build service agent pool. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param agent_pool_name: The name of the build service agent pool resource. Required. :type agent_pool_name: str :return: BuildServiceAgentPoolResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _update_put_initial( self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], **kwargs: Any ) -> _models.BuildServiceAgentPoolResource: pass @overload async def begin_update_put( self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, agent_pool_resource: _models.BuildServiceAgentPoolResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: '''Create or update build service agent pool. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param agent_pool_name: The name of the build service agent pool resource. Required. :type agent_pool_name: str :param agent_pool_resource: Parameters for the update operation. Required. :type agent_pool_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_update_put( self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, agent_pool_resource: _models.BuildServiceAgentPoolResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: '''Create or update build service agent pool. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param agent_pool_name: The name of the build service agent pool resource. Required. :type agent_pool_name: str :param agent_pool_resource: Parameters for the update operation. Required. :type agent_pool_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_update_put( self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, agent_pool_resource: _models.BuildServiceAgentPoolResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: '''Create or update build service agent pool. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param agent_pool_name: The name of the build service agent pool resource. Required. :type agent_pool_name: str :param agent_pool_resource: Parameters for the update operation. Is either a BuildServiceAgentPoolResource type or a IO[bytes] type. Required. :type agent_pool_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildServiceAgentPoolResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass
17
6
39
4
26
10
3
0.44
0
7
0
0
7
5
7
7
393
48
246
112
189
109
121
67
109
6
0
1
31
8,308
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_bindings_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._bindings_operations.BindingsOperations
class BindingsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`bindings` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any ) -> _models.BindingResource: """Get a Binding and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :return: BindingResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, binding_name=binding_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("BindingResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: Union[_models.BindingResource, IO[bytes]], **kwargs: Any ) -> _models.BindingResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(binding_resource, (IOBase, bytes)): _content = binding_resource else: _json = self._serialize.body(binding_resource, "BindingResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, binding_name=binding_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("BindingResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("BindingResource", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("BindingResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: _models.BindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: """Create a new Binding or update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the create or update operation. Required. :type binding_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: """Create a new Binding or update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the create or update operation. Required. :type binding_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: Union[_models.BindingResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: """Create a new Binding or update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the create or update operation. Is either a BindingResource type or a IO[bytes] type. Required. :type binding_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, binding_name=binding_name, binding_resource=binding_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("BindingResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.BindingResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.BindingResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, binding_name=binding_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Operation to delete a Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, binding_name=binding_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore async def _update_initial( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: Union[_models.BindingResource, IO[bytes]], **kwargs: Any ) -> _models.BindingResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(binding_resource, (IOBase, bytes)): _content = binding_resource else: _json = self._serialize.body(binding_resource, "BindingResource") _request = build_update_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, binding_name=binding_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("BindingResource", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("BindingResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: _models.BindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: """Operation to update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the update operation. Required. :type binding_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: """Operation to update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the update operation. Required. :type binding_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: Union[_models.BindingResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: """Operation to update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the update operation. Is either a BindingResource type or a IO[bytes] type. Required. :type binding_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._update_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, binding_name=binding_name, binding_resource=binding_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("BindingResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.BindingResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.BindingResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @distributed_trace def list( self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any ) -> AsyncIterable["_models.BindingResource"]: """Handles requests to list all resources in an App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :return: An iterator like instance of either BindingResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("BindingResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data)
class BindingsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`bindings` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any ) -> _models.BindingResource: '''Get a Binding and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :return: BindingResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: Union[_models.BindingResource, IO[bytes]], **kwargs: Any ) -> _models.BindingResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: _models.BindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: '''Create a new Binding or update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the create or update operation. Required. :type binding_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: _models.BindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: '''Create a new Binding or update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the create or update operation. Required. :type binding_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: _models.BindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: '''Create a new Binding or update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the create or update operation. Is either a BindingResource type or a IO[bytes] type. Required. :type binding_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Operation to delete a Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _update_initial( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: Union[_models.BindingResource, IO[bytes]], **kwargs: Any ) -> _models.BindingResource: pass @overload async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: _models.BindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: '''Operation to update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the update operation. Required. :type binding_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: _models.BindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: '''Operation to update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the update operation. Required. :type binding_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, binding_resource: _models.BindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BindingResource]: '''Operation to update an exiting Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param binding_name: The name of the Binding resource. Required. :type binding_name: str :param binding_resource: Parameters for the update operation. Is either a BindingResource type or a IO[bytes] type. Required. :type binding_resource: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either BindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any ) -> AsyncIterable["_models.BindingResource"]: '''Handles requests to list all resources in an App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :return: An iterator like instance of either BindingResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass
29
10
39
4
27
10
3
0.42
0
7
0
0
13
5
13
13
715
83
461
206
352
193
218
117
198
7
0
1
57
8,309
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_apps_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._apps_operations.AppsOperations
class AppsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`apps` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, app_name: str, sync_status: Optional[str] = None, **kwargs: Any ) -> _models.AppResource: """Get an App and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param sync_status: Indicates whether sync status. Default value is None. :type sync_status: str :return: AppResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.AppResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, subscription_id=self._config.subscription_id, sync_status=sync_status, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("AppResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, app_name: str, app_resource: Union[_models.AppResource, IO[bytes]], **kwargs: Any ) -> _models.AppResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(app_resource, (IOBase, bytes)): _content = app_resource else: _json = self._serialize.body(app_resource, "AppResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("AppResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("AppResource", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("AppResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: _models.AppResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: """Create a new App or update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the create or update operation. Required. :type app_resource: ~azure.mgmt.appplatform.v2023_12_01.models.AppResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: """Create a new App or update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the create or update operation. Required. :type app_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: Union[_models.AppResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: """Create a new App or update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the create or update operation. Is either a AppResource type or a IO[bytes] type. Required. :type app_resource: ~azure.mgmt.appplatform.v2023_12_01.models.AppResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, app_resource=app_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("AppResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.AppResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.AppResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Operation to delete an App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore async def _update_initial( self, resource_group_name: str, service_name: str, app_name: str, app_resource: Union[_models.AppResource, IO[bytes]], **kwargs: Any ) -> _models.AppResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(app_resource, (IOBase, bytes)): _content = app_resource else: _json = self._serialize.body(app_resource, "AppResource") _request = build_update_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("AppResource", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("AppResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: _models.AppResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: """Operation to update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the update operation. Required. :type app_resource: ~azure.mgmt.appplatform.v2023_12_01.models.AppResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: """Operation to update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the update operation. Required. :type app_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: Union[_models.AppResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: """Operation to update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the update operation. Is either a AppResource type or a IO[bytes] type. Required. :type app_resource: ~azure.mgmt.appplatform.v2023_12_01.models.AppResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._update_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, app_resource=app_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("AppResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.AppResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.AppResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @distributed_trace def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: """Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either AppResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("AppResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @distributed_trace_async async def get_resource_upload_url( self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any ) -> _models.ResourceUploadDefinition: """Get an resource upload URL for an App, which may be artifacts or source archive. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :return: ResourceUploadDefinition or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceUploadDefinition :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) _request = build_get_resource_upload_url_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _set_active_deployments_initial( self, resource_group_name: str, service_name: str, app_name: str, active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], **kwargs: Any ) -> _models.AppResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(active_deployment_collection, (IOBase, bytes)): _content = active_deployment_collection else: _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") _request = build_set_active_deployments_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("AppResource", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("AppResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_set_active_deployments( self, resource_group_name: str, service_name: str, app_name: str, active_deployment_collection: _models.ActiveDeploymentCollection, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: """Set existing Deployment under the app as active. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param active_deployment_collection: A list of Deployment name to be active. Required. :type active_deployment_collection: ~azure.mgmt.appplatform.v2023_12_01.models.ActiveDeploymentCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_set_active_deployments( self, resource_group_name: str, service_name: str, app_name: str, active_deployment_collection: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: """Set existing Deployment under the app as active. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param active_deployment_collection: A list of Deployment name to be active. Required. :type active_deployment_collection: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_set_active_deployments( self, resource_group_name: str, service_name: str, app_name: str, active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: """Set existing Deployment under the app as active. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param active_deployment_collection: A list of Deployment name to be active. Is either a ActiveDeploymentCollection type or a IO[bytes] type. Required. :type active_deployment_collection: ~azure.mgmt.appplatform.v2023_12_01.models.ActiveDeploymentCollection or IO[bytes] :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._set_active_deployments_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, active_deployment_collection=active_deployment_collection, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("AppResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.AppResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.AppResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @overload async def validate_domain( self, resource_group_name: str, service_name: str, app_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: """Check the resource name is valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def validate_domain( self, resource_group_name: str, service_name: str, app_name: str, validate_payload: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: """Check the resource name is valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def validate_domain( self, resource_group_name: str, service_name: str, app_name: str, validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], **kwargs: Any ) -> _models.CustomDomainValidateResult: """Check the resource name is valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param validate_payload: Custom domain payload to be validated. Is either a CustomDomainValidatePayload type or a IO[bytes] type. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload or IO[bytes] :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(validate_payload, (IOBase, bytes)): _content = validate_payload else: _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") _request = build_validate_domain_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized
class AppsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`apps` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, app_name: str, sync_status: Optional[str] = None, **kwargs: Any ) -> _models.AppResource: '''Get an App and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param sync_status: Indicates whether sync status. Default value is None. :type sync_status: str :return: AppResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.AppResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, app_name: str, app_resource: Union[_models.AppResource, IO[bytes]], **kwargs: Any ) -> _models.AppResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: _models.AppResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: '''Create a new App or update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the create or update operation. Required. :type app_resource: ~azure.mgmt.appplatform.v2023_12_01.models.AppResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: _models.AppResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: '''Create a new App or update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the create or update operation. Required. :type app_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: _models.AppResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: '''Create a new App or update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the create or update operation. Is either a AppResource type or a IO[bytes] type. Required. :type app_resource: ~azure.mgmt.appplatform.v2023_12_01.models.AppResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Operation to delete an App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _update_initial( self, resource_group_name: str, service_name: str, app_name: str, app_resource: Union[_models.AppResource, IO[bytes]], **kwargs: Any ) -> _models.AppResource: pass @overload async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: _models.AppResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: '''Operation to update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the update operation. Required. :type app_resource: ~azure.mgmt.appplatform.v2023_12_01.models.AppResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: _models.AppResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: '''Operation to update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the update operation. Required. :type app_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_update( self, resource_group_name: str, service_name: str, app_name: str, app_resource: _models.AppResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: '''Operation to update an exiting App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param app_resource: Parameters for the update operation. Is either a AppResource type or a IO[bytes] type. Required. :type app_resource: ~azure.mgmt.appplatform.v2023_12_01.models.AppResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: '''Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either AppResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @distributed_trace_async async def get_resource_upload_url( self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any ) -> _models.ResourceUploadDefinition: '''Get an resource upload URL for an App, which may be artifacts or source archive. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :return: ResourceUploadDefinition or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceUploadDefinition :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _set_active_deployments_initial( self, resource_group_name: str, service_name: str, app_name: str, active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], **kwargs: Any ) -> _models.AppResource: pass @overload async def begin_set_active_deployments( self, resource_group_name: str, service_name: str, app_name: str, active_deployment_collection: _models.ActiveDeploymentCollection, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: '''Set existing Deployment under the app as active. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param active_deployment_collection: A list of Deployment name to be active. Required. :type active_deployment_collection: ~azure.mgmt.appplatform.v2023_12_01.models.ActiveDeploymentCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_set_active_deployments( self, resource_group_name: str, service_name: str, app_name: str, active_deployment_collection: _models.ActiveDeploymentCollection, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: '''Set existing Deployment under the app as active. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param active_deployment_collection: A list of Deployment name to be active. Required. :type active_deployment_collection: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_set_active_deployments( self, resource_group_name: str, service_name: str, app_name: str, active_deployment_collection: _models.ActiveDeploymentCollection, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.AppResource]: '''Set existing Deployment under the app as active. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param active_deployment_collection: A list of Deployment name to be active. Is either a ActiveDeploymentCollection type or a IO[bytes] type. Required. :type active_deployment_collection: ~azure.mgmt.appplatform.v2023_12_01.models.ActiveDeploymentCollection or IO[bytes] :return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.AppResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @overload async def validate_domain( self, resource_group_name: str, service_name: str, app_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: '''Check the resource name is valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def validate_domain( self, resource_group_name: str, service_name: str, app_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: '''Check the resource name is valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def validate_domain( self, resource_group_name: str, service_name: str, app_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: '''Check the resource name is valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param validate_payload: Custom domain payload to be validated. Is either a CustomDomainValidatePayload type or a IO[bytes] type. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload or IO[bytes] :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: ''' pass
45
17
40
4
26
11
3
0.44
0
7
0
0
21
5
21
21
1,098
131
693
323
514
307
323
173
294
7
0
1
81
8,310
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_application_live_views_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._application_live_views_operations.ApplicationLiveViewsOperations
class ApplicationLiveViewsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`application_live_views` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.ApplicationLiveViewResource"]: """Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either ApplicationLiveViewResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any ) -> _models.ApplicationLiveViewResource: """Get the Application Live and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_live_view_name: The name of Application Live View. Required. :type application_live_view_name: str :return: ApplicationLiveViewResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, application_live_view_name=application_live_view_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, application_live_view_name: str, application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], **kwargs: Any ) -> _models.ApplicationLiveViewResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(application_live_view_resource, (IOBase, bytes)): _content = application_live_view_resource else: _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, application_live_view_name=application_live_view_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_live_view_name: str, application_live_view_resource: _models.ApplicationLiveViewResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: """Create the default Application Live View or update the existing Application Live View. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_live_view_name: The name of Application Live View. Required. :type application_live_view_name: str :param application_live_view_resource: Parameters for the update operation. Required. :type application_live_view_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_live_view_name: str, application_live_view_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: """Create the default Application Live View or update the existing Application Live View. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_live_view_name: The name of Application Live View. Required. :type application_live_view_name: str :param application_live_view_resource: Parameters for the update operation. Required. :type application_live_view_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_live_view_name: str, application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: """Create the default Application Live View or update the existing Application Live View. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_live_view_name: The name of Application Live View. Required. :type application_live_view_name: str :param application_live_view_resource: Parameters for the update operation. Is either a ApplicationLiveViewResource type or a IO[bytes] type. Required. :type application_live_view_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, application_live_view_name=application_live_view_name, application_live_view_resource=application_live_view_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.ApplicationLiveViewResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.ApplicationLiveViewResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, application_live_view_name=application_live_view_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) if cls: return cls(pipeline_response, None, response_headers) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Disable the default Application Live View. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_live_view_name: The name of Application Live View. Required. :type application_live_view_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, application_live_view_name=application_live_view_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method)
class ApplicationLiveViewsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`application_live_views` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.ApplicationLiveViewResource"]: '''Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either ApplicationLiveViewResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @distributed_trace_async async def get_next(next_link=None): '''Get the Application Live and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_live_view_name: The name of Application Live View. Required. :type application_live_view_name: str :return: ApplicationLiveViewResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, application_live_view_name: str, application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], **kwargs: Any ) -> _models.ApplicationLiveViewResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_live_view_name: str, application_live_view_resource: _models.ApplicationLiveViewResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: '''Create the default Application Live View or update the existing Application Live View. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_live_view_name: The name of Application Live View. Required. :type application_live_view_name: str :param application_live_view_resource: Parameters for the update operation. Required. :type application_live_view_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_live_view_name: str, application_live_view_resource: _models.ApplicationLiveViewResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: '''Create the default Application Live View or update the existing Application Live View. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_live_view_name: The name of Application Live View. Required. :type application_live_view_name: str :param application_live_view_resource: Parameters for the update operation. Required. :type application_live_view_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_live_view_name: str, application_live_view_resource: _models.ApplicationLiveViewResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: '''Create the default Application Live View or update the existing Application Live View. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_live_view_name: The name of Application Live View. Required. :type application_live_view_name: str :param application_live_view_resource: Parameters for the update operation. Is either a ApplicationLiveViewResource type or a IO[bytes] type. Required. :type application_live_view_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationLiveViewResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Disable the default Application Live View. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_live_view_name: The name of Application Live View. Required. :type application_live_view_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass
21
7
37
4
26
8
3
0.37
0
7
0
0
9
5
9
9
479
62
316
135
255
118
163
89
148
6
0
1
42
8,311
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_application_accelerators_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._application_accelerators_operations.ApplicationAcceleratorsOperations
class ApplicationAcceleratorsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`application_accelerators` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.ApplicationAcceleratorResource"]: """Handle requests to list all application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either ApplicationAcceleratorResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any ) -> _models.ApplicationAcceleratorResource: """Get the application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :return: ApplicationAcceleratorResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, application_accelerator_name: str, application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], **kwargs: Any ) -> _models.ApplicationAcceleratorResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(application_accelerator_resource, (IOBase, bytes)): _content = application_accelerator_resource else: _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, application_accelerator_resource: _models.ApplicationAcceleratorResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: """Create or update the application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param application_accelerator_resource: The application accelerator for the create or update operation. Required. :type application_accelerator_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, application_accelerator_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: """Create or update the application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param application_accelerator_resource: The application accelerator for the create or update operation. Required. :type application_accelerator_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: """Create or update the application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param application_accelerator_resource: The application accelerator for the create or update operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. :type application_accelerator_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, application_accelerator_resource=application_accelerator_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.ApplicationAcceleratorResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) if cls: return cls(pipeline_response, None, response_headers) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Delete the application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method)
class ApplicationAcceleratorsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`application_accelerators` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.ApplicationAcceleratorResource"]: '''Handle requests to list all application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either ApplicationAcceleratorResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @distributed_trace_async async def get_next(next_link=None): '''Get the application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :return: ApplicationAcceleratorResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, application_accelerator_name: str, application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], **kwargs: Any ) -> _models.ApplicationAcceleratorResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, application_accelerator_resource: _models.ApplicationAcceleratorResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: '''Create or update the application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param application_accelerator_resource: The application accelerator for the create or update operation. Required. :type application_accelerator_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, application_accelerator_resource: _models.ApplicationAcceleratorResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: '''Create or update the application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param application_accelerator_resource: The application accelerator for the create or update operation. Required. :type application_accelerator_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, application_accelerator_resource: _models.ApplicationAcceleratorResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: '''Create or update the application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param application_accelerator_resource: The application accelerator for the create or update operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. :type application_accelerator_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApplicationAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Delete the application accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass
21
7
37
4
26
9
3
0.38
0
7
0
0
9
5
9
9
481
62
316
135
255
120
163
89
148
6
0
1
42
8,312
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_apms_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._apms_operations.ApmsOperations
class ApmsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`apms` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.ApmResource"]: """Get collection of APMs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either ApmResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ApmResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("ApmResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any ) -> _models.ApmResource: """Get the APM by name. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :return: ApmResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApmResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, apm_name=apm_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("ApmResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, apm_name: str, apm_resource: Union[_models.ApmResource, IO[bytes]], **kwargs: Any ) -> _models.ApmResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(apm_resource, (IOBase, bytes)): _content = apm_resource else: _json = self._serialize.body(apm_resource, "ApmResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, apm_name=apm_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("ApmResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("ApmResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, apm_name: str, apm_resource: _models.ApmResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApmResource]: """Create or update an APM. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :param apm_resource: Parameters for the create or update operation. Required. :type apm_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApmResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApmResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApmResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, apm_name: str, apm_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApmResource]: """Create or update an APM. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :param apm_resource: Parameters for the create or update operation. Required. :type apm_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApmResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApmResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, apm_name: str, apm_resource: Union[_models.ApmResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ApmResource]: """Create or update an APM. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :param apm_resource: Parameters for the create or update operation. Is either a ApmResource type or a IO[bytes] type. Required. :type apm_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApmResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ApmResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApmResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, apm_name=apm_name, apm_resource=apm_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("ApmResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.ApmResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.ApmResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, apm_name=apm_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) if cls: return cls(pipeline_response, None, response_headers) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Operation to delete an APM. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, apm_name=apm_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast( AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) ) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace_async async def list_secret_keys( self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any ) -> _models.ApmSecretKeys: """List keys of APM sensitive properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :return: ApmSecretKeys or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApmSecretKeys :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) _request = build_list_secret_keys_request( resource_group_name=resource_group_name, service_name=service_name, apm_name=apm_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("ApmSecretKeys", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized
class ApmsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`apms` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.ApmResource"]: '''Get collection of APMs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either ApmResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ApmResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @distributed_trace_async async def get_next(next_link=None): '''Get the APM by name. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :return: ApmResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApmResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, apm_name: str, apm_resource: Union[_models.ApmResource, IO[bytes]], **kwargs: Any ) -> _models.ApmResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, apm_name: str, apm_resource: _models.ApmResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApmResource]: '''Create or update an APM. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :param apm_resource: Parameters for the create or update operation. Required. :type apm_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApmResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApmResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApmResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, apm_name: str, apm_resource: _models.ApmResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApmResource]: '''Create or update an APM. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :param apm_resource: Parameters for the create or update operation. Required. :type apm_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApmResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApmResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, apm_name: str, apm_resource: _models.ApmResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApmResource]: '''Create or update an APM. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :param apm_resource: Parameters for the create or update operation. Is either a ApmResource type or a IO[bytes] type. Required. :type apm_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApmResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ApmResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApmResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Operation to delete an APM. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace_async async def list_secret_keys( self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any ) -> _models.ApmSecretKeys: '''List keys of APM sensitive properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param apm_name: The name of the APM. Required. :type apm_name: str :return: ApmSecretKeys or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApmSecretKeys :raises ~azure.core.exceptions.HttpResponseError: ''' pass
23
8
38
4
27
9
3
0.37
0
7
0
0
10
5
10
10
537
73
354
147
291
130
183
100
167
6
0
1
45
8,313
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_api_portals_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._api_portals_operations.ApiPortalsOperations
class ApiPortalsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`api_portals` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any ) -> _models.ApiPortalResource: """Get the API portal and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :return: ApiPortalResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("ApiPortalResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, api_portal_name: str, api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], **kwargs: Any ) -> _models.ApiPortalResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(api_portal_resource, (IOBase, bytes)): _content = api_portal_resource else: _json = self._serialize.body(api_portal_resource, "ApiPortalResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("ApiPortalResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("ApiPortalResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, api_portal_resource: _models.ApiPortalResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalResource]: """Create the default API portal or update the existing API portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param api_portal_resource: The API portal for the create or update operation. Required. :type api_portal_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, api_portal_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalResource]: """Create the default API portal or update the existing API portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param api_portal_resource: The API portal for the create or update operation. Required. :type api_portal_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalResource]: """Create the default API portal or update the existing API portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param api_portal_resource: The API portal for the create or update operation. Is either a ApiPortalResource type or a IO[bytes] type. Required. :type api_portal_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, api_portal_resource=api_portal_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("ApiPortalResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.ApiPortalResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Delete the default API portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.ApiPortalResource"]: """Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either ApiPortalResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @overload async def validate_domain( self, resource_group_name: str, service_name: str, api_portal_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: """Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def validate_domain( self, resource_group_name: str, service_name: str, api_portal_name: str, validate_payload: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: """Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def validate_domain( self, resource_group_name: str, service_name: str, api_portal_name: str, validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], **kwargs: Any ) -> _models.CustomDomainValidateResult: """Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param validate_payload: Custom domain payload to be validated. Is either a CustomDomainValidatePayload type or a IO[bytes] type. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload or IO[bytes] :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(validate_payload, (IOBase, bytes)): _content = validate_payload else: _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") _request = build_validate_domain_request( resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized
class ApiPortalsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`api_portals` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any ) -> _models.ApiPortalResource: '''Get the API portal and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :return: ApiPortalResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, api_portal_name: str, api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], **kwargs: Any ) -> _models.ApiPortalResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, api_portal_resource: _models.ApiPortalResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalResource]: '''Create the default API portal or update the existing API portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param api_portal_resource: The API portal for the create or update operation. Required. :type api_portal_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, api_portal_resource: _models.ApiPortalResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalResource]: '''Create the default API portal or update the existing API portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param api_portal_resource: The API portal for the create or update operation. Required. :type api_portal_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, api_portal_resource: _models.ApiPortalResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalResource]: '''Create the default API portal or update the existing API portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param api_portal_resource: The API portal for the create or update operation. Is either a ApiPortalResource type or a IO[bytes] type. Required. :type api_portal_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Delete the default API portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.ApiPortalResource"]: '''Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either ApiPortalResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @overload async def validate_domain( self, resource_group_name: str, service_name: str, api_portal_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: '''Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def validate_domain( self, resource_group_name: str, service_name: str, api_portal_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: '''Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def validate_domain( self, resource_group_name: str, service_name: str, api_portal_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: '''Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param validate_payload: Custom domain payload to be validated. Is either a CustomDomainValidatePayload type or a IO[bytes] type. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload or IO[bytes] :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: ''' pass
27
10
38
4
25
10
3
0.43
0
7
0
0
12
5
12
12
615
77
389
178
297
169
189
104
171
6
0
1
47
8,314
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_api_portal_custom_domains_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._api_portal_custom_domains_operations.ApiPortalCustomDomainsOperations
class ApiPortalCustomDomainsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`api_portal_custom_domains` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any ) -> _models.ApiPortalCustomDomainResource: """Get the API portal custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param domain_name: The name of the API portal custom domain. Required. :type domain_name: str :return: ApiPortalCustomDomainResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, domain_name=domain_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], **kwargs: Any ) -> _models.ApiPortalCustomDomainResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): _content = api_portal_custom_domain_resource else: _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, domain_name=domain_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: """Create or update the API portal custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param domain_name: The name of the API portal custom domain. Required. :type domain_name: str :param api_portal_custom_domain_resource: The API portal custom domain for the create or update operation. Required. :type api_portal_custom_domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, api_portal_custom_domain_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: """Create or update the API portal custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param domain_name: The name of the API portal custom domain. Required. :type domain_name: str :param api_portal_custom_domain_resource: The API portal custom domain for the create or update operation. Required. :type api_portal_custom_domain_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: """Create or update the API portal custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param domain_name: The name of the API portal custom domain. Required. :type domain_name: str :param api_portal_custom_domain_resource: The API portal custom domain for the create or update operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. :type api_portal_custom_domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, domain_name=domain_name, api_portal_custom_domain_resource=api_portal_custom_domain_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, domain_name=domain_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Delete the API portal custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param domain_name: The name of the API portal custom domain. Required. :type domain_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, domain_name=domain_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list( self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: """Handle requests to list all API portal custom domains. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, api_portal_name=api_portal_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data)
class ApiPortalCustomDomainsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`api_portal_custom_domains` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any ) -> _models.ApiPortalCustomDomainResource: '''Get the API portal custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param domain_name: The name of the API portal custom domain. Required. :type domain_name: str :return: ApiPortalCustomDomainResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], **kwargs: Any ) -> _models.ApiPortalCustomDomainResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: '''Create or update the API portal custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param domain_name: The name of the API portal custom domain. Required. :type domain_name: str :param api_portal_custom_domain_resource: The API portal custom domain for the create or update operation. Required. :type api_portal_custom_domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: '''Create or update the API portal custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param domain_name: The name of the API portal custom domain. Required. :type domain_name: str :param api_portal_custom_domain_resource: The API portal custom domain for the create or update operation. Required. :type api_portal_custom_domain_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: '''Create or update the API portal custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param domain_name: The name of the API portal custom domain. Required. :type domain_name: str :param api_portal_custom_domain_resource: The API portal custom domain for the create or update operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. :type api_portal_custom_domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Delete the API portal custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :param domain_name: The name of the API portal custom domain. Required. :type domain_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: '''Handle requests to list all API portal custom domains. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param api_portal_name: The name of API portal. Required. :type api_portal_name: str :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ApiPortalCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass
21
7
38
4
26
9
3
0.41
0
7
0
0
9
5
9
9
499
61
323
138
258
132
160
88
145
6
0
1
41
8,315
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/_configuration.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio._configuration.AppPlatformManagementClientConfiguration
class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long """Configuration for AppPlatformManagementClient. Note that all parameters used to create this instance are saved as instance attributes. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: api_version: str = kwargs.pop("api_version", "2023-12-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") self.credential = credential self.subscription_id = subscription_id self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) self.polling_interval = kwargs.get("polling_interval", 30) self._configure(**kwargs) def _configure(self, **kwargs: Any) -> None: self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) self.authentication_policy = kwargs.get("authentication_policy") if self.credential and not self.authentication_policy: self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( self.credential, *self.credential_scopes, **kwargs )
class AppPlatformManagementClientConfiguration: '''Configuration for AppPlatformManagementClient. Note that all parameters used to create this instance are saved as instance attributes. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str ''' def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: pass def _configure(self, **kwargs: Any) -> None: pass
3
1
15
1
14
0
3
0.46
0
3
0
0
2
14
2
2
46
6
28
18
25
13
26
18
23
3
0
1
5
8,316
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/_app_platform_management_client.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio._app_platform_management_client.AppPlatformManagementClient
class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes """REST API for Azure Spring Apps. :ivar services: ServicesOperations operations :vartype services: azure.mgmt.appplatform.v2023_12_01.aio.operations.ServicesOperations :ivar apms: ApmsOperations operations :vartype apms: azure.mgmt.appplatform.v2023_12_01.aio.operations.ApmsOperations :ivar config_servers: ConfigServersOperations operations :vartype config_servers: azure.mgmt.appplatform.v2023_12_01.aio.operations.ConfigServersOperations :ivar configuration_services: ConfigurationServicesOperations operations :vartype configuration_services: azure.mgmt.appplatform.v2023_12_01.aio.operations.ConfigurationServicesOperations :ivar service_registries: ServiceRegistriesOperations operations :vartype service_registries: azure.mgmt.appplatform.v2023_12_01.aio.operations.ServiceRegistriesOperations :ivar application_live_views: ApplicationLiveViewsOperations operations :vartype application_live_views: azure.mgmt.appplatform.v2023_12_01.aio.operations.ApplicationLiveViewsOperations :ivar dev_tool_portals: DevToolPortalsOperations operations :vartype dev_tool_portals: azure.mgmt.appplatform.v2023_12_01.aio.operations.DevToolPortalsOperations :ivar container_registries: ContainerRegistriesOperations operations :vartype container_registries: azure.mgmt.appplatform.v2023_12_01.aio.operations.ContainerRegistriesOperations :ivar build_service: BuildServiceOperations operations :vartype build_service: azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceOperations :ivar buildpack_binding: BuildpackBindingOperations operations :vartype buildpack_binding: azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildpackBindingOperations :ivar build_service_builder: BuildServiceBuilderOperations operations :vartype build_service_builder: azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceBuilderOperations :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations :vartype build_service_agent_pool: azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceAgentPoolOperations :ivar monitoring_settings: MonitoringSettingsOperations operations :vartype monitoring_settings: azure.mgmt.appplatform.v2023_12_01.aio.operations.MonitoringSettingsOperations :ivar apps: AppsOperations operations :vartype apps: azure.mgmt.appplatform.v2023_12_01.aio.operations.AppsOperations :ivar bindings: BindingsOperations operations :vartype bindings: azure.mgmt.appplatform.v2023_12_01.aio.operations.BindingsOperations :ivar storages: StoragesOperations operations :vartype storages: azure.mgmt.appplatform.v2023_12_01.aio.operations.StoragesOperations :ivar certificates: CertificatesOperations operations :vartype certificates: azure.mgmt.appplatform.v2023_12_01.aio.operations.CertificatesOperations :ivar custom_domains: CustomDomainsOperations operations :vartype custom_domains: azure.mgmt.appplatform.v2023_12_01.aio.operations.CustomDomainsOperations :ivar deployments: DeploymentsOperations operations :vartype deployments: azure.mgmt.appplatform.v2023_12_01.aio.operations.DeploymentsOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.appplatform.v2023_12_01.aio.operations.Operations :ivar runtime_versions: RuntimeVersionsOperations operations :vartype runtime_versions: azure.mgmt.appplatform.v2023_12_01.aio.operations.RuntimeVersionsOperations :ivar skus: SkusOperations operations :vartype skus: azure.mgmt.appplatform.v2023_12_01.aio.operations.SkusOperations :ivar gateways: GatewaysOperations operations :vartype gateways: azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewaysOperations :ivar gateway_route_configs: GatewayRouteConfigsOperations operations :vartype gateway_route_configs: azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewayRouteConfigsOperations :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations :vartype gateway_custom_domains: azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewayCustomDomainsOperations :ivar api_portals: ApiPortalsOperations operations :vartype api_portals: azure.mgmt.appplatform.v2023_12_01.aio.operations.ApiPortalsOperations :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations :vartype api_portal_custom_domains: azure.mgmt.appplatform.v2023_12_01.aio.operations.ApiPortalCustomDomainsOperations :ivar application_accelerators: ApplicationAcceleratorsOperations operations :vartype application_accelerators: azure.mgmt.appplatform.v2023_12_01.aio.operations.ApplicationAcceleratorsOperations :ivar customized_accelerators: CustomizedAcceleratorsOperations operations :vartype customized_accelerators: azure.mgmt.appplatform.v2023_12_01.aio.operations.CustomizedAcceleratorsOperations :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations :vartype predefined_accelerators: azure.mgmt.appplatform.v2023_12_01.aio.operations.PredefinedAcceleratorsOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str :keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, base_url: str = "https://management.azure.com", **kwargs: Any ) -> None: self._config = AppPlatformManagementClientConfiguration( credential=credential, subscription_id=subscription_id, **kwargs ) _policies = kwargs.pop("policies", None) if _policies is None: _policies = [ policies.RequestIdPolicy(**kwargs), self._config.headers_policy, self._config.user_agent_policy, self._config.proxy_policy, policies.ContentDecodePolicy(**kwargs), AsyncARMAutoResourceProviderRegistrationPolicy(), self._config.redirect_policy, self._config.retry_policy, self._config.authentication_policy, self._config.custom_hook_policy, self._config.logging_policy, policies.DistributedTracingPolicy(**kwargs), policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.config_servers = ConfigServersOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.configuration_services = ConfigurationServicesOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.service_registries = ServiceRegistriesOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.application_live_views = ApplicationLiveViewsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.dev_tool_portals = DevToolPortalsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.container_registries = ContainerRegistriesOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.build_service = BuildServiceOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.buildpack_binding = BuildpackBindingOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.build_service_builder = BuildServiceBuilderOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.build_service_agent_pool = BuildServiceAgentPoolOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.monitoring_settings = MonitoringSettingsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.bindings = BindingsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.storages = StoragesOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.certificates = CertificatesOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.custom_domains = CustomDomainsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.deployments = DeploymentsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.runtime_versions = RuntimeVersionsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.gateways = GatewaysOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.gateway_route_configs = GatewayRouteConfigsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.gateway_custom_domains = GatewayCustomDomainsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.api_portals = ApiPortalsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.application_accelerators = ApplicationAcceleratorsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.customized_accelerators = CustomizedAcceleratorsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.predefined_accelerators = PredefinedAcceleratorsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) def _send_request( self, request: HttpRequest, *, stream: bool = False, **kwargs: Any ) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") <HttpRequest [GET], url: 'https://www.example.org/'> >>> response = await client._send_request(request) <AsyncHttpResponse: 200 OK> For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request :param request: The network request you want to make. Required. :type request: ~azure.core.rest.HttpRequest :keyword bool stream: Whether the response payload will be streamed. Defaults to False. :return: The response of your network call. Does not do error handling on your response. :rtype: ~azure.core.rest.AsyncHttpResponse """ request_copy = deepcopy(request) request_copy.url = self._client.format_url(request_copy.url) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore async def close(self) -> None: await self._client.close() async def __aenter__(self) -> "AppPlatformManagementClient": await self._client.__aenter__() return self async def __aexit__(self, *exc_details: Any) -> None: await self._client.__aexit__(*exc_details)
class AppPlatformManagementClient: '''REST API for Azure Spring Apps. :ivar services: ServicesOperations operations :vartype services: azure.mgmt.appplatform.v2023_12_01.aio.operations.ServicesOperations :ivar apms: ApmsOperations operations :vartype apms: azure.mgmt.appplatform.v2023_12_01.aio.operations.ApmsOperations :ivar config_servers: ConfigServersOperations operations :vartype config_servers: azure.mgmt.appplatform.v2023_12_01.aio.operations.ConfigServersOperations :ivar configuration_services: ConfigurationServicesOperations operations :vartype configuration_services: azure.mgmt.appplatform.v2023_12_01.aio.operations.ConfigurationServicesOperations :ivar service_registries: ServiceRegistriesOperations operations :vartype service_registries: azure.mgmt.appplatform.v2023_12_01.aio.operations.ServiceRegistriesOperations :ivar application_live_views: ApplicationLiveViewsOperations operations :vartype application_live_views: azure.mgmt.appplatform.v2023_12_01.aio.operations.ApplicationLiveViewsOperations :ivar dev_tool_portals: DevToolPortalsOperations operations :vartype dev_tool_portals: azure.mgmt.appplatform.v2023_12_01.aio.operations.DevToolPortalsOperations :ivar container_registries: ContainerRegistriesOperations operations :vartype container_registries: azure.mgmt.appplatform.v2023_12_01.aio.operations.ContainerRegistriesOperations :ivar build_service: BuildServiceOperations operations :vartype build_service: azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceOperations :ivar buildpack_binding: BuildpackBindingOperations operations :vartype buildpack_binding: azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildpackBindingOperations :ivar build_service_builder: BuildServiceBuilderOperations operations :vartype build_service_builder: azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceBuilderOperations :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations :vartype build_service_agent_pool: azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceAgentPoolOperations :ivar monitoring_settings: MonitoringSettingsOperations operations :vartype monitoring_settings: azure.mgmt.appplatform.v2023_12_01.aio.operations.MonitoringSettingsOperations :ivar apps: AppsOperations operations :vartype apps: azure.mgmt.appplatform.v2023_12_01.aio.operations.AppsOperations :ivar bindings: BindingsOperations operations :vartype bindings: azure.mgmt.appplatform.v2023_12_01.aio.operations.BindingsOperations :ivar storages: StoragesOperations operations :vartype storages: azure.mgmt.appplatform.v2023_12_01.aio.operations.StoragesOperations :ivar certificates: CertificatesOperations operations :vartype certificates: azure.mgmt.appplatform.v2023_12_01.aio.operations.CertificatesOperations :ivar custom_domains: CustomDomainsOperations operations :vartype custom_domains: azure.mgmt.appplatform.v2023_12_01.aio.operations.CustomDomainsOperations :ivar deployments: DeploymentsOperations operations :vartype deployments: azure.mgmt.appplatform.v2023_12_01.aio.operations.DeploymentsOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.appplatform.v2023_12_01.aio.operations.Operations :ivar runtime_versions: RuntimeVersionsOperations operations :vartype runtime_versions: azure.mgmt.appplatform.v2023_12_01.aio.operations.RuntimeVersionsOperations :ivar skus: SkusOperations operations :vartype skus: azure.mgmt.appplatform.v2023_12_01.aio.operations.SkusOperations :ivar gateways: GatewaysOperations operations :vartype gateways: azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewaysOperations :ivar gateway_route_configs: GatewayRouteConfigsOperations operations :vartype gateway_route_configs: azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewayRouteConfigsOperations :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations :vartype gateway_custom_domains: azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewayCustomDomainsOperations :ivar api_portals: ApiPortalsOperations operations :vartype api_portals: azure.mgmt.appplatform.v2023_12_01.aio.operations.ApiPortalsOperations :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations :vartype api_portal_custom_domains: azure.mgmt.appplatform.v2023_12_01.aio.operations.ApiPortalCustomDomainsOperations :ivar application_accelerators: ApplicationAcceleratorsOperations operations :vartype application_accelerators: azure.mgmt.appplatform.v2023_12_01.aio.operations.ApplicationAcceleratorsOperations :ivar customized_accelerators: CustomizedAcceleratorsOperations operations :vartype customized_accelerators: azure.mgmt.appplatform.v2023_12_01.aio.operations.CustomizedAcceleratorsOperations :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations :vartype predefined_accelerators: azure.mgmt.appplatform.v2023_12_01.aio.operations.PredefinedAcceleratorsOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str :keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. ''' def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, base_url: str = "https://management.azure.com", **kwargs: Any ) -> None: pass def _send_request( self, request: HttpRequest, *, stream: bool = False, **kwargs: Any ) -> Awaitable[AsyncHttpResponse]: '''Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") <HttpRequest [GET], url: 'https://www.example.org/'> >>> response = await client._send_request(request) <AsyncHttpResponse: 200 OK> For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request :param request: The network request you want to make. Required. :type request: ~azure.core.rest.HttpRequest :keyword bool stream: Whether the response payload will be streamed. Defaults to False. :return: The response of your network call. Does not do error handling on your response. :rtype: ~azure.core.rest.AsyncHttpResponse ''' pass async def close(self) -> None: pass async def __aenter__(self) -> "AppPlatformManagementClient": pass async def __aexit__(self, *exc_details: Any) -> None: pass
6
2
28
1
24
3
1
0.89
0
37
33
0
5
34
5
5
238
11
121
51
107
108
52
43
46
3
0
1
7
8,317
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/_configuration.py
azext_spring.vendored_sdks.appplatform.v2023_12_01._configuration.AppPlatformManagementClientConfiguration
class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long """Configuration for AppPlatformManagementClient. Note that all parameters used to create this instance are saved as instance attributes. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: api_version: str = kwargs.pop("api_version", "2023-12-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") self.credential = credential self.subscription_id = subscription_id self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) self.polling_interval = kwargs.get("polling_interval", 30) self._configure(**kwargs) def _configure(self, **kwargs: Any) -> None: self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) self.authentication_policy = kwargs.get("authentication_policy") if self.credential and not self.authentication_policy: self.authentication_policy = ARMChallengeAuthenticationPolicy( self.credential, *self.credential_scopes, **kwargs )
class AppPlatformManagementClientConfiguration: '''Configuration for AppPlatformManagementClient. Note that all parameters used to create this instance are saved as instance attributes. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str ''' def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: pass def _configure(self, **kwargs: Any) -> None: pass
3
1
15
1
14
0
3
0.46
0
3
0
0
2
14
2
2
46
6
28
18
25
13
26
18
23
3
0
1
5
8,318
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/_app_platform_management_client.py
azext_spring.vendored_sdks.appplatform.v2023_12_01._app_platform_management_client.AppPlatformManagementClient
class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes """REST API for Azure Spring Apps. :ivar services: ServicesOperations operations :vartype services: azure.mgmt.appplatform.v2023_12_01.operations.ServicesOperations :ivar apms: ApmsOperations operations :vartype apms: azure.mgmt.appplatform.v2023_12_01.operations.ApmsOperations :ivar config_servers: ConfigServersOperations operations :vartype config_servers: azure.mgmt.appplatform.v2023_12_01.operations.ConfigServersOperations :ivar configuration_services: ConfigurationServicesOperations operations :vartype configuration_services: azure.mgmt.appplatform.v2023_12_01.operations.ConfigurationServicesOperations :ivar service_registries: ServiceRegistriesOperations operations :vartype service_registries: azure.mgmt.appplatform.v2023_12_01.operations.ServiceRegistriesOperations :ivar application_live_views: ApplicationLiveViewsOperations operations :vartype application_live_views: azure.mgmt.appplatform.v2023_12_01.operations.ApplicationLiveViewsOperations :ivar dev_tool_portals: DevToolPortalsOperations operations :vartype dev_tool_portals: azure.mgmt.appplatform.v2023_12_01.operations.DevToolPortalsOperations :ivar container_registries: ContainerRegistriesOperations operations :vartype container_registries: azure.mgmt.appplatform.v2023_12_01.operations.ContainerRegistriesOperations :ivar build_service: BuildServiceOperations operations :vartype build_service: azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceOperations :ivar buildpack_binding: BuildpackBindingOperations operations :vartype buildpack_binding: azure.mgmt.appplatform.v2023_12_01.operations.BuildpackBindingOperations :ivar build_service_builder: BuildServiceBuilderOperations operations :vartype build_service_builder: azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceBuilderOperations :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations :vartype build_service_agent_pool: azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceAgentPoolOperations :ivar monitoring_settings: MonitoringSettingsOperations operations :vartype monitoring_settings: azure.mgmt.appplatform.v2023_12_01.operations.MonitoringSettingsOperations :ivar apps: AppsOperations operations :vartype apps: azure.mgmt.appplatform.v2023_12_01.operations.AppsOperations :ivar bindings: BindingsOperations operations :vartype bindings: azure.mgmt.appplatform.v2023_12_01.operations.BindingsOperations :ivar storages: StoragesOperations operations :vartype storages: azure.mgmt.appplatform.v2023_12_01.operations.StoragesOperations :ivar certificates: CertificatesOperations operations :vartype certificates: azure.mgmt.appplatform.v2023_12_01.operations.CertificatesOperations :ivar custom_domains: CustomDomainsOperations operations :vartype custom_domains: azure.mgmt.appplatform.v2023_12_01.operations.CustomDomainsOperations :ivar deployments: DeploymentsOperations operations :vartype deployments: azure.mgmt.appplatform.v2023_12_01.operations.DeploymentsOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.appplatform.v2023_12_01.operations.Operations :ivar runtime_versions: RuntimeVersionsOperations operations :vartype runtime_versions: azure.mgmt.appplatform.v2023_12_01.operations.RuntimeVersionsOperations :ivar skus: SkusOperations operations :vartype skus: azure.mgmt.appplatform.v2023_12_01.operations.SkusOperations :ivar gateways: GatewaysOperations operations :vartype gateways: azure.mgmt.appplatform.v2023_12_01.operations.GatewaysOperations :ivar gateway_route_configs: GatewayRouteConfigsOperations operations :vartype gateway_route_configs: azure.mgmt.appplatform.v2023_12_01.operations.GatewayRouteConfigsOperations :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations :vartype gateway_custom_domains: azure.mgmt.appplatform.v2023_12_01.operations.GatewayCustomDomainsOperations :ivar api_portals: ApiPortalsOperations operations :vartype api_portals: azure.mgmt.appplatform.v2023_12_01.operations.ApiPortalsOperations :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations :vartype api_portal_custom_domains: azure.mgmt.appplatform.v2023_12_01.operations.ApiPortalCustomDomainsOperations :ivar application_accelerators: ApplicationAcceleratorsOperations operations :vartype application_accelerators: azure.mgmt.appplatform.v2023_12_01.operations.ApplicationAcceleratorsOperations :ivar customized_accelerators: CustomizedAcceleratorsOperations operations :vartype customized_accelerators: azure.mgmt.appplatform.v2023_12_01.operations.CustomizedAcceleratorsOperations :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations :vartype predefined_accelerators: azure.mgmt.appplatform.v2023_12_01.operations.PredefinedAcceleratorsOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str :keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( self, credential: "TokenCredential", subscription_id: str, base_url: str = "https://management.azure.com", **kwargs: Any ) -> None: self._config = AppPlatformManagementClientConfiguration( credential=credential, subscription_id=subscription_id, **kwargs ) _policies = kwargs.pop("policies", None) if _policies is None: _policies = [ policies.RequestIdPolicy(**kwargs), self._config.headers_policy, self._config.user_agent_policy, self._config.proxy_policy, policies.ContentDecodePolicy(**kwargs), ARMAutoResourceProviderRegistrationPolicy(), self._config.redirect_policy, self._config.retry_policy, self._config.authentication_policy, self._config.custom_hook_policy, self._config.logging_policy, policies.DistributedTracingPolicy(**kwargs), policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.config_servers = ConfigServersOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.configuration_services = ConfigurationServicesOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.service_registries = ServiceRegistriesOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.application_live_views = ApplicationLiveViewsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.dev_tool_portals = DevToolPortalsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.container_registries = ContainerRegistriesOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.build_service = BuildServiceOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.buildpack_binding = BuildpackBindingOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.build_service_builder = BuildServiceBuilderOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.build_service_agent_pool = BuildServiceAgentPoolOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.monitoring_settings = MonitoringSettingsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.bindings = BindingsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.storages = StoragesOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.certificates = CertificatesOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.custom_domains = CustomDomainsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.deployments = DeploymentsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.runtime_versions = RuntimeVersionsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.gateways = GatewaysOperations(self._client, self._config, self._serialize, self._deserialize, "2023-12-01") self.gateway_route_configs = GatewayRouteConfigsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.gateway_custom_domains = GatewayCustomDomainsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.api_portals = ApiPortalsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.application_accelerators = ApplicationAcceleratorsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.customized_accelerators = CustomizedAcceleratorsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) self.predefined_accelerators = PredefinedAcceleratorsOperations( self._client, self._config, self._serialize, self._deserialize, "2023-12-01" ) def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: """Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") <HttpRequest [GET], url: 'https://www.example.org/'> >>> response = client._send_request(request) <HttpResponse: 200 OK> For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request :param request: The network request you want to make. Required. :type request: ~azure.core.rest.HttpRequest :keyword bool stream: Whether the response payload will be streamed. Defaults to False. :return: The response of your network call. Does not do error handling on your response. :rtype: ~azure.core.rest.HttpResponse """ request_copy = deepcopy(request) request_copy.url = self._client.format_url(request_copy.url) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore def close(self) -> None: self._client.close() def __enter__(self) -> "AppPlatformManagementClient": self._client.__enter__() return self def __exit__(self, *exc_details: Any) -> None: self._client.__exit__(*exc_details)
class AppPlatformManagementClient: '''REST API for Azure Spring Apps. :ivar services: ServicesOperations operations :vartype services: azure.mgmt.appplatform.v2023_12_01.operations.ServicesOperations :ivar apms: ApmsOperations operations :vartype apms: azure.mgmt.appplatform.v2023_12_01.operations.ApmsOperations :ivar config_servers: ConfigServersOperations operations :vartype config_servers: azure.mgmt.appplatform.v2023_12_01.operations.ConfigServersOperations :ivar configuration_services: ConfigurationServicesOperations operations :vartype configuration_services: azure.mgmt.appplatform.v2023_12_01.operations.ConfigurationServicesOperations :ivar service_registries: ServiceRegistriesOperations operations :vartype service_registries: azure.mgmt.appplatform.v2023_12_01.operations.ServiceRegistriesOperations :ivar application_live_views: ApplicationLiveViewsOperations operations :vartype application_live_views: azure.mgmt.appplatform.v2023_12_01.operations.ApplicationLiveViewsOperations :ivar dev_tool_portals: DevToolPortalsOperations operations :vartype dev_tool_portals: azure.mgmt.appplatform.v2023_12_01.operations.DevToolPortalsOperations :ivar container_registries: ContainerRegistriesOperations operations :vartype container_registries: azure.mgmt.appplatform.v2023_12_01.operations.ContainerRegistriesOperations :ivar build_service: BuildServiceOperations operations :vartype build_service: azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceOperations :ivar buildpack_binding: BuildpackBindingOperations operations :vartype buildpack_binding: azure.mgmt.appplatform.v2023_12_01.operations.BuildpackBindingOperations :ivar build_service_builder: BuildServiceBuilderOperations operations :vartype build_service_builder: azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceBuilderOperations :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations :vartype build_service_agent_pool: azure.mgmt.appplatform.v2023_12_01.operations.BuildServiceAgentPoolOperations :ivar monitoring_settings: MonitoringSettingsOperations operations :vartype monitoring_settings: azure.mgmt.appplatform.v2023_12_01.operations.MonitoringSettingsOperations :ivar apps: AppsOperations operations :vartype apps: azure.mgmt.appplatform.v2023_12_01.operations.AppsOperations :ivar bindings: BindingsOperations operations :vartype bindings: azure.mgmt.appplatform.v2023_12_01.operations.BindingsOperations :ivar storages: StoragesOperations operations :vartype storages: azure.mgmt.appplatform.v2023_12_01.operations.StoragesOperations :ivar certificates: CertificatesOperations operations :vartype certificates: azure.mgmt.appplatform.v2023_12_01.operations.CertificatesOperations :ivar custom_domains: CustomDomainsOperations operations :vartype custom_domains: azure.mgmt.appplatform.v2023_12_01.operations.CustomDomainsOperations :ivar deployments: DeploymentsOperations operations :vartype deployments: azure.mgmt.appplatform.v2023_12_01.operations.DeploymentsOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.appplatform.v2023_12_01.operations.Operations :ivar runtime_versions: RuntimeVersionsOperations operations :vartype runtime_versions: azure.mgmt.appplatform.v2023_12_01.operations.RuntimeVersionsOperations :ivar skus: SkusOperations operations :vartype skus: azure.mgmt.appplatform.v2023_12_01.operations.SkusOperations :ivar gateways: GatewaysOperations operations :vartype gateways: azure.mgmt.appplatform.v2023_12_01.operations.GatewaysOperations :ivar gateway_route_configs: GatewayRouteConfigsOperations operations :vartype gateway_route_configs: azure.mgmt.appplatform.v2023_12_01.operations.GatewayRouteConfigsOperations :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations :vartype gateway_custom_domains: azure.mgmt.appplatform.v2023_12_01.operations.GatewayCustomDomainsOperations :ivar api_portals: ApiPortalsOperations operations :vartype api_portals: azure.mgmt.appplatform.v2023_12_01.operations.ApiPortalsOperations :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations :vartype api_portal_custom_domains: azure.mgmt.appplatform.v2023_12_01.operations.ApiPortalCustomDomainsOperations :ivar application_accelerators: ApplicationAcceleratorsOperations operations :vartype application_accelerators: azure.mgmt.appplatform.v2023_12_01.operations.ApplicationAcceleratorsOperations :ivar customized_accelerators: CustomizedAcceleratorsOperations operations :vartype customized_accelerators: azure.mgmt.appplatform.v2023_12_01.operations.CustomizedAcceleratorsOperations :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations :vartype predefined_accelerators: azure.mgmt.appplatform.v2023_12_01.operations.PredefinedAcceleratorsOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str :keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. ''' def __init__( self, credential: "TokenCredential", subscription_id: str, base_url: str = "https://management.azure.com", **kwargs: Any ) -> None: pass def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: '''Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") <HttpRequest [GET], url: 'https://www.example.org/'> >>> response = client._send_request(request) <HttpResponse: 200 OK> For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request :param request: The network request you want to make. Required. :type request: ~azure.core.rest.HttpRequest :keyword bool stream: Whether the response payload will be streamed. Defaults to False. :return: The response of your network call. Does not do error handling on your response. :rtype: ~azure.core.rest.HttpResponse ''' pass def close(self) -> None: pass def __enter__(self) -> "AppPlatformManagementClient": pass def __exit__(self, *exc_details: Any) -> None: pass
6
2
27
1
24
3
1
0.88
0
37
33
0
5
34
5
5
233
11
119
49
107
105
52
43
46
3
0
1
7
8,319
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/aio/_configuration.py
azext_spring.vendored_sdks.appplatform.aio._configuration.AppPlatformManagementClientConfiguration
class AppPlatformManagementClientConfiguration: """Configuration for AppPlatformManagementClient. Note that all parameters used to create this instance are saved as instance attributes. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str """ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any ) -> None: if credential is None: raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") self.credential = credential self.subscription_id = subscription_id self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'azure-mgmt-appplatform/{}'.format(VERSION)) self.polling_interval = kwargs.get("polling_interval", 30) self._configure(**kwargs) def _configure( self, **kwargs: Any ) -> None: self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) self.authentication_policy = kwargs.get('authentication_policy') if self.credential and not self.authentication_policy: self.authentication_policy = AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
class AppPlatformManagementClientConfiguration: '''Configuration for AppPlatformManagementClient. Note that all parameters used to create this instance are saved as instance attributes. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str ''' def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any ) -> None: pass def _configure( self, **kwargs: Any ) -> None: pass
3
1
16
1
16
0
3
0.25
0
3
0
0
2
13
2
2
45
5
32
24
21
8
24
16
21
3
0
1
5
8,320
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/aio/_app_platform_management_client.py
azext_spring.vendored_sdks.appplatform.aio._app_platform_management_client.AppPlatformManagementClient
class AppPlatformManagementClient(MultiApiClientMixin, _SDKClient): """REST API for Azure Spring Apps. This ready contains multiple API versions, to help you deal with all of the Azure clouds (Azure Stack, Azure Government, Azure China, etc.). By default, it uses the latest API version available on public Azure. For production, you should stick to a particular api-version and/or profile. The profile sets a mapping between an operation group and its API version. The api-version parameter sets the default API version if the operation group is not described in the profile. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param api_version: API version to use if no profile is provided, or if missing in profile. :type api_version: str :param base_url: Service URL :type base_url: str :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ DEFAULT_API_VERSION = '2023-12-01' _PROFILE_TAG = "azure.mgmt.appplatform.AppPlatformManagementClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, }}, _PROFILE_TAG + " latest" ) def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, api_version: Optional[str] = None, base_url: str = "https://management.azure.com", profile: KnownProfiles = KnownProfiles.default, **kwargs: Any ) -> None: if api_version: kwargs.setdefault('api_version', api_version) self._config = AppPlatformManagementClientConfiguration(credential, subscription_id, **kwargs) _policies = kwargs.pop("policies", None) if _policies is None: _policies = [ policies.RequestIdPolicy(**kwargs), self._config.headers_policy, self._config.user_agent_policy, self._config.proxy_policy, policies.ContentDecodePolicy(**kwargs), AsyncARMAutoResourceProviderRegistrationPolicy(), self._config.redirect_policy, self._config.retry_policy, self._config.authentication_policy, self._config.custom_hook_policy, self._config.logging_policy, policies.DistributedTracingPolicy(**kwargs), policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] self._client = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) super(AppPlatformManagementClient, self).__init__( api_version=api_version, profile=profile ) @classmethod def _models_dict(cls, api_version): return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} @classmethod def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2020-07-01: :mod:`v2020_07_01.models<azure.mgmt.appplatform.v2020_07_01.models>` * 2020-11-01-preview: :mod:`v2020_11_01_preview.models<azure.mgmt.appplatform.v2020_11_01_preview.models>` * 2021-06-01-preview: :mod:`v2021_06_01_preview.models<azure.mgmt.appplatform.v2021_06_01_preview.models>` * 2021-09-01-preview: :mod:`v2021_09_01_preview.models<azure.mgmt.appplatform.v2021_09_01_preview.models>` * 2022-01-01-preview: :mod:`v2022_01_01_preview.models<azure.mgmt.appplatform.v2022_01_01_preview.models>` * 2022-03-01-preview: :mod:`v2022_03_01_preview.models<azure.mgmt.appplatform.v2022_03_01_preview.models>` * 2022-04-01: :mod:`v2022_04_01.models<azure.mgmt.appplatform.v2022_04_01.models>` * 2022-05-01-preview: :mod:`v2022_05_01_preview.models<azure.mgmt.appplatform.v2022_05_01_preview.models>` * 2022-09-01-preview: :mod:`v2022_09_01_preview.models<azure.mgmt.appplatform.v2022_09_01_preview.models>` * 2022-11-01-preview: :mod:`v2022_11_01_preview.models<azure.mgmt.appplatform.v2022_11_01_preview.models>` * 2022-12-01: :mod:`v2022_12_01.models<azure.mgmt.appplatform.v2022_12_01.models>` * 2023-01-01-preview: :mod:`v2023_01_01_preview.models<azure.mgmt.appplatform.v2023_01_01_preview.models>` * 2023-03-01-preview: :mod:`v2023_03_01_preview.models<azure.mgmt.appplatform.v2023_03_01_preview.models>` * 2023-05-01-preview: :mod:`v2023_05_01_preview.models<azure.mgmt.appplatform.v2023_05_01_preview.models>` * 2023-07-01-preview: :mod:`v2023_07_01_preview.models<azure.mgmt.appplatform.v2023_07_01_preview.models>` * 2023-09-01-preview: :mod:`v2023_09_01_preview.models<azure.mgmt.appplatform.v2023_09_01_preview.models>` * 2023-11-01-preview: :mod:`v2023_11_01_preview.models<azure.mgmt.appplatform.v2023_11_01_preview.models>` * 2023-12-01: :mod:`v2023_12_01.models<azure.mgmt.appplatform.v2023_12_01.models>` * 2024-01-01-preview: :mod:`v2024_01_01_preview.models<azure.mgmt.appplatform.v2024_01_01_preview.models>` * 2024-05-01-preview: :mod:`v2024_05_01_preview.models<azure.mgmt.appplatform.v2024_05_01_preview.models>` """ if api_version == '2020-07-01': from ..v2020_07_01 import models return models elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview import models return models elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview import models return models elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview import models return models elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview import models return models elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview import models return models elif api_version == '2022-04-01': from ..v2022_04_01 import models return models elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview import models return models elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview import models return models elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview import models return models elif api_version == '2022-12-01': from ..v2022_12_01 import models return models elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview import models return models elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview import models return models elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview import models return models elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview import models return models elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview import models return models elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview import models return models elif api_version == '2023-12-01': from ..v2023_12_01 import models return models elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview import models return models elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview import models return models raise ValueError("API version {} is not available".format(api_version)) @property def api_portal_custom_domains(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2022-03-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2022-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2022-09-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2022-11-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2022-12-01: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-03-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-07-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-09-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-11-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-12-01: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ApiPortalCustomDomainsOperations>` * 2024-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2024-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` """ api_version = self._get_api_version('api_portal_custom_domains') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import ApiPortalCustomDomainsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'api_portal_custom_domains'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def api_portals(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ApiPortalsOperations>` * 2022-03-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ApiPortalsOperations>` * 2022-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ApiPortalsOperations>` * 2022-09-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ApiPortalsOperations>` * 2022-11-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApiPortalsOperations>` * 2022-12-01: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ApiPortalsOperations>` * 2023-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApiPortalsOperations>` * 2023-03-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApiPortalsOperations>` * 2023-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApiPortalsOperations>` * 2023-07-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApiPortalsOperations>` * 2023-09-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApiPortalsOperations>` * 2023-11-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApiPortalsOperations>` * 2023-12-01: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ApiPortalsOperations>` * 2024-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApiPortalsOperations>` * 2024-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ApiPortalsOperations>` """ api_version = self._get_api_version('api_portals') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import ApiPortalsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import ApiPortalsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'api_portals'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def apms(self): """Instance depends on the API version: * 2023-05-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApmsOperations>` * 2023-07-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApmsOperations>` * 2023-09-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApmsOperations>` * 2023-11-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApmsOperations>` * 2023-12-01: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ApmsOperations>` * 2024-01-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApmsOperations>` * 2024-05-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ApmsOperations>` """ api_version = self._get_api_version('apms') if api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import ApmsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import ApmsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import ApmsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import ApmsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import ApmsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import ApmsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import ApmsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'apms'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def application_accelerators(self): """Instance depends on the API version: * 2022-11-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-01-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-03-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-05-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-07-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-09-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-11-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-12-01: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ApplicationAcceleratorsOperations>` * 2024-01-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2024-05-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ApplicationAcceleratorsOperations>` """ api_version = self._get_api_version('application_accelerators') if api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import ApplicationAcceleratorsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import ApplicationAcceleratorsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'application_accelerators'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def application_live_views(self): """Instance depends on the API version: * 2022-11-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-01-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-03-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-05-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-07-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-09-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-11-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-12-01: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ApplicationLiveViewsOperations>` * 2024-01-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2024-05-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ApplicationLiveViewsOperations>` """ api_version = self._get_api_version('application_live_views') if api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import ApplicationLiveViewsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import ApplicationLiveViewsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'application_live_views'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def apps(self): """Instance depends on the API version: * 2020-07-01: :class:`AppsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.AppsOperations>` * 2020-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.AppsOperations>` * 2021-06-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.AppsOperations>` * 2021-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.AppsOperations>` * 2022-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.AppsOperations>` * 2022-03-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.AppsOperations>` * 2022-04-01: :class:`AppsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.AppsOperations>` * 2022-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.AppsOperations>` * 2022-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.AppsOperations>` * 2022-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.AppsOperations>` * 2022-12-01: :class:`AppsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.AppsOperations>` * 2023-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.AppsOperations>` * 2023-03-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.AppsOperations>` * 2023-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.AppsOperations>` * 2023-07-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.AppsOperations>` * 2023-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.AppsOperations>` * 2023-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.AppsOperations>` * 2023-12-01: :class:`AppsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.AppsOperations>` * 2024-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.AppsOperations>` * 2024-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.AppsOperations>` """ api_version = self._get_api_version('apps') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import AppsOperations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import AppsOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import AppsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import AppsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import AppsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import AppsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'apps'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def bindings(self): """Instance depends on the API version: * 2020-07-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.BindingsOperations>` * 2020-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.BindingsOperations>` * 2021-06-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.BindingsOperations>` * 2021-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.BindingsOperations>` * 2022-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BindingsOperations>` * 2022-03-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BindingsOperations>` * 2022-04-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.BindingsOperations>` * 2022-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BindingsOperations>` * 2022-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BindingsOperations>` * 2022-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BindingsOperations>` * 2022-12-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.BindingsOperations>` * 2023-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BindingsOperations>` * 2023-03-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BindingsOperations>` * 2023-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BindingsOperations>` * 2023-07-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BindingsOperations>` * 2023-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BindingsOperations>` * 2023-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BindingsOperations>` * 2023-12-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.BindingsOperations>` * 2024-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BindingsOperations>` * 2024-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.BindingsOperations>` """ api_version = self._get_api_version('bindings') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import BindingsOperations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import BindingsOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import BindingsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import BindingsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import BindingsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import BindingsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'bindings'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def build_service(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildServiceOperations>` * 2022-03-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildServiceOperations>` * 2022-04-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildServiceOperations>` * 2022-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildServiceOperations>` * 2022-09-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildServiceOperations>` * 2022-11-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildServiceOperations>` * 2022-12-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildServiceOperations>` * 2023-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildServiceOperations>` * 2023-03-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildServiceOperations>` * 2023-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildServiceOperations>` * 2023-07-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildServiceOperations>` * 2023-09-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildServiceOperations>` * 2023-11-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildServiceOperations>` * 2023-12-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceOperations>` * 2024-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildServiceOperations>` * 2024-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.BuildServiceOperations>` """ api_version = self._get_api_version('build_service') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import BuildServiceOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import BuildServiceOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'build_service'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def build_service_agent_pool(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2022-03-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2022-04-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildServiceAgentPoolOperations>` * 2022-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2022-09-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2022-11-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2022-12-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildServiceAgentPoolOperations>` * 2023-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-03-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-07-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-09-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-11-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-12-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceAgentPoolOperations>` * 2024-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2024-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.BuildServiceAgentPoolOperations>` """ api_version = self._get_api_version('build_service_agent_pool') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import BuildServiceAgentPoolOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'build_service_agent_pool'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def build_service_builder(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2022-03-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2022-04-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildServiceBuilderOperations>` * 2022-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2022-09-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2022-11-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2022-12-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildServiceBuilderOperations>` * 2023-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-03-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-07-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-09-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-11-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-12-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceBuilderOperations>` * 2024-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2024-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.BuildServiceBuilderOperations>` """ api_version = self._get_api_version('build_service_builder') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import BuildServiceBuilderOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'build_service_builder'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def buildpack_binding(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildpackBindingOperations>` * 2022-03-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildpackBindingOperations>` * 2022-04-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildpackBindingOperations>` * 2022-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildpackBindingOperations>` * 2022-09-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildpackBindingOperations>` * 2022-11-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildpackBindingOperations>` * 2022-12-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildpackBindingOperations>` * 2023-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-03-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-07-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-09-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-11-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-12-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildpackBindingOperations>` * 2024-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildpackBindingOperations>` * 2024-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.BuildpackBindingOperations>` """ api_version = self._get_api_version('buildpack_binding') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import BuildpackBindingOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import BuildpackBindingOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'buildpack_binding'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def certificates(self): """Instance depends on the API version: * 2020-07-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.CertificatesOperations>` * 2020-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.CertificatesOperations>` * 2021-06-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.CertificatesOperations>` * 2021-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.CertificatesOperations>` * 2022-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.CertificatesOperations>` * 2022-03-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.CertificatesOperations>` * 2022-04-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.CertificatesOperations>` * 2022-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.CertificatesOperations>` * 2022-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.CertificatesOperations>` * 2022-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.CertificatesOperations>` * 2022-12-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.CertificatesOperations>` * 2023-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.CertificatesOperations>` * 2023-03-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.CertificatesOperations>` * 2023-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.CertificatesOperations>` * 2023-07-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.CertificatesOperations>` * 2023-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.CertificatesOperations>` * 2023-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.CertificatesOperations>` * 2023-12-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.CertificatesOperations>` * 2024-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.CertificatesOperations>` * 2024-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.CertificatesOperations>` """ api_version = self._get_api_version('certificates') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import CertificatesOperations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import CertificatesOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import CertificatesOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import CertificatesOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import CertificatesOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import CertificatesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'certificates'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def config_servers(self): """Instance depends on the API version: * 2020-07-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.ConfigServersOperations>` * 2020-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.ConfigServersOperations>` * 2021-06-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.ConfigServersOperations>` * 2021-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.ConfigServersOperations>` * 2022-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ConfigServersOperations>` * 2022-03-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ConfigServersOperations>` * 2022-04-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.ConfigServersOperations>` * 2022-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ConfigServersOperations>` * 2022-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ConfigServersOperations>` * 2022-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ConfigServersOperations>` * 2022-12-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ConfigServersOperations>` * 2023-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ConfigServersOperations>` * 2023-03-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ConfigServersOperations>` * 2023-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ConfigServersOperations>` * 2023-07-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ConfigServersOperations>` * 2023-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ConfigServersOperations>` * 2023-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ConfigServersOperations>` * 2023-12-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ConfigServersOperations>` * 2024-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ConfigServersOperations>` * 2024-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ConfigServersOperations>` """ api_version = self._get_api_version('config_servers') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import ConfigServersOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import ConfigServersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'config_servers'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def configuration_services(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ConfigurationServicesOperations>` * 2022-03-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ConfigurationServicesOperations>` * 2022-04-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.ConfigurationServicesOperations>` * 2022-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ConfigurationServicesOperations>` * 2022-09-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ConfigurationServicesOperations>` * 2022-11-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ConfigurationServicesOperations>` * 2022-12-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ConfigurationServicesOperations>` * 2023-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-03-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-07-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-09-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-11-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-12-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ConfigurationServicesOperations>` * 2024-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ConfigurationServicesOperations>` * 2024-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ConfigurationServicesOperations>` """ api_version = self._get_api_version('configuration_services') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import ConfigurationServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'configuration_services'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def container_registries(self): """Instance depends on the API version: * 2023-03-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ContainerRegistriesOperations>` * 2023-05-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ContainerRegistriesOperations>` * 2023-07-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ContainerRegistriesOperations>` * 2023-09-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ContainerRegistriesOperations>` * 2023-11-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ContainerRegistriesOperations>` * 2023-12-01: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ContainerRegistriesOperations>` * 2024-01-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ContainerRegistriesOperations>` * 2024-05-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ContainerRegistriesOperations>` """ api_version = self._get_api_version('container_registries') if api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import ContainerRegistriesOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import ContainerRegistriesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'container_registries'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def custom_domains(self): """Instance depends on the API version: * 2020-07-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.CustomDomainsOperations>` * 2020-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.CustomDomainsOperations>` * 2021-06-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.CustomDomainsOperations>` * 2021-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.CustomDomainsOperations>` * 2022-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.CustomDomainsOperations>` * 2022-03-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.CustomDomainsOperations>` * 2022-04-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.CustomDomainsOperations>` * 2022-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.CustomDomainsOperations>` * 2022-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.CustomDomainsOperations>` * 2022-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.CustomDomainsOperations>` * 2022-12-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.CustomDomainsOperations>` * 2023-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.CustomDomainsOperations>` * 2023-03-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.CustomDomainsOperations>` * 2023-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.CustomDomainsOperations>` * 2023-07-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.CustomDomainsOperations>` * 2023-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.CustomDomainsOperations>` * 2023-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.CustomDomainsOperations>` * 2023-12-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.CustomDomainsOperations>` * 2024-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.CustomDomainsOperations>` * 2024-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.CustomDomainsOperations>` """ api_version = self._get_api_version('custom_domains') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import CustomDomainsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import CustomDomainsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'custom_domains'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def customized_accelerators(self): """Instance depends on the API version: * 2022-11-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-01-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-03-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-05-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-07-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-09-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-11-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-12-01: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.CustomizedAcceleratorsOperations>` * 2024-01-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2024-05-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.CustomizedAcceleratorsOperations>` """ api_version = self._get_api_version('customized_accelerators') if api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import CustomizedAcceleratorsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import CustomizedAcceleratorsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'customized_accelerators'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def deployments(self): """Instance depends on the API version: * 2020-07-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.DeploymentsOperations>` * 2020-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.DeploymentsOperations>` * 2021-06-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.DeploymentsOperations>` * 2021-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.DeploymentsOperations>` * 2022-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.DeploymentsOperations>` * 2022-03-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.DeploymentsOperations>` * 2022-04-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.DeploymentsOperations>` * 2022-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.DeploymentsOperations>` * 2022-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.DeploymentsOperations>` * 2022-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.DeploymentsOperations>` * 2022-12-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.DeploymentsOperations>` * 2023-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.DeploymentsOperations>` * 2023-03-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.DeploymentsOperations>` * 2023-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.DeploymentsOperations>` * 2023-07-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.DeploymentsOperations>` * 2023-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.DeploymentsOperations>` * 2023-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.DeploymentsOperations>` * 2023-12-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.DeploymentsOperations>` * 2024-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.DeploymentsOperations>` * 2024-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.DeploymentsOperations>` """ api_version = self._get_api_version('deployments') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import DeploymentsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import DeploymentsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'deployments'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def dev_tool_portals(self): """Instance depends on the API version: * 2022-11-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-01-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-03-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-05-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-07-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-09-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-11-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-12-01: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.DevToolPortalsOperations>` * 2024-01-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.DevToolPortalsOperations>` * 2024-05-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.DevToolPortalsOperations>` """ api_version = self._get_api_version('dev_tool_portals') if api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import DevToolPortalsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import DevToolPortalsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import DevToolPortalsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import DevToolPortalsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'dev_tool_portals'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def eureka_servers(self): """Instance depends on the API version: * 2023-05-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.EurekaServersOperations>` * 2023-07-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.EurekaServersOperations>` * 2023-09-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.EurekaServersOperations>` * 2023-11-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.EurekaServersOperations>` * 2024-01-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.EurekaServersOperations>` * 2024-05-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.EurekaServersOperations>` """ api_version = self._get_api_version('eureka_servers') if api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import EurekaServersOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import EurekaServersOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import EurekaServersOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import EurekaServersOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import EurekaServersOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import EurekaServersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'eureka_servers'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def gateway_custom_domains(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2022-03-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2022-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2022-09-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2022-11-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2022-12-01: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.GatewayCustomDomainsOperations>` * 2023-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-03-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-07-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-09-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-11-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-12-01: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewayCustomDomainsOperations>` * 2024-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2024-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.GatewayCustomDomainsOperations>` """ api_version = self._get_api_version('gateway_custom_domains') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import GatewayCustomDomainsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'gateway_custom_domains'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def gateway_route_configs(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2022-03-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2022-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2022-09-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2022-11-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2022-12-01: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.GatewayRouteConfigsOperations>` * 2023-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-03-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-07-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-09-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-11-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-12-01: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewayRouteConfigsOperations>` * 2024-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2024-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.GatewayRouteConfigsOperations>` """ api_version = self._get_api_version('gateway_route_configs') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import GatewayRouteConfigsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'gateway_route_configs'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def gateways(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.GatewaysOperations>` * 2022-03-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.GatewaysOperations>` * 2022-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.GatewaysOperations>` * 2022-09-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.GatewaysOperations>` * 2022-11-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.GatewaysOperations>` * 2022-12-01: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.GatewaysOperations>` * 2023-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.GatewaysOperations>` * 2023-03-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.GatewaysOperations>` * 2023-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.GatewaysOperations>` * 2023-07-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.GatewaysOperations>` * 2023-09-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.GatewaysOperations>` * 2023-11-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.GatewaysOperations>` * 2023-12-01: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewaysOperations>` * 2024-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.GatewaysOperations>` * 2024-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.GatewaysOperations>` """ api_version = self._get_api_version('gateways') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import GatewaysOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import GatewaysOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import GatewaysOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import GatewaysOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'gateways'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def job(self): """Instance depends on the API version: * 2024-05-01-preview: :class:`JobOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.JobOperations>` """ api_version = self._get_api_version('job') if api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import JobOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'job'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def job_execution(self): """Instance depends on the API version: * 2024-05-01-preview: :class:`JobExecutionOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.JobExecutionOperations>` """ api_version = self._get_api_version('job_execution') if api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import JobExecutionOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'job_execution'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def job_executions(self): """Instance depends on the API version: * 2024-05-01-preview: :class:`JobExecutionsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.JobExecutionsOperations>` """ api_version = self._get_api_version('job_executions') if api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import JobExecutionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'job_executions'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def jobs(self): """Instance depends on the API version: * 2024-05-01-preview: :class:`JobsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.JobsOperations>` """ api_version = self._get_api_version('jobs') if api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import JobsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'jobs'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def monitoring_settings(self): """Instance depends on the API version: * 2020-07-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.MonitoringSettingsOperations>` * 2020-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.MonitoringSettingsOperations>` * 2021-06-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.MonitoringSettingsOperations>` * 2021-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-03-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-04-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.MonitoringSettingsOperations>` * 2022-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-12-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.MonitoringSettingsOperations>` * 2023-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-03-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-07-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-12-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.MonitoringSettingsOperations>` * 2024-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.MonitoringSettingsOperations>` * 2024-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.MonitoringSettingsOperations>` """ api_version = self._get_api_version('monitoring_settings') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import MonitoringSettingsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'monitoring_settings'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def operations(self): """Instance depends on the API version: * 2020-07-01: :class:`Operations<azure.mgmt.appplatform.v2020_07_01.aio.operations.Operations>` * 2020-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.Operations>` * 2021-06-01-preview: :class:`Operations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.Operations>` * 2021-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.Operations>` * 2022-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.Operations>` * 2022-03-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.Operations>` * 2022-04-01: :class:`Operations<azure.mgmt.appplatform.v2022_04_01.aio.operations.Operations>` * 2022-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.Operations>` * 2022-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.Operations>` * 2022-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.Operations>` * 2022-12-01: :class:`Operations<azure.mgmt.appplatform.v2022_12_01.aio.operations.Operations>` * 2023-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.Operations>` * 2023-03-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.Operations>` * 2023-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.Operations>` * 2023-07-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.Operations>` * 2023-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.Operations>` * 2023-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.Operations>` * 2023-12-01: :class:`Operations<azure.mgmt.appplatform.v2023_12_01.aio.operations.Operations>` * 2024-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.Operations>` * 2024-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.Operations>` """ api_version = self._get_api_version('operations') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import Operations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import Operations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import Operations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import Operations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import Operations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import Operations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import Operations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import Operations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import Operations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import Operations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import Operations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import Operations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import Operations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import Operations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import Operations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import Operations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import Operations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import Operations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import Operations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import Operations as OperationClass else: raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def predefined_accelerators(self): """Instance depends on the API version: * 2022-11-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-01-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-03-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-05-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-07-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-09-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-11-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-12-01: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.PredefinedAcceleratorsOperations>` * 2024-01-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2024-05-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.PredefinedAcceleratorsOperations>` """ api_version = self._get_api_version('predefined_accelerators') if api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import PredefinedAcceleratorsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import PredefinedAcceleratorsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'predefined_accelerators'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def runtime_versions(self): """Instance depends on the API version: * 2020-07-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.RuntimeVersionsOperations>` * 2020-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.RuntimeVersionsOperations>` * 2021-06-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.RuntimeVersionsOperations>` * 2021-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-03-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-04-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.RuntimeVersionsOperations>` * 2022-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-12-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.RuntimeVersionsOperations>` * 2023-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-03-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-07-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-12-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.RuntimeVersionsOperations>` * 2024-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.RuntimeVersionsOperations>` * 2024-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.RuntimeVersionsOperations>` """ api_version = self._get_api_version('runtime_versions') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import RuntimeVersionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'runtime_versions'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def service_registries(self): """Instance depends on the API version: * 2022-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ServiceRegistriesOperations>` * 2022-03-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ServiceRegistriesOperations>` * 2022-04-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.ServiceRegistriesOperations>` * 2022-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ServiceRegistriesOperations>` * 2022-09-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ServiceRegistriesOperations>` * 2022-11-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ServiceRegistriesOperations>` * 2022-12-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ServiceRegistriesOperations>` * 2023-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-03-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-07-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-09-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-11-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-12-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ServiceRegistriesOperations>` * 2024-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ServiceRegistriesOperations>` * 2024-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ServiceRegistriesOperations>` """ api_version = self._get_api_version('service_registries') if api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import ServiceRegistriesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'service_registries'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def services(self): """Instance depends on the API version: * 2020-07-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.ServicesOperations>` * 2020-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.ServicesOperations>` * 2021-06-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.ServicesOperations>` * 2021-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.ServicesOperations>` * 2022-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ServicesOperations>` * 2022-03-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ServicesOperations>` * 2022-04-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.ServicesOperations>` * 2022-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ServicesOperations>` * 2022-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ServicesOperations>` * 2022-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ServicesOperations>` * 2022-12-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ServicesOperations>` * 2023-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ServicesOperations>` * 2023-03-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ServicesOperations>` * 2023-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ServicesOperations>` * 2023-07-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ServicesOperations>` * 2023-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ServicesOperations>` * 2023-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ServicesOperations>` * 2023-12-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ServicesOperations>` * 2024-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ServicesOperations>` * 2024-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ServicesOperations>` """ api_version = self._get_api_version('services') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import ServicesOperations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import ServicesOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import ServicesOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import ServicesOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import ServicesOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import ServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'services'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def skus(self): """Instance depends on the API version: * 2020-07-01: :class:`SkusOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.SkusOperations>` * 2020-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.SkusOperations>` * 2021-06-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.SkusOperations>` * 2021-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.SkusOperations>` * 2022-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.SkusOperations>` * 2022-03-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.SkusOperations>` * 2022-04-01: :class:`SkusOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.SkusOperations>` * 2022-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.SkusOperations>` * 2022-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.SkusOperations>` * 2022-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.SkusOperations>` * 2022-12-01: :class:`SkusOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.SkusOperations>` * 2023-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.SkusOperations>` * 2023-03-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.SkusOperations>` * 2023-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.SkusOperations>` * 2023-07-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.SkusOperations>` * 2023-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.SkusOperations>` * 2023-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.SkusOperations>` * 2023-12-01: :class:`SkusOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.SkusOperations>` * 2024-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.SkusOperations>` * 2024-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.SkusOperations>` """ api_version = self._get_api_version('skus') if api_version == '2020-07-01': from ..v2020_07_01.aio.operations import SkusOperations as OperationClass elif api_version == '2020-11-01-preview': from ..v2020_11_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2021-06-01-preview': from ..v2021_06_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import SkusOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import SkusOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import SkusOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import SkusOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import SkusOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'skus'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def storages(self): """Instance depends on the API version: * 2021-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.StoragesOperations>` * 2022-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.StoragesOperations>` * 2022-03-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.StoragesOperations>` * 2022-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.StoragesOperations>` * 2022-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.StoragesOperations>` * 2022-11-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.StoragesOperations>` * 2022-12-01: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.StoragesOperations>` * 2023-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.StoragesOperations>` * 2023-03-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.StoragesOperations>` * 2023-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.StoragesOperations>` * 2023-07-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.StoragesOperations>` * 2023-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.StoragesOperations>` * 2023-11-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.StoragesOperations>` * 2023-12-01: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.StoragesOperations>` * 2024-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.StoragesOperations>` * 2024-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.StoragesOperations>` """ api_version = self._get_api_version('storages') if api_version == '2021-09-01-preview': from ..v2021_09_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2022-01-01-preview': from ..v2022_01_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2022-03-01-preview': from ..v2022_03_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2022-05-01-preview': from ..v2022_05_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2022-09-01-preview': from ..v2022_09_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2022-11-01-preview': from ..v2022_11_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2022-12-01': from ..v2022_12_01.aio.operations import StoragesOperations as OperationClass elif api_version == '2023-01-01-preview': from ..v2023_01_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2023-03-01-preview': from ..v2023_03_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2023-05-01-preview': from ..v2023_05_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2023-07-01-preview': from ..v2023_07_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2023-09-01-preview': from ..v2023_09_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2023-11-01-preview': from ..v2023_11_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2023-12-01': from ..v2023_12_01.aio.operations import StoragesOperations as OperationClass elif api_version == '2024-01-01-preview': from ..v2024_01_01_preview.aio.operations import StoragesOperations as OperationClass elif api_version == '2024-05-01-preview': from ..v2024_05_01_preview.aio.operations import StoragesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'storages'".format(api_version)) self._config.api_version = api_version return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) async def close(self): await self._client.close() async def __aenter__(self): await self._client.__aenter__() return self async def __aexit__(self, *exc_details): await self._client.__aexit__(*exc_details)
class AppPlatformManagementClient(MultiApiClientMixin, _SDKClient): '''REST API for Azure Spring Apps. This ready contains multiple API versions, to help you deal with all of the Azure clouds (Azure Stack, Azure Government, Azure China, etc.). By default, it uses the latest API version available on public Azure. For production, you should stick to a particular api-version and/or profile. The profile sets a mapping between an operation group and its API version. The api-version parameter sets the default API version if the operation group is not described in the profile. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param api_version: API version to use if no profile is provided, or if missing in profile. :type api_version: str :param base_url: Service URL :type base_url: str :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. ''' def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, api_version: Optional[str] = None, base_url: str = "https://management.azure.com", profile: KnownProfiles = KnownProfiles.default, **kwargs: Any ) -> None: pass @classmethod def _models_dict(cls, api_version): pass @classmethod def models(cls, api_version=DEFAULT_API_VERSION): '''Module depends on the API version: * 2020-07-01: :mod:`v2020_07_01.models<azure.mgmt.appplatform.v2020_07_01.models>` * 2020-11-01-preview: :mod:`v2020_11_01_preview.models<azure.mgmt.appplatform.v2020_11_01_preview.models>` * 2021-06-01-preview: :mod:`v2021_06_01_preview.models<azure.mgmt.appplatform.v2021_06_01_preview.models>` * 2021-09-01-preview: :mod:`v2021_09_01_preview.models<azure.mgmt.appplatform.v2021_09_01_preview.models>` * 2022-01-01-preview: :mod:`v2022_01_01_preview.models<azure.mgmt.appplatform.v2022_01_01_preview.models>` * 2022-03-01-preview: :mod:`v2022_03_01_preview.models<azure.mgmt.appplatform.v2022_03_01_preview.models>` * 2022-04-01: :mod:`v2022_04_01.models<azure.mgmt.appplatform.v2022_04_01.models>` * 2022-05-01-preview: :mod:`v2022_05_01_preview.models<azure.mgmt.appplatform.v2022_05_01_preview.models>` * 2022-09-01-preview: :mod:`v2022_09_01_preview.models<azure.mgmt.appplatform.v2022_09_01_preview.models>` * 2022-11-01-preview: :mod:`v2022_11_01_preview.models<azure.mgmt.appplatform.v2022_11_01_preview.models>` * 2022-12-01: :mod:`v2022_12_01.models<azure.mgmt.appplatform.v2022_12_01.models>` * 2023-01-01-preview: :mod:`v2023_01_01_preview.models<azure.mgmt.appplatform.v2023_01_01_preview.models>` * 2023-03-01-preview: :mod:`v2023_03_01_preview.models<azure.mgmt.appplatform.v2023_03_01_preview.models>` * 2023-05-01-preview: :mod:`v2023_05_01_preview.models<azure.mgmt.appplatform.v2023_05_01_preview.models>` * 2023-07-01-preview: :mod:`v2023_07_01_preview.models<azure.mgmt.appplatform.v2023_07_01_preview.models>` * 2023-09-01-preview: :mod:`v2023_09_01_preview.models<azure.mgmt.appplatform.v2023_09_01_preview.models>` * 2023-11-01-preview: :mod:`v2023_11_01_preview.models<azure.mgmt.appplatform.v2023_11_01_preview.models>` * 2023-12-01: :mod:`v2023_12_01.models<azure.mgmt.appplatform.v2023_12_01.models>` * 2024-01-01-preview: :mod:`v2024_01_01_preview.models<azure.mgmt.appplatform.v2024_01_01_preview.models>` * 2024-05-01-preview: :mod:`v2024_05_01_preview.models<azure.mgmt.appplatform.v2024_05_01_preview.models>` ''' pass @property def api_portal_custom_domains(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2022-03-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2022-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2022-09-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2022-11-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2022-12-01: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-03-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-07-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-09-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-11-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2023-12-01: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ApiPortalCustomDomainsOperations>` * 2024-01-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` * 2024-05-01-preview: :class:`ApiPortalCustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ApiPortalCustomDomainsOperations>` ''' pass @property def api_portals(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ApiPortalsOperations>` * 2022-03-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ApiPortalsOperations>` * 2022-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ApiPortalsOperations>` * 2022-09-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ApiPortalsOperations>` * 2022-11-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApiPortalsOperations>` * 2022-12-01: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ApiPortalsOperations>` * 2023-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApiPortalsOperations>` * 2023-03-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApiPortalsOperations>` * 2023-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApiPortalsOperations>` * 2023-07-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApiPortalsOperations>` * 2023-09-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApiPortalsOperations>` * 2023-11-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApiPortalsOperations>` * 2023-12-01: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ApiPortalsOperations>` * 2024-01-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApiPortalsOperations>` * 2024-05-01-preview: :class:`ApiPortalsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ApiPortalsOperations>` ''' pass @property def apms(self): '''Instance depends on the API version: * 2023-05-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApmsOperations>` * 2023-07-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApmsOperations>` * 2023-09-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApmsOperations>` * 2023-11-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApmsOperations>` * 2023-12-01: :class:`ApmsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ApmsOperations>` * 2024-01-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApmsOperations>` * 2024-05-01-preview: :class:`ApmsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ApmsOperations>` ''' pass @property def application_accelerators(self): '''Instance depends on the API version: * 2022-11-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-01-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-03-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-05-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-07-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-09-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-11-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2023-12-01: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ApplicationAcceleratorsOperations>` * 2024-01-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApplicationAcceleratorsOperations>` * 2024-05-01-preview: :class:`ApplicationAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ApplicationAcceleratorsOperations>` ''' pass @property def application_live_views(self): '''Instance depends on the API version: * 2022-11-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-01-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-03-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-05-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-07-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-09-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-11-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2023-12-01: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ApplicationLiveViewsOperations>` * 2024-01-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApplicationLiveViewsOperations>` * 2024-05-01-preview: :class:`ApplicationLiveViewsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ApplicationLiveViewsOperations>` ''' pass @property def apps(self): '''Instance depends on the API version: * 2020-07-01: :class:`AppsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.AppsOperations>` * 2020-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.AppsOperations>` * 2021-06-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.AppsOperations>` * 2021-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.AppsOperations>` * 2022-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.AppsOperations>` * 2022-03-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.AppsOperations>` * 2022-04-01: :class:`AppsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.AppsOperations>` * 2022-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.AppsOperations>` * 2022-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.AppsOperations>` * 2022-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.AppsOperations>` * 2022-12-01: :class:`AppsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.AppsOperations>` * 2023-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.AppsOperations>` * 2023-03-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.AppsOperations>` * 2023-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.AppsOperations>` * 2023-07-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.AppsOperations>` * 2023-09-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.AppsOperations>` * 2023-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.AppsOperations>` * 2023-12-01: :class:`AppsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.AppsOperations>` * 2024-01-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.AppsOperations>` * 2024-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.AppsOperations>` ''' pass @property def bindings(self): '''Instance depends on the API version: * 2020-07-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.BindingsOperations>` * 2020-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.BindingsOperations>` * 2021-06-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.BindingsOperations>` * 2021-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.BindingsOperations>` * 2022-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BindingsOperations>` * 2022-03-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BindingsOperations>` * 2022-04-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.BindingsOperations>` * 2022-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BindingsOperations>` * 2022-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BindingsOperations>` * 2022-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BindingsOperations>` * 2022-12-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.BindingsOperations>` * 2023-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BindingsOperations>` * 2023-03-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BindingsOperations>` * 2023-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BindingsOperations>` * 2023-07-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BindingsOperations>` * 2023-09-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BindingsOperations>` * 2023-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BindingsOperations>` * 2023-12-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.BindingsOperations>` * 2024-01-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BindingsOperations>` * 2024-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.BindingsOperations>` ''' pass @property def build_service(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildServiceOperations>` * 2022-03-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildServiceOperations>` * 2022-04-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildServiceOperations>` * 2022-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildServiceOperations>` * 2022-09-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildServiceOperations>` * 2022-11-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildServiceOperations>` * 2022-12-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildServiceOperations>` * 2023-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildServiceOperations>` * 2023-03-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildServiceOperations>` * 2023-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildServiceOperations>` * 2023-07-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildServiceOperations>` * 2023-09-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildServiceOperations>` * 2023-11-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildServiceOperations>` * 2023-12-01: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceOperations>` * 2024-01-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildServiceOperations>` * 2024-05-01-preview: :class:`BuildServiceOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.BuildServiceOperations>` ''' pass @property def build_service_agent_pool(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2022-03-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2022-04-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildServiceAgentPoolOperations>` * 2022-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2022-09-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2022-11-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2022-12-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildServiceAgentPoolOperations>` * 2023-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-03-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-07-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-09-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-11-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2023-12-01: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceAgentPoolOperations>` * 2024-01-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildServiceAgentPoolOperations>` * 2024-05-01-preview: :class:`BuildServiceAgentPoolOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.BuildServiceAgentPoolOperations>` ''' pass @property def build_service_builder(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2022-03-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2022-04-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildServiceBuilderOperations>` * 2022-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2022-09-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2022-11-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2022-12-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildServiceBuilderOperations>` * 2023-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-03-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-07-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-09-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-11-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2023-12-01: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildServiceBuilderOperations>` * 2024-01-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildServiceBuilderOperations>` * 2024-05-01-preview: :class:`BuildServiceBuilderOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.BuildServiceBuilderOperations>` ''' pass @property def buildpack_binding(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildpackBindingOperations>` * 2022-03-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildpackBindingOperations>` * 2022-04-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildpackBindingOperations>` * 2022-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildpackBindingOperations>` * 2022-09-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildpackBindingOperations>` * 2022-11-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildpackBindingOperations>` * 2022-12-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildpackBindingOperations>` * 2023-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-03-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-07-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-09-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-11-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildpackBindingOperations>` * 2023-12-01: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.BuildpackBindingOperations>` * 2024-01-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildpackBindingOperations>` * 2024-05-01-preview: :class:`BuildpackBindingOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.BuildpackBindingOperations>` ''' pass @property def certificates(self): '''Instance depends on the API version: * 2020-07-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.CertificatesOperations>` * 2020-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.CertificatesOperations>` * 2021-06-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.CertificatesOperations>` * 2021-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.CertificatesOperations>` * 2022-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.CertificatesOperations>` * 2022-03-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.CertificatesOperations>` * 2022-04-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.CertificatesOperations>` * 2022-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.CertificatesOperations>` * 2022-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.CertificatesOperations>` * 2022-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.CertificatesOperations>` * 2022-12-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.CertificatesOperations>` * 2023-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.CertificatesOperations>` * 2023-03-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.CertificatesOperations>` * 2023-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.CertificatesOperations>` * 2023-07-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.CertificatesOperations>` * 2023-09-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.CertificatesOperations>` * 2023-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.CertificatesOperations>` * 2023-12-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.CertificatesOperations>` * 2024-01-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.CertificatesOperations>` * 2024-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.CertificatesOperations>` ''' pass @property def config_servers(self): '''Instance depends on the API version: * 2020-07-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.ConfigServersOperations>` * 2020-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.ConfigServersOperations>` * 2021-06-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.ConfigServersOperations>` * 2021-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.ConfigServersOperations>` * 2022-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ConfigServersOperations>` * 2022-03-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ConfigServersOperations>` * 2022-04-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.ConfigServersOperations>` * 2022-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ConfigServersOperations>` * 2022-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ConfigServersOperations>` * 2022-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ConfigServersOperations>` * 2022-12-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ConfigServersOperations>` * 2023-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ConfigServersOperations>` * 2023-03-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ConfigServersOperations>` * 2023-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ConfigServersOperations>` * 2023-07-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ConfigServersOperations>` * 2023-09-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ConfigServersOperations>` * 2023-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ConfigServersOperations>` * 2023-12-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ConfigServersOperations>` * 2024-01-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ConfigServersOperations>` * 2024-05-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ConfigServersOperations>` ''' pass @property def configuration_services(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ConfigurationServicesOperations>` * 2022-03-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ConfigurationServicesOperations>` * 2022-04-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.ConfigurationServicesOperations>` * 2022-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ConfigurationServicesOperations>` * 2022-09-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ConfigurationServicesOperations>` * 2022-11-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ConfigurationServicesOperations>` * 2022-12-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ConfigurationServicesOperations>` * 2023-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-03-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-07-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-09-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-11-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ConfigurationServicesOperations>` * 2023-12-01: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ConfigurationServicesOperations>` * 2024-01-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ConfigurationServicesOperations>` * 2024-05-01-preview: :class:`ConfigurationServicesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ConfigurationServicesOperations>` ''' pass @property def container_registries(self): '''Instance depends on the API version: * 2023-03-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ContainerRegistriesOperations>` * 2023-05-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ContainerRegistriesOperations>` * 2023-07-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ContainerRegistriesOperations>` * 2023-09-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ContainerRegistriesOperations>` * 2023-11-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ContainerRegistriesOperations>` * 2023-12-01: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ContainerRegistriesOperations>` * 2024-01-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ContainerRegistriesOperations>` * 2024-05-01-preview: :class:`ContainerRegistriesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ContainerRegistriesOperations>` ''' pass @property def custom_domains(self): '''Instance depends on the API version: * 2020-07-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.CustomDomainsOperations>` * 2020-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.CustomDomainsOperations>` * 2021-06-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.CustomDomainsOperations>` * 2021-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.CustomDomainsOperations>` * 2022-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.CustomDomainsOperations>` * 2022-03-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.CustomDomainsOperations>` * 2022-04-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.CustomDomainsOperations>` * 2022-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.CustomDomainsOperations>` * 2022-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.CustomDomainsOperations>` * 2022-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.CustomDomainsOperations>` * 2022-12-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.CustomDomainsOperations>` * 2023-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.CustomDomainsOperations>` * 2023-03-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.CustomDomainsOperations>` * 2023-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.CustomDomainsOperations>` * 2023-07-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.CustomDomainsOperations>` * 2023-09-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.CustomDomainsOperations>` * 2023-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.CustomDomainsOperations>` * 2023-12-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.CustomDomainsOperations>` * 2024-01-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.CustomDomainsOperations>` * 2024-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.CustomDomainsOperations>` ''' pass @property def customized_accelerators(self): '''Instance depends on the API version: * 2022-11-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-01-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-03-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-05-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-07-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-09-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-11-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2023-12-01: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.CustomizedAcceleratorsOperations>` * 2024-01-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.CustomizedAcceleratorsOperations>` * 2024-05-01-preview: :class:`CustomizedAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.CustomizedAcceleratorsOperations>` ''' pass @property def deployments(self): '''Instance depends on the API version: * 2020-07-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.DeploymentsOperations>` * 2020-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.DeploymentsOperations>` * 2021-06-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.DeploymentsOperations>` * 2021-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.DeploymentsOperations>` * 2022-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.DeploymentsOperations>` * 2022-03-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.DeploymentsOperations>` * 2022-04-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.DeploymentsOperations>` * 2022-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.DeploymentsOperations>` * 2022-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.DeploymentsOperations>` * 2022-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.DeploymentsOperations>` * 2022-12-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.DeploymentsOperations>` * 2023-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.DeploymentsOperations>` * 2023-03-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.DeploymentsOperations>` * 2023-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.DeploymentsOperations>` * 2023-07-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.DeploymentsOperations>` * 2023-09-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.DeploymentsOperations>` * 2023-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.DeploymentsOperations>` * 2023-12-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.DeploymentsOperations>` * 2024-01-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.DeploymentsOperations>` * 2024-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.DeploymentsOperations>` ''' pass @property def dev_tool_portals(self): '''Instance depends on the API version: * 2022-11-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-01-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-03-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-05-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-07-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-09-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-11-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.DevToolPortalsOperations>` * 2023-12-01: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.DevToolPortalsOperations>` * 2024-01-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.DevToolPortalsOperations>` * 2024-05-01-preview: :class:`DevToolPortalsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.DevToolPortalsOperations>` ''' pass @property def eureka_servers(self): '''Instance depends on the API version: * 2023-05-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.EurekaServersOperations>` * 2023-07-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.EurekaServersOperations>` * 2023-09-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.EurekaServersOperations>` * 2023-11-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.EurekaServersOperations>` * 2024-01-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.EurekaServersOperations>` * 2024-05-01-preview: :class:`EurekaServersOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.EurekaServersOperations>` ''' pass @property def gateway_custom_domains(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2022-03-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2022-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2022-09-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2022-11-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2022-12-01: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.GatewayCustomDomainsOperations>` * 2023-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-03-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-07-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-09-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-11-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2023-12-01: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewayCustomDomainsOperations>` * 2024-01-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.GatewayCustomDomainsOperations>` * 2024-05-01-preview: :class:`GatewayCustomDomainsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.GatewayCustomDomainsOperations>` ''' pass @property def gateway_route_configs(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2022-03-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2022-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2022-09-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2022-11-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2022-12-01: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.GatewayRouteConfigsOperations>` * 2023-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-03-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-07-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-09-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-11-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2023-12-01: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewayRouteConfigsOperations>` * 2024-01-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.GatewayRouteConfigsOperations>` * 2024-05-01-preview: :class:`GatewayRouteConfigsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.GatewayRouteConfigsOperations>` ''' pass @property def gateways(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.GatewaysOperations>` * 2022-03-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.GatewaysOperations>` * 2022-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.GatewaysOperations>` * 2022-09-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.GatewaysOperations>` * 2022-11-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.GatewaysOperations>` * 2022-12-01: :class:`GatewaysOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.GatewaysOperations>` * 2023-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.GatewaysOperations>` * 2023-03-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.GatewaysOperations>` * 2023-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.GatewaysOperations>` * 2023-07-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.GatewaysOperations>` * 2023-09-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.GatewaysOperations>` * 2023-11-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.GatewaysOperations>` * 2023-12-01: :class:`GatewaysOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.GatewaysOperations>` * 2024-01-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.GatewaysOperations>` * 2024-05-01-preview: :class:`GatewaysOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.GatewaysOperations>` ''' pass @property def job(self): '''Instance depends on the API version: * 2024-05-01-preview: :class:`JobOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.JobOperations>` ''' pass @property def job_execution(self): '''Instance depends on the API version: * 2024-05-01-preview: :class:`JobExecutionOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.JobExecutionOperations>` ''' pass @property def job_executions(self): '''Instance depends on the API version: * 2024-05-01-preview: :class:`JobExecutionsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.JobExecutionsOperations>` ''' pass @property def jobs(self): '''Instance depends on the API version: * 2024-05-01-preview: :class:`JobsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.JobsOperations>` ''' pass @property def monitoring_settings(self): '''Instance depends on the API version: * 2020-07-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.MonitoringSettingsOperations>` * 2020-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.MonitoringSettingsOperations>` * 2021-06-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.MonitoringSettingsOperations>` * 2021-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-03-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-04-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.MonitoringSettingsOperations>` * 2022-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.MonitoringSettingsOperations>` * 2022-12-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.MonitoringSettingsOperations>` * 2023-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-03-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-07-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-09-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.MonitoringSettingsOperations>` * 2023-12-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.MonitoringSettingsOperations>` * 2024-01-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.MonitoringSettingsOperations>` * 2024-05-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.MonitoringSettingsOperations>` ''' pass @property def operations(self): '''Instance depends on the API version: * 2020-07-01: :class:`Operations<azure.mgmt.appplatform.v2020_07_01.aio.operations.Operations>` * 2020-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.Operations>` * 2021-06-01-preview: :class:`Operations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.Operations>` * 2021-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.Operations>` * 2022-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.Operations>` * 2022-03-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.Operations>` * 2022-04-01: :class:`Operations<azure.mgmt.appplatform.v2022_04_01.aio.operations.Operations>` * 2022-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.Operations>` * 2022-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.Operations>` * 2022-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.Operations>` * 2022-12-01: :class:`Operations<azure.mgmt.appplatform.v2022_12_01.aio.operations.Operations>` * 2023-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.Operations>` * 2023-03-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.Operations>` * 2023-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.Operations>` * 2023-07-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.Operations>` * 2023-09-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.Operations>` * 2023-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.Operations>` * 2023-12-01: :class:`Operations<azure.mgmt.appplatform.v2023_12_01.aio.operations.Operations>` * 2024-01-01-preview: :class:`Operations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.Operations>` * 2024-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.Operations>` ''' pass @property def predefined_accelerators(self): '''Instance depends on the API version: * 2022-11-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-01-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-03-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-05-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-07-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-09-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-11-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2023-12-01: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.PredefinedAcceleratorsOperations>` * 2024-01-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.PredefinedAcceleratorsOperations>` * 2024-05-01-preview: :class:`PredefinedAcceleratorsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.PredefinedAcceleratorsOperations>` ''' pass @property def runtime_versions(self): '''Instance depends on the API version: * 2020-07-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.RuntimeVersionsOperations>` * 2020-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.RuntimeVersionsOperations>` * 2021-06-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.RuntimeVersionsOperations>` * 2021-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-03-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-04-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.RuntimeVersionsOperations>` * 2022-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.RuntimeVersionsOperations>` * 2022-12-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.RuntimeVersionsOperations>` * 2023-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-03-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-07-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-09-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.RuntimeVersionsOperations>` * 2023-12-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.RuntimeVersionsOperations>` * 2024-01-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.RuntimeVersionsOperations>` * 2024-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.RuntimeVersionsOperations>` ''' pass @property def service_registries(self): '''Instance depends on the API version: * 2022-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ServiceRegistriesOperations>` * 2022-03-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ServiceRegistriesOperations>` * 2022-04-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.ServiceRegistriesOperations>` * 2022-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ServiceRegistriesOperations>` * 2022-09-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ServiceRegistriesOperations>` * 2022-11-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ServiceRegistriesOperations>` * 2022-12-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ServiceRegistriesOperations>` * 2023-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-03-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-07-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-09-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-11-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ServiceRegistriesOperations>` * 2023-12-01: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ServiceRegistriesOperations>` * 2024-01-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ServiceRegistriesOperations>` * 2024-05-01-preview: :class:`ServiceRegistriesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ServiceRegistriesOperations>` ''' pass @property def services(self): '''Instance depends on the API version: * 2020-07-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.ServicesOperations>` * 2020-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.ServicesOperations>` * 2021-06-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.ServicesOperations>` * 2021-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.ServicesOperations>` * 2022-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ServicesOperations>` * 2022-03-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ServicesOperations>` * 2022-04-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.ServicesOperations>` * 2022-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ServicesOperations>` * 2022-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ServicesOperations>` * 2022-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ServicesOperations>` * 2022-12-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.ServicesOperations>` * 2023-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ServicesOperations>` * 2023-03-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ServicesOperations>` * 2023-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ServicesOperations>` * 2023-07-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ServicesOperations>` * 2023-09-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ServicesOperations>` * 2023-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ServicesOperations>` * 2023-12-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.ServicesOperations>` * 2024-01-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ServicesOperations>` * 2024-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.ServicesOperations>` ''' pass @property def skus(self): '''Instance depends on the API version: * 2020-07-01: :class:`SkusOperations<azure.mgmt.appplatform.v2020_07_01.aio.operations.SkusOperations>` * 2020-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.SkusOperations>` * 2021-06-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.SkusOperations>` * 2021-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.SkusOperations>` * 2022-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.SkusOperations>` * 2022-03-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.SkusOperations>` * 2022-04-01: :class:`SkusOperations<azure.mgmt.appplatform.v2022_04_01.aio.operations.SkusOperations>` * 2022-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.SkusOperations>` * 2022-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.SkusOperations>` * 2022-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.SkusOperations>` * 2022-12-01: :class:`SkusOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.SkusOperations>` * 2023-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.SkusOperations>` * 2023-03-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.SkusOperations>` * 2023-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.SkusOperations>` * 2023-07-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.SkusOperations>` * 2023-09-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.SkusOperations>` * 2023-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.SkusOperations>` * 2023-12-01: :class:`SkusOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.SkusOperations>` * 2024-01-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.SkusOperations>` * 2024-05-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.SkusOperations>` ''' pass @property def storages(self): '''Instance depends on the API version: * 2021-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.StoragesOperations>` * 2022-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.StoragesOperations>` * 2022-03-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.StoragesOperations>` * 2022-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.StoragesOperations>` * 2022-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.StoragesOperations>` * 2022-11-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.StoragesOperations>` * 2022-12-01: :class:`StoragesOperations<azure.mgmt.appplatform.v2022_12_01.aio.operations.StoragesOperations>` * 2023-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.StoragesOperations>` * 2023-03-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.StoragesOperations>` * 2023-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.StoragesOperations>` * 2023-07-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.StoragesOperations>` * 2023-09-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.StoragesOperations>` * 2023-11-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.StoragesOperations>` * 2023-12-01: :class:`StoragesOperations<azure.mgmt.appplatform.v2023_12_01.aio.operations.StoragesOperations>` * 2024-01-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.StoragesOperations>` * 2024-05-01-preview: :class:`StoragesOperations<azure.mgmt.appplatform.v2024_05_01_preview.aio.operations.StoragesOperations>` ''' pass async def close(self): pass async def __aenter__(self): pass async def __aexit__(self, *exc_details): pass
79
37
46
1
31
14
13
0.45
2
73
68
0
39
2
41
42
1,998
78
1,326
630
737
594
757
585
213
21
2
1
546
8,321
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/_configuration.py
azext_spring.vendored_sdks.appplatform._configuration.AppPlatformManagementClientConfiguration
class AppPlatformManagementClientConfiguration: """Configuration for AppPlatformManagementClient. Note that all parameters used to create this instance are saved as instance attributes. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str """ def __init__( self, credential: "TokenCredential", subscription_id: str, **kwargs: Any ): if credential is None: raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") self.credential = credential self.subscription_id = subscription_id self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'azure-mgmt-appplatform/{}'.format(VERSION)) self.polling_interval = kwargs.get("polling_interval", 30) self._configure(**kwargs) def _configure( self, **kwargs: Any ): self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) self.authentication_policy = kwargs.get('authentication_policy') if self.credential and not self.authentication_policy: self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
class AppPlatformManagementClientConfiguration: '''Configuration for AppPlatformManagementClient. Note that all parameters used to create this instance are saved as instance attributes. :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str ''' def __init__( self, credential: "TokenCredential", subscription_id: str, **kwargs: Any ): pass def _configure( self, **kwargs: Any ): pass
3
1
16
1
16
0
3
0.25
0
3
0
0
2
13
2
2
45
5
32
24
21
8
24
16
21
3
0
1
5
8,322
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_utils.py
azext_spring.tests.latest.test_utils.TestUtils
class TestUtils(unittest.TestCase): def test_blob_sas_url_parse(self): url = r"http://fake-account-name.blob.core.windows.net/fake-container-name/resources/fake-relative-path?fake-token" account_name, endpoint_suffix, container_name, relative_path, sas_token = get_blob_info(url) self.assertEqual("fake-account-name", account_name) self.assertEqual("core.windows.net", endpoint_suffix) self.assertEqual("fake-container-name", container_name) self.assertEqual("resources/fake-relative-path", relative_path) self.assertEqual("fake-token", sas_token) def test_invaid_blob_sas_url_parse(self): url = r"https://fake-account-name_blob.core.windows.net/fake-container-name/resources/fake-relative-path?fake-token" with self.assertRaises(AttributeError): get_blob_info(url) def test_invaid_blob_sas_url_parse_2(self): url = r"https://fake-account-name.file.core.windows.net/fake-container-name/resources/fake-relative-path?fake-token" with self.assertRaises(AttributeError): get_blob_info(url) def test_file_sas_url_parse(self): url = r"https://fake-account-name.file.core.windows.net/fake-container-name/resources/fake-relative-path?fake-token" account_name, endpoint_suffix, container_name, relative_path, sas_token = get_azure_files_info(url) self.assertEqual("fake-account-name", account_name) self.assertEqual("core.windows.net", endpoint_suffix) self.assertEqual("fake-container-name", container_name) self.assertEqual("resources/fake-relative-path", relative_path) self.assertEqual("fake-token", sas_token)
class TestUtils(unittest.TestCase): def test_blob_sas_url_parse(self): pass def test_invaid_blob_sas_url_parse(self): pass def test_invaid_blob_sas_url_parse_2(self): pass def test_file_sas_url_parse(self): pass
5
0
6
0
6
0
1
0
1
1
0
0
4
0
4
76
28
3
25
11
20
0
25
11
20
1
2
1
4
8,323
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/group/static_member/_show.py
azext_network_manager.aaz.latest.network.manager.group.static_member._show.Show.StaticMembersGet
class StaticMembersGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkGroupName", self.ctx.args.network_group_name, required=True, ), **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "staticMemberName", self.ctx.args.static_member_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType( flags={"read_only": True}, ) _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.region = AAZStrType( flags={"read_only": True}, ) properties.resource_id = AAZStrType( serialized_name="resourceId", ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class StaticMembersGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
14
1
13
0
1
0
1
0
0
0
8
0
9
9
142
16
126
28
109
0
50
21
40
2
1
1
11
8,324
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/group/static_member/_list.py
azext_network_manager.aaz.latest.network.manager.group.static_member._list.List.StaticMembersList
class StaticMembersList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkGroupName", self.ctx.args.network_group_name, required=True, ), **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "$skipToken", self.ctx.args.skip_token, ), **self.serialize_query_param( "$top", self.ctx.args.top, ), **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.region = AAZStrType( flags={"read_only": True}, ) properties.resource_id = AAZStrType( serialized_name="resourceId", ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class StaticMembersList(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
15
1
14
0
1
0
1
0
0
0
8
0
9
9
153
18
135
30
118
0
55
23
45
2
1
1
11
8,325
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/group/static_member/_delete.py
azext_network_manager.aaz.latest.network.manager.group.static_member._delete.Delete.StaticMembersDelete
class StaticMembersDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkGroupName", self.ctx.args.network_group_name, required=True, ), **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "staticMemberName", self.ctx.args.static_member_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class StaticMembersDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
7
0
7
0
1
0
1
0
0
0
8
0
8
8
69
9
60
19
46
0
26
14
17
3
1
1
10
8,326
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_app.py
azext_spring.tests.latest.test_asa_app.TestSetActiveDeploy
class TestSetActiveDeploy(BasicTest): def test_blue_green_enterprise(self): client = self._get_basic_mock_client(sku='Enterprise') app_set_deployment(get_test_cmd(), client, 'rg', 'asc', 'app', 'default') call_args = client.apps.begin_set_active_deployments.call_args_list self.assertEqual(1, len(call_args)) self.assertEqual(4, len(call_args[0][0])) request = call_args[0][0][3] self.assertEqual('default', request.active_deployment_names[0]) def test_unset_active_enterprise(self): client = self._get_basic_mock_client(sku='Enterprise') app_unset_deployment(get_test_cmd(), client, 'rg', 'asc', 'app') call_args = client.apps.begin_set_active_deployments.call_args_list self.assertEqual(1, len(call_args)) self.assertEqual(4, len(call_args[0][0])) request = call_args[0][0][3] self.assertEqual(0, len(request.active_deployment_names)) def test_blue_green_standard(self): client = self._get_basic_mock_client(sku='Standard') app_set_deployment(get_test_cmd(), client, 'rg', 'asc', 'app', 'default') call_args = client.apps.begin_set_active_deployments.call_args_list self.assertEqual(1, len(call_args)) self.assertEqual(4, len(call_args[0][0])) active_deployment_collection = call_args[0][0][3] self.assertEqual('default', active_deployment_collection.active_deployment_names[0]) def test_unset_active_standard(self): client = self._get_basic_mock_client(sku='Standard') app_unset_deployment(get_test_cmd(), client, 'rg', 'asc', 'app') call_args = client.apps.begin_set_active_deployments.call_args_list self.assertEqual(1, len(call_args)) self.assertEqual(4, len(call_args[0][0])) active_deployment_collection = call_args[0][0][3] self.assertEqual(0, len(active_deployment_collection.active_deployment_names))
class TestSetActiveDeploy(BasicTest): def test_blue_green_enterprise(self): pass def test_unset_active_enterprise(self): pass def test_blue_green_standard(self): pass def test_unset_active_standard(self): pass
5
0
8
0
8
0
1
0
1
0
0
0
4
0
4
78
36
3
33
17
28
0
33
17
28
1
3
0
4
8,327
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_app.py
azext_spring.tests.latest.test_asa_app.TestDeploymentCreate
class TestDeploymentCreate(BasicTest): def __init__(self, methodName: str = ...): super().__init__(methodName=methodName) self.put_deployment_resource = None def _get_basic_mock_client(self, sku='Standard', *deployments): client = super()._get_basic_mock_client(sku=sku) client.deployments.list.return_value = deployments return client def _execute(self, *args, **kwargs): client = kwargs.pop('client', None) or self._get_basic_mock_client() deployment_create(get_test_cmd(), client, *args, **kwargs) call_args = client.deployments.begin_create_or_update.call_args_list self.assertEqual(1, len(call_args)) self.assertEqual(5, len(call_args[0][0])) self.assertEqual(args[0:4], call_args[0][0][0:4]) self.put_deployment_resource = call_args[0][0][4] def test_create_deployment_without_active(self): client = self._get_basic_mock_client() self._execute('rg', 'asc', 'app', 'green', cpu='2', memory='2Gi', instance_count=3, client=client) resource = self.put_deployment_resource self.assertEqual(3, resource.sku.capacity) self.assertEqual('2', resource.properties.deployment_settings.resource_requests.cpu) self.assertEqual('2Gi', resource.properties.deployment_settings.resource_requests.memory) def test_create_deployment_with_active(self): deployment = self._get_deployment() deployment.properties.active = True deployment.properties.source.jvm_options = 'test-options' client = self._get_basic_mock_client('Standard', deployment) self._execute('rg', 'asc', 'app', 'green', cpu=None, memory=None, instance_count=None, client=client) resource = self.put_deployment_resource self.assertEqual(2, resource.sku.capacity) self.assertEqual('2', resource.properties.deployment_settings.resource_requests.cpu) self.assertEqual('2Gi', resource.properties.deployment_settings.resource_requests.memory) self.assertEqual('test-options', resource.properties.source.jvm_options) self.assertEqual('Java_11', resource.properties.source.runtime_version) self.assertEqual('<default>', resource.properties.source.relative_path) self.assertEqual('Jar', resource.properties.source.type) def test_create_deployment_with_active_override(self): deployment = self._get_deployment() deployment.properties.active = True deployment.properties.source.jvm_options = 'test-options' client = self._get_basic_mock_client('Standard', deployment) self._execute('rg', 'asc', 'app', 'green', cpu='3', memory=None, instance_count=5, runtime_version='NetCore_31', client=client) resource = self.put_deployment_resource self.assertEqual(5, resource.sku.capacity) self.assertEqual('3', resource.properties.deployment_settings.resource_requests.cpu) self.assertEqual('2Gi', resource.properties.deployment_settings.resource_requests.memory) self.assertEqual('NetCoreZip', resource.properties.source.type) self.assertEqual('NetCore_31', resource.properties.source.runtime_version) self.assertEqual('<default>', resource.properties.source.relative_path) def test_create_deployment_with_active_is_source(self): deployment = self._get_deployment() deployment.properties.active = True deployment.properties.source.type = 'Source' client = self._get_basic_mock_client('Standard', deployment) self._execute('rg', 'asc', 'app', 'green', cpu='3', memory=None, instance_count=5, client=client) resource = self.put_deployment_resource self.assertEqual(5, resource.sku.capacity) self.assertEqual('3', resource.properties.deployment_settings.resource_requests.cpu) self.assertEqual('2Gi', resource.properties.deployment_settings.resource_requests.memory) self.assertIsNone(resource.properties.source.jvm_options) self.assertEqual('Jar', resource.properties.source.type) self.assertEqual('Java_11', resource.properties.source.runtime_version) self.assertEqual('<default>', resource.properties.source.relative_path) def test_create_deployment_with_active_is_container(self): deployment = self._get_deployment() deployment.properties.active = True deployment.properties.source.type = 'Container' client = self._get_basic_mock_client('Standard', deployment) self._execute('rg', 'asc', 'app', 'green', cpu='3', memory=None, instance_count=5, client=client) resource = self.put_deployment_resource self.assertEqual(5, resource.sku.capacity) self.assertEqual('3', resource.properties.deployment_settings.resource_requests.cpu) self.assertEqual('2Gi', resource.properties.deployment_settings.resource_requests.memory) self.assertIsNone(resource.properties.source.jvm_options) self.assertEqual('Jar', resource.properties.source.type) self.assertEqual('Java_11', resource.properties.source.runtime_version) self.assertEqual('<default>', resource.properties.source.relative_path) def test_create_deployment_with_ACS_Pattern_in_enterprise(self): deployment = self._get_deployment(sku='Enterprise') client = self._get_basic_mock_client('Enterprise', deployment) deployment.properties.deployment_settings.addon_configs = { 'applicationConfigurationService': {'configFilePatterns': 'my-pattern'}} self._execute('rg', 'asc', 'app', 'green', client=client) resource = self.put_deployment_resource self.assertEqual({'applicationConfigurationService': {'configFilePatterns': 'my-pattern'}}, resource.properties.deployment_settings.addon_configs) def test_create_deployment_with_actuator_in_enterprise(self): deployment = self._get_deployment(sku='Enterprise') client = self._get_basic_mock_client('Enterprise', deployment) self._execute('rg', 'asc', 'app', 'green', client=client, custom_actuator_port='8888', custom_actuator_path='actuator-path') resource = self.put_deployment_resource self.assertEqual({'appLiveView': { 'actuatorPort': '8888', 'actuatorPath': 'actuator-path'}}, resource.properties.deployment_settings.addon_configs) def test_create_deployment_with_actuator_port_in_enterprise(self): deployment = self._get_deployment(sku='Enterprise') client = self._get_basic_mock_client('Enterprise', deployment) self._execute('rg', 'asc', 'app', 'green', client=client, custom_actuator_port='8888') resource = self.put_deployment_resource self.assertEqual({'appLiveView': { 'actuatorPort': '8888', 'actuatorPath': None }}, resource.properties.deployment_settings.addon_configs)
class TestDeploymentCreate(BasicTest): def __init__(self, methodName: str = ...): pass def _get_basic_mock_client(self, sku='Standard', *deployments): pass def _execute(self, *args, **kwargs): pass def test_create_deployment_without_active(self): pass def test_create_deployment_with_active(self): pass def test_create_deployment_with_active_override(self): pass def test_create_deployment_with_active_is_source(self): pass def test_create_deployment_with_active_is_container(self): pass def test_create_deployment_with_ACS_Pattern_in_enterprise(self): pass def test_create_deployment_with_actuator_in_enterprise(self): pass def test_create_deployment_with_actuator_port_in_enterprise(self): pass
12
0
9
0
9
0
1
0
1
2
0
0
11
1
11
85
113
11
102
39
90
0
97
39
85
1
3
0
11
8,328
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_app.py
azext_spring.tests.latest.test_asa_app.TestAppUpdate
class TestAppUpdate(BasicTest): def __init__(self, methodName: str = ...): super().__init__(methodName=methodName) self.patch_app_resource = None self.patch_deployment_resource = None def _execute(self, *args, **kwargs): client = kwargs.pop('client', None) or self._get_basic_mock_client() app_update(get_test_cmd(), client, *args, **kwargs) call_args = client.deployments.begin_update.call_args_list if len(call_args): self.assertEqual(1, len(call_args)) self.assertEqual(5, len(call_args[0][0])) self.assertEqual(args[0:3] + ('default',), call_args[0][0][0:4]) self.patch_deployment_resource = call_args[0][0][4] else: self.patch_deployment_resource = None call_args = client.apps.begin_update.call_args_list self.assertEqual(1, len(call_args)) self.assertEqual(4, len(call_args[0][0])) self.assertEqual(args[0:3], call_args[0][0][0:3]) self.patch_app_resource = call_args[0][0][3] def test_app_update_without_deployment(self): self._execute('rg', 'asc', 'app', assign_endpoint=True) self.assertIsNone(self.patch_deployment_resource) resource = self.patch_app_resource self.assertEqual(True, resource.properties.public) def test_invalid_app_update_deployment_settings_without_deployment(self): with self.assertRaisesRegex(CLIError, '--jvm-options cannot be set when there is no active deployment.'): self._execute('rg', 'asc', 'app', jvm_options='test-option') def test_app_update_jvm_options(self): self._execute('rg', 'asc', 'app', deployment=self._get_deployment(), jvm_options='test-option') resource = self.patch_deployment_resource self.assertEqual('Jar', resource.properties.source.type) self.assertEqual('my-path', resource.properties.source.relative_path) self.assertEqual('123', resource.properties.source.version) self.assertEqual('Java_11', resource.properties.source.runtime_version) self.assertEqual('test-option', resource.properties.source.jvm_options) def test_app_set_termination_grace_period_seconds(self): self._execute('rg', 'asc', 'app', deployment=self._get_deployment(), termination_grace_period_seconds=88) resource = self.patch_deployment_resource self.assertEqual(88, resource.properties.deployment_settings.termination_grace_period_seconds) def test_app_disable_probes(self): self._execute('rg', 'asc', 'app', deployment=self._get_deployment(), enable_liveness_probe=False, enable_readiness_probe=False, enable_startup_probe=False) resource = self.patch_deployment_resource self.assertEqual(True, resource.properties.deployment_settings.liveness_probe.disable_probe) self.assertEqual(True, resource.properties.deployment_settings.readiness_probe.disable_probe) self.assertEqual(True, resource.properties.deployment_settings.startup_probe.disable_probe) def test_app_enable_probe(self): py_path = os.path.abspath(os.path.dirname(__file__)) file_path = os.path.join(py_path, 'files/probe.json').replace("\\", "/") self._execute('rg', 'asc', 'app', deployment=self._get_deployment(), enable_liveness_probe=True, liveness_probe_config=file_path) resource = self.patch_deployment_resource self.assertEqual(False, resource.properties.deployment_settings.liveness_probe.disable_probe) self.assertEqual(30, resource.properties.deployment_settings.liveness_probe.initial_delay_seconds) self.assertEqual(1, resource.properties.deployment_settings.liveness_probe.success_threshold) self.assertEqual(1, resource.properties.deployment_settings.liveness_probe.timeout_seconds) self.assertEqual(10, resource.properties.deployment_settings.liveness_probe.period_seconds) self.assertEqual(30, resource.properties.deployment_settings.liveness_probe.failure_threshold) def test_app_update_net_core_main_entry(self): deployment = self._get_deployment() deployment.properties.source.type = 'NetCoreZip' deployment.properties.source.runtime_version = 'NetCore_31' deployment.properties.source.net_core_main_entry_path = 'main-entry' self._execute('rg', 'asc', 'app', deployment=deployment, main_entry='test-entry') resource = self.patch_deployment_resource self.assertEqual('NetCoreZip', resource.properties.source.type) self.assertEqual('my-path', resource.properties.source.relative_path) self.assertEqual('123', resource.properties.source.version) self.assertEqual('NetCore_31', resource.properties.source.runtime_version) self.assertEqual('test-entry', resource.properties.source.net_core_main_entry_path) def test_app_update_settings_only(self): deployment = self._get_deployment() self._execute('rg', 'asc', 'app', deployment=deployment, env={'key': 'value'}) resource = self.patch_deployment_resource self.assertIsNone(resource.properties.source) self.assertEqual({'key': 'value'}, resource.properties.deployment_settings.environment_variables) def test_app_update_in_enterprise(self): client = self._get_basic_mock_client(sku='Enterprise') deployment = self._get_deployment(sku='Enterprise') deployment.properties.deployment_settings.addon_configs = { 'applicationConfigurationService': {'configFilePatterns': 'my-pattern'}} self._execute('rg', 'asc', 'app', deployment=deployment, client=client, config_file_patterns='updated-pattern') resource = self.patch_deployment_resource self.assertEqual({'applicationConfigurationService': {'configFilePatterns': 'updated-pattern'}}, resource.properties.deployment_settings.addon_configs) def test_app_update_in_enterprise_with_actuator(self): client = self._get_basic_mock_client(sku='Enterprise') deployment = self._get_deployment(sku='Enterprise') deployment.properties.deployment_settings.addon_configs = { 'appLiveView': { 'actuatorPort': '8888', 'actuatorPath': 'actuator-path'}} self._execute('rg', 'asc', 'app', deployment=deployment, client=client, custom_actuator_port='8888', custom_actuator_path='updated-path') resource = self.patch_deployment_resource self.assertEqual({'appLiveView': { 'actuatorPort': '8888', 'actuatorPath': 'updated-path'}}, resource.properties.deployment_settings.addon_configs) def test_app_update_in_enterprise_with_actuator_path(self): client = self._get_basic_mock_client(sku='Enterprise') deployment = self._get_deployment(sku='Enterprise') deployment.properties.deployment_settings.addon_configs = { 'appLiveView': { 'actuatorPort': '8888', 'actuatorPath': 'actuator-path'}} self._execute('rg', 'asc', 'app', deployment=deployment, client=client, custom_actuator_path='updated-path') resource = self.patch_deployment_resource self.assertEqual({'appLiveView': { 'actuatorPort': None, 'actuatorPath': 'updated-path'}}, resource.properties.deployment_settings.addon_configs) def test_app_update_clear_jvm_option_in_enterprise(self): client = self._get_basic_mock_client(sku='Enterprise') deployment = self._get_deployment(sku='Enterprise') deployment.properties.deployment_settings.environment_variables = {"JAVA_OPTS": "test_options", "foo": "bar"} self._execute('rg', 'asc', 'app', deployment=deployment, client=client, jvm_options='') resource = self.patch_deployment_resource self.assertEqual({"foo": "bar"}, resource.properties.deployment_settings.environment_variables) def test_app_update_in_enterprise_with_new_set_env(self): client = self._get_basic_mock_client(sku='Enterprise') deployment = self._get_deployment(sku='Enterprise') deployment.properties.deployment_settings.environment_variables = {"JAVA_OPTS": "test_options", "foo": "bar"} self._execute('rg', 'asc', 'app', deployment=deployment, client=client, env={'key': 'value'}) resource = self.patch_deployment_resource self.assertEqual({'key': 'value'}, resource.properties.deployment_settings.environment_variables) def test_app_update_env_and_jvm_in_enterprise(self): client = self._get_basic_mock_client(sku='Enterprise') deployment = self._get_deployment(sku='Enterprise') deployment.properties.deployment_settings.environment_variables = {"JAVA_OPTS": "test_options", "foo": "bar"} self._execute('rg', 'asc', 'app', deployment=deployment, client=client, jvm_options='another-option', env={'key': 'value'}) resource = self.patch_deployment_resource self.assertEqual({'JAVA_OPTS': 'another-option', 'key': 'value'}, resource.properties.deployment_settings.environment_variables) def test_app_update_custom_container_deployment(self): deployment = self._get_deployment() deployment.properties.source.type = 'Container' deployment.properties.source.custom_container.container_image = 'my-image' self._execute('rg', 'asc', 'app', deployment=deployment, env={'key': 'value'}) resource = self.patch_deployment_resource self.assertIsNone(resource.properties.source) self.assertEqual({'key': 'value'}, resource.properties.deployment_settings.environment_variables) def test_app_update_custom_container_deployment_with_invalid_source(self): deployment = self._get_deployment() deployment.properties.source.type = 'Container' deployment.properties.source.custom_container.container_image = 'my-image' self._execute('rg', 'asc', 'app', deployment=deployment, env={'key': 'value'}, runtime_version='Java_11') resource = self.patch_deployment_resource self.assertIsNone(resource.properties.source) self.assertEqual({'key': 'value'}, resource.properties.deployment_settings.environment_variables) def test_steeltoe_app_cannot_set_jvm_options(self): deployment = self._get_deployment() deployment.properties.source.type = 'NetCoreZip' deployment.properties.source.runtime_version = 'NetCore_31' deployment.properties.source.net_core_main_entry_path = 'main-entry' with self.assertRaisesRegex(CLIError, '--jvm-options cannot be set when --runtime-version is NetCore_31.'): self._execute('rg', 'asc', 'app', jvm_options='test-option', deployment=deployment) def test_vnet_public_endpoint(self): deployment = self._get_deployment() self._execute('rg', 'asc', 'app', assign_public_endpoint=True, deployment=deployment) resource = self.patch_app_resource self.assertTrue(resource.properties.vnet_addons.public_endpoint) self._execute('rg', 'asc', 'app', deployment=deployment) resource = self.patch_app_resource self.assertIsNone(resource.properties.vnet_addons) self._execute('rg', 'asc', 'app', assign_public_endpoint=False, deployment=deployment) resource = self.patch_app_resource self.assertFalse(resource.properties.vnet_addons.public_endpoint) def test_client_auth(self): deployment = self._get_deployment() self._execute('rg', 'asc', 'app', client_auth_certs=['my-cert-id'], deployment=deployment) resource = self.patch_app_resource self.assertEqual(['my-cert-id'], resource.properties.ingress_settings.client_auth.certificates) def test_app_i2a_tls(self): deployment = self._get_deployment() self._execute('rg', 'asc', 'app', enable_ingress_to_app_tls=True, deployment=deployment) resource = self.patch_app_resource self.assertTrue(resource.properties.enable_end_to_end_tls) self._execute('rg', 'asc', 'app', deployment=deployment) resource = self.patch_app_resource self.assertIsNone(resource.properties.enable_end_to_end_tls) self._execute('rg', 'asc', 'app', enable_ingress_to_app_tls=False, deployment=deployment) resource = self.patch_app_resource self.assertFalse(resource.properties.enable_end_to_end_tls) def test_update_workload_profile(self): self._execute('rg', 'asc', 'app', workload_profile='w2') resource = self.patch_app_resource self.assertEqual('w2', resource.properties.workload_profile_name) def test_app_update_with_enable_test_endpoint_auth(self): self._execute('rg', 'asc', 'app', workload_profile='w2') resource = self.patch_app_resource self.assertIsNone(resource.properties.test_endpoint_auth_state) self._execute('rg', 'asc', 'app', workload_profile='w2', disable_test_endpoint_auth=False) resource = self.patch_app_resource self.assertEqual(models.TestEndpointAuthState.ENABLED, resource.properties.test_endpoint_auth_state) self._execute('rg', 'asc', 'app', workload_profile='w2', disable_test_endpoint_auth=True) resource = self.patch_app_resource self.assertEqual(models.TestEndpointAuthState.DISABLED, resource.properties.test_endpoint_auth_state)
class TestAppUpdate(BasicTest): def __init__(self, methodName: str = ...): pass def _execute(self, *args, **kwargs): pass def test_app_update_without_deployment(self): pass def test_invalid_app_update_deployment_settings_without_deployment(self): pass def test_app_update_jvm_options(self): pass def test_app_set_termination_grace_period_seconds(self): pass def test_app_disable_probes(self): pass def test_app_enable_probe(self): pass def test_app_update_net_core_main_entry(self): pass def test_app_update_settings_only(self): pass def test_app_update_in_enterprise(self): pass def test_app_update_in_enterprise_with_actuator(self): pass def test_app_update_in_enterprise_with_actuator_path(self): pass def test_app_update_clear_jvm_option_in_enterprise(self): pass def test_app_update_in_enterprise_with_new_set_env(self): pass def test_app_update_env_and_jvm_in_enterprise(self): pass def test_app_update_custom_container_deployment(self): pass def test_app_update_custom_container_deployment_with_invalid_source(self): pass def test_steeltoe_app_cannot_set_jvm_options(self): pass def test_vnet_public_endpoint(self): pass def test_client_auth(self): pass def test_app_i2a_tls(self): pass def test_update_workload_profile(self): pass def test_app_update_with_enable_test_endpoint_auth(self): pass
25
0
8
0
8
0
1
0
1
3
1
0
24
2
24
98
226
34
192
71
167
0
181
71
156
2
3
1
25
8,329
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_app.py
azext_spring.tests.latest.test_asa_app.TestAppCreate
class TestAppCreate(BasicTest): def __init__(self, methodName: str = ...): super().__init__(methodName=methodName) self.put_app_resource = None self.put_deployment_resource = None def _get_basic_mock_client(self, sku='Standard'): client = super()._get_basic_mock_client(sku=sku) client.apps.get.side_effect = [ ResourceNotFoundError('App not found'), mock.MagicMock() ] client.deployments.list.return_value = [] return client def _execute(self, *args, **kwargs): client = kwargs.pop('client', None) or self._get_basic_mock_client() app_create(get_test_cmd(), client, *args, **kwargs) call_args = client.apps.begin_create_or_update.call_args_list self.assertEqual(1, len(call_args)) self.assertEqual(4, len(call_args[0][0])) self.assertEqual(args[0:3], call_args[0][0][0:3]) self.put_app_resource = call_args[0][0][3] call_args = client.deployments.begin_create_or_update.call_args_list self.assertEqual(1, len(call_args)) self.assertEqual(5, len(call_args[0][0])) self.put_deployment_resource = call_args[0][0][4] self.put_deployment_resource.name = call_args[0][0][3] def test_app_create_happy_path(self): self._execute('rg', 'asc', 'app', cpu='1', memory='1Gi', instance_count=1) resource = self.put_deployment_resource self.assertEqual('Jar', resource.properties.source.type) self.assertEqual('Java_11', resource.properties.source.runtime_version) self.assertEqual('<default>', resource.properties.source.relative_path) def test_app_create_with_netcore(self): self._execute('rg', 'asc', 'app', cpu='1', memory='1Gi', instance_count=1, runtime_version='NetCore_31') resource = self.put_deployment_resource self.assertEqual('NetCoreZip', resource.properties.source.type) self.assertEqual('NetCore_31', resource.properties.source.runtime_version) self.assertEqual('<default>', resource.properties.source.relative_path) def test_app_create_in_enterprise(self): client = self._get_basic_mock_client(sku='Enterprise') self._execute('rg', 'asc', 'app', cpu='500m', memory='2Gi', instance_count=1, client=client) resource = self.put_deployment_resource self.assertEqual('BuildResult', resource.properties.source.type) self.assertEqual('<default>', resource.properties.source.build_result_id) self.assertEqual('500m', resource.properties.deployment_settings.resource_requests.cpu) self.assertEqual('2Gi', resource.properties.deployment_settings.resource_requests.memory) def test_app_with_large_instance_count_enterprise(self): client = self._get_basic_mock_client(sku='Enterprise') with self.assertRaisesRegex(CLIError, f'Invalid --instance-count, should be in range {re.escape("[")}1, 1000{re.escape("]")}'): self._execute('rg', 'asc', 'app', cpu='500m', memory='2Gi', instance_count=1001, client=client) def test_app_with_large_instance_count(self): with self.assertRaisesRegex(CLIError, f'Invalid --instance-count, should be in range {re.escape("[")}1, 500{re.escape("]")}'): self._execute('rg', 'asc', 'app', cpu='500m', memory='2Gi', instance_count=501) def test_app_with_large_instance_count_basic(self): client = self._get_basic_mock_client(sku='Basic') with self.assertRaisesRegex(CLIError, f'Invalid --instance-count, should be in range {re.escape("[")}1, 25{re.escape("]")}'): self._execute('rg', 'asc', 'app', cpu='500m', memory='2Gi', instance_count=26, client=client) def test_app_with_persistent_storage_enterprise(self): client = self._get_basic_mock_client(sku='Enterprise') with self.assertRaisesRegex(CLIError, 'Enterprise tier Spring instance does not support --enable-persistent-storage'): self._execute('rg', 'asc', 'app', cpu='500m', memory='2Gi', instance_count=1, enable_persistent_storage=True, client=client) def test_app_binding_tanzu_components_enterprise(self): client = self._get_basic_mock_client(sku='Enterprise') default_service_registry_id = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/asa/serviceRegistries/default' default_application_configuration_service_id = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/asa/configurationServices/default' default_config_server_id = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/asa/configServers/default' self._execute('rg', 'asc', 'app', cpu='500m', memory='2Gi', instance_count=1, bind_service_registry=default_service_registry_id, bind_application_configuration_service=default_application_configuration_service_id, bind_config_server=default_config_server_id, client=client) addon_configs = self.put_app_resource.properties.addon_configs self.assertEqual(default_service_registry_id, addon_configs['serviceRegistry']['resourceId']) self.assertEqual(default_application_configuration_service_id, addon_configs['applicationConfigurationService']['resourceId']) self.assertEqual(default_config_server_id, addon_configs['configServer']['resourceId']) def test_app_create_with_enable_test_endpoint_auth(self): self._execute('rg', 'asc', 'app', instance_count=1) resource = self.put_app_resource self.assertIsNone(resource.properties.test_endpoint_auth_state) self._execute('rg', 'asc', 'app', instance_count=1, disable_test_endpoint_auth=False) resource = self.put_app_resource self.assertEqual(models.TestEndpointAuthState.ENABLED, resource.properties.test_endpoint_auth_state) self._execute('rg', 'asc', 'app', instance_count=1, disable_test_endpoint_auth=True) resource = self.put_app_resource self.assertEqual(models.TestEndpointAuthState.DISABLED, resource.properties.test_endpoint_auth_state) def test_app_with_persistent_storage(self): self._execute('rg', 'asc', 'app', cpu='500m', memory='2Gi', instance_count=1, enable_persistent_storage=True) resource = self.put_app_resource self.assertEqual(50, resource.properties.persistent_disk.size_in_gb) def test_app_with_persistent_storage_basic(self): client = self._get_basic_mock_client(sku='Basic') self._execute('rg', 'asc', 'app', cpu='500m', memory='2Gi', instance_count=1, enable_persistent_storage=True, client=client) resource = self.put_app_resource self.assertEqual(1, resource.properties.persistent_disk.size_in_gb) def test_app_with_assign_public_endpoint(self): self._execute('rg', 'asc', 'app', cpu='500m', memory='2Gi', instance_count=1, assign_public_endpoint=True) resource = self.put_app_resource self.assertEqual(True, resource.properties.vnet_addons.public_endpoint) def test_app_with_ingress_settings(self): self._execute('rg', 'asc', 'app', instance_count=1, ingress_read_timeout=600, ingress_send_timeout=1200, session_affinity='Cookie', session_max_age=1000, backend_protocol='Default') resource = self.put_app_resource self.assertEqual(600, resource.properties.ingress_settings.read_timeout_in_seconds) self.assertEqual(1200, resource.properties.ingress_settings.send_timeout_in_seconds) self.assertEqual("Cookie", resource.properties.ingress_settings.session_affinity) self.assertEqual(1000, resource.properties.ingress_settings.session_cookie_max_age) self.assertEqual('Default', resource.properties.ingress_settings.backend_protocol) def test_app_with_client_auth(self): self._execute('rg', 'asc', 'app', instance_count=1, client_auth_certs=[]) resource = self.put_app_resource self.assertIsNotNone(resource.properties.ingress_settings.client_auth.certificates) self.assertEqual(0, len(resource.properties.ingress_settings.client_auth.certificates)) self._execute('rg', 'asc', 'app', instance_count=1, client_auth_certs=['cert1', 'cert2']) resource = self.put_app_resource self.assertIsNotNone(resource.properties.ingress_settings.client_auth.certificates) self.assertEqual(2, len(resource.properties.ingress_settings.client_auth.certificates)) self._execute('rg', 'asc', 'app', instance_count=1) resource = self.put_app_resource self.assertIsNone(resource.properties.ingress_settings) def test_app_create_with_deployment_name(self): self._execute('rg', 'asc', 'app', cpu='1', memory='1Gi', instance_count=1, deployment_name='hello') resource = self.put_deployment_resource self.assertEqual('hello', resource.name) def test_create_vnet_public_endpoint(self): self._execute('rg', 'asc', 'app', assign_public_endpoint=True, cpu='1', memory='1Gi', instance_count=1) resource = self.put_app_resource self.assertTrue(resource.properties.vnet_addons.public_endpoint) self._execute('rg', 'asc', 'app', cpu='1', memory='1Gi', instance_count=1) resource = self.put_app_resource self.assertIsNone(resource.properties.vnet_addons) self._execute('rg', 'asc', 'app', assign_public_endpoint=False, cpu='1', memory='1Gi', instance_count=1) resource = self.put_app_resource self.assertFalse(resource.properties.vnet_addons.public_endpoint) def test_create_with_workload_profile(self): self._execute('rg', 'asc', 'app', cpu='1', memory='1Gi', instance_count=1, workload_profile='w1') resource = self.put_app_resource self.assertEqual('w1', resource.properties.workload_profile_name)
class TestAppCreate(BasicTest): def __init__(self, methodName: str = ...): pass def _get_basic_mock_client(self, sku='Standard'): pass def _execute(self, *args, **kwargs): pass def test_app_create_happy_path(self): pass def test_app_create_with_netcore(self): pass def test_app_create_in_enterprise(self): pass def test_app_with_large_instance_count_enterprise(self): pass def test_app_with_large_instance_count_enterprise(self): pass def test_app_with_large_instance_count_basic(self): pass def test_app_with_persistent_storage_enterprise(self): pass def test_app_binding_tanzu_components_enterprise(self): pass def test_app_create_with_enable_test_endpoint_auth(self): pass def test_app_with_persistent_storage_enterprise(self): pass def test_app_with_persistent_storage_basic(self): pass def test_app_with_assign_public_endpoint(self): pass def test_app_with_ingress_settings(self): pass def test_app_with_client_auth(self): pass def test_app_create_with_deployment_name(self): pass def test_create_vnet_public_endpoint(self): pass def test_create_with_workload_profile(self): pass
21
0
7
0
7
0
1
0
1
4
1
0
20
2
20
94
167
24
143
48
122
0
129
48
108
1
3
1
20
8,330
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_app.py
azext_spring.tests.latest.test_asa_app.RemoteDebugTest
class RemoteDebugTest(BasicTest): def __init__(self, methodName: str = ...): super().__init__(methodName=methodName) def test_enable(self): client = self._get_basic_mock_client() deployment = self._get_deployment() deployment.name = 'my-deployment' deployment_enable_remote_debugging( get_test_cmd(), client, 'rg', 'asc', 'app', 123, deployment) args = client.deployments.begin_enable_remote_debugging.call_args_list self.assertEqual(1, len(args)) self.assertEqual(5, len(args[0][0])) self.assertEqual(('rg', 'asc', 'app', 'my-deployment'), args[0][0][0:4]) resource = args[0][0][4] self.assertEqual(123, resource.port) client = self._get_basic_mock_client() deployment = self._get_deployment() deployment.name = 'my-deployment' deployment_enable_remote_debugging( get_test_cmd(), client, 'rg', 'asc', 'app', deployment=deployment) args = client.deployments.begin_enable_remote_debugging.call_args_list resource = args[0][0][4] self.assertIsNone(resource.port) def test_disable(self): client = self._get_basic_mock_client() deployment = self._get_deployment() deployment.name = 'my-deployment' deployment_disable_remote_debugging( get_test_cmd(), client, 'rg', 'asc', 'app', deployment) args = client.deployments.begin_disable_remote_debugging.call_args_list self.assertEqual(1, len(args)) self.assertEqual(('rg', 'asc', 'app', 'my-deployment'), args[0][0]) def test_get(self): client = self._get_basic_mock_client() deployment = self._get_deployment() deployment.name = 'my-deployment' deployment_get_remote_debugging( get_test_cmd(), client, 'rg', 'asc', 'app', deployment) args = client.deployments.get_remote_debugging_config.call_args_list self.assertEqual(1, len(args)) self.assertEqual(('rg', 'asc', 'app', 'my-deployment'), args[0][0])
class RemoteDebugTest(BasicTest): def __init__(self, methodName: str = ...): pass def test_enable(self): pass def test_disable(self): pass def test_get(self): pass
5
0
12
0
12
0
1
0
1
2
0
0
4
0
4
78
53
4
49
15
44
0
37
15
32
1
3
0
4
8,331
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_app.py
azext_spring.tests.latest.test_asa_app.CustomDomainTests
class CustomDomainTests(BasicTest): def test_create_domain(self): client = self._get_basic_mock_client() domain_update(get_test_cmd(), client, 'rg', 'asc', 'app', 'my-domain') args = client.custom_domains.begin_create_or_update.call_args_list self.assertEqual(1, len(args)) self.assertEqual(5, len(args[0][0])) self.assertEqual(('rg', 'asc', 'app', 'my-domain'), args[0][0][0:4]) resource = args[0][0][4] self.assertIsNone(resource.properties.thumbprint) self.assertIsNone(resource.properties.cert_name) app_args = client.apps.begin_update.call_args_list self.assertEqual(0, len(app_args)) def test_bind_cert(self): def _get_cert(*_, **__): resp = models.CertificateResource( properties=models.CertificateProperties() ) resp.properties.thumbprint = 'my-thumbprint' return resp client = self._get_basic_mock_client() client.certificates.get = _get_cert domain_update(get_test_cmd(), client, 'rg', 'asc', 'app', 'my-domain', 'my-cert') args = client.custom_domains.begin_create_or_update.call_args_list self.assertEqual(1, len(args)) self.assertEqual(5, len(args[0][0])) self.assertEqual(('rg', 'asc', 'app', 'my-domain'), args[0][0][0:4]) resource = args[0][0][4] self.assertEqual('my-thumbprint', resource.properties.thumbprint) self.assertEqual('my-cert', resource.properties.cert_name) app_args = client.apps.begin_update.call_args_list self.assertEqual(0, len(app_args)) def test_create_domain_with_ingress(self): client = self._get_basic_mock_client() domain_update(get_test_cmd(), client, 'rg', 'asc', 'app', 'my-domain', enable_ingress_to_app_tls=True) args = client.custom_domains.begin_create_or_update.call_args_list self.assertEqual(1, len(args)) self.assertEqual(5, len(args[0][0])) self.assertEqual(('rg', 'asc', 'app', 'my-domain'), args[0][0][0:4]) resource = args[0][0][4] self.assertIsNone(resource.properties.thumbprint) self.assertIsNone(resource.properties.cert_name) app_args = client.apps.begin_update.call_args_list self.assertEqual(1, len(app_args))
class CustomDomainTests(BasicTest): def test_create_domain(self): pass def test_bind_cert(self): pass def _get_cert(*_, **__): pass def test_create_domain_with_ingress(self): pass
5
0
13
0
13
0
1
0
1
2
2
0
3
0
3
77
51
4
47
18
42
0
42
18
37
1
3
0
4
8,332
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_apm.py
azext_spring.tests.latest.test_asa_apm.TearDown
class TearDown(SpringSubResourceWrapper): def __init__(self, resource_group_parameter_name='resource_group', spring_parameter_name='spring'): super(TearDown, self).__init__() self.cli_ctx = get_dummy_cli() self.resource_group_parameter_name = resource_group_parameter_name self.spring_parameter_name = spring_parameter_name def create_resource(self, *_, **kwargs): self.resource_group = self._get_resource_group(**kwargs) self.spring = self._get_spring(**kwargs) def remove_resource(self, *_, **__): self._safe_exec( 'spring apm delete --name {} -g {} -s {} --yes'.format(APM_NAME, self.resource_group, self.spring)) self._safe_exec( 'spring apm delete --name {}-0 -g {} -s {} --yes'.format(APM_NAME, self.resource_group, self.spring))
class TearDown(SpringSubResourceWrapper): def __init__(self, resource_group_parameter_name='resource_group', spring_parameter_name='spring'): pass def create_resource(self, *_, **kwargs): pass def remove_resource(self, *_, **__): pass
4
0
5
0
5
0
1
0
1
1
0
0
3
5
3
7
18
2
16
11
10
0
12
9
8
1
2
0
3
8,333
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_api_portal_try_out_api.py
azext_spring.tests.latest.test_asa_api_portal_try_out_api.ApiPortalTryOutApiTest
class ApiPortalTryOutApiTest(ScenarioTest): def test_try_out_api_for_api_portal(self): self.kwargs.update({ 'serviceName': 'df-ae-enterpri-1108020957', 'rg': 'ASCIT-Enterprise-20231108', }) self.cmd('spring api-portal update -g {rg} -s {serviceName} --enable-api-try-out', self.check('properties.apiTryOutEnabledState', 'Enabled')) # When don't change anything self.cmd('spring api-portal update -g {rg} -s {serviceName}', self.check('properties.apiTryOutEnabledState', 'Enabled')) self.cmd('spring api-portal update -g {rg} -s {serviceName} --enable-api-try-out false', self.check('properties.apiTryOutEnabledState', 'Disabled')) self.cmd('spring api-portal update -g {rg} -s {serviceName} --enable-api-try-out true', self.check('properties.apiTryOutEnabledState', 'Enabled'))
class ApiPortalTryOutApiTest(ScenarioTest): def test_try_out_api_for_api_portal(self): pass
2
0
18
4
13
1
1
0.07
1
0
0
0
1
0
1
1
20
5
14
2
12
1
7
2
5
1
1
0
1
8,334
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_api_portal.py
azext_spring.tests.latest.test_asa_api_portal.ApiPortalWrapper
class ApiPortalWrapper(SpringSubResourceWrapper): def __init__(self, resource_group_parameter_name='resource_group', spring_parameter_name='spring'): super(ApiPortalWrapper, self).__init__() self.cli_ctx = get_dummy_cli() self.resource_group_parameter_name = resource_group_parameter_name self.spring_parameter_name = spring_parameter_name def create_resource(self, *_, **kwargs): self.resource_group = self._get_resource_group(**kwargs) self.spring = self._get_spring(**kwargs) def remove_resource(self, *_, **__): self.live_only_execute(self.cli_ctx, 'spring api-portal delete -g {} -s {} --yes'.format(self.resource_group, self.spring)) self.live_only_execute(self.cli_ctx, 'spring api-portal create -g {} -s {}'.format(self.resource_group, self.spring))
class ApiPortalWrapper(SpringSubResourceWrapper): def __init__(self, resource_group_parameter_name='resource_group', spring_parameter_name='spring'): pass def create_resource(self, *_, **kwargs): pass def remove_resource(self, *_, **__): pass
4
0
5
0
5
0
1
0
1
1
0
0
3
5
3
7
18
2
16
11
10
0
12
9
8
1
2
0
3
8,335
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_api_portal.py
azext_spring.tests.latest.test_asa_api_portal.ApiPortalUnitTest
class ApiPortalUnitTest(unittest.TestCase): def _execute(self, method, cmd, client, *kwargs): client = client or _get_basic_mock_client() method(cmd, client, *kwargs) self.custom_domain_request = client.api_portal_custom_domains.begin_create_or_update.call_args_list self.created_resource = self.created_alv_request[0][0][3] if self.created_alv_request else None self.dev_tool_portal_request = client.dev_tool_portals.begin_create_or_update.call_args_list self.dev_tool_portal = self.dev_tool_portal_request[0][0][3] if self.dev_tool_portal_request else None self.deleted = client.application_live_views.begin_delete.call_args_list is not None def test_custom_domain(self): client = _get_basic_mock_client() api_portal_custom_domain_update(get_test_cmd(), client, 'rg', 'asa', 'my-domain.microsoft.com') args = client.api_portal_custom_domains.begin_create_or_update.call_args_list self.assertEqual(1, len(args)) # one call self.assertEqual(5, len(args[0][0])) # 5 parameters self.assertEqual(('rg', 'asa', 'default', 'my-domain.microsoft.com'), args[0][0][0:4]) resource = args[0][0][4] self.assertIsNone(resource.properties.thumbprint) def test_custom_domain_with_cert(self): def _get_cert(*_, **__): resp = models.CertificateResource( properties=models.CertificateProperties() ) resp.properties.thumbprint = 'my-thumbprint' return resp client = _get_basic_mock_client() client.certificates.get = _get_cert api_portal_custom_domain_update(get_test_cmd(), client, 'rg', 'asa', 'my-domain.microsoft.com', 'my-cert') args = client.api_portal_custom_domains.begin_create_or_update.call_args_list self.assertEqual(1, len(args)) # one call self.assertEqual(5, len(args[0][0])) # 5 parameters self.assertEqual(('rg', 'asa', 'default', 'my-domain.microsoft.com'), args[0][0][0:4]) resource = args[0][0][4] self.assertEqual('my-thumbprint', resource.properties.thumbprint) def test_custom_domain_with_invalid_cert(self): def _get_cert(*_, **__): raise RuntimeError('error') client = _get_basic_mock_client() client.certificates.get = _get_cert self.assertRaises(RuntimeError, api_portal_custom_domain_update, get_test_cmd(), client, 'rg', 'asa', 'my-domain.microsoft.com', 'my-cert') def test_custom_domain_unbind(self): client = _get_basic_mock_client() api_portal_custom_domain_unbind(get_test_cmd(), client, 'rg', 'asa', 'my-domain.microsoft.com') args = client.api_portal_custom_domains.begin_delete.call_args_list self.assertEqual(1, len(args)) # one call self.assertEqual(4, len(args[0][0])) # 5 parameters self.assertEqual(('rg', 'asa', 'default', 'my-domain.microsoft.com'), args[0][0])
class ApiPortalUnitTest(unittest.TestCase): def _execute(self, method, cmd, client, *kwargs): pass def test_custom_domain(self): pass def test_custom_domain_with_cert(self): pass def _get_cert(*_, **__): pass def test_custom_domain_with_invalid_cert(self): pass def _get_cert(*_, **__): pass def test_custom_domain_unbind(self): pass
8
0
11
0
11
1
1
0.09
1
3
2
0
5
5
5
77
74
7
67
23
59
6
45
23
37
3
2
0
9
8,336
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/managed_component/test_writer.py
azext_spring.tests.latest.managed_component.test_writer.TestValidateComponentList
class TestValidateComponentList(unittest.TestCase): def test_default_writer(self): writer = DefaultWriter() buffer = io.StringIO() writer.write("test-data", end='', file=buffer) self.assertEqual("test-data", buffer.getvalue().strip()) def test_prefix_writer(self): writer = PrefixWriter("prefix") buffer = io.StringIO() writer.write("test-data", end='', file=buffer) self.assertEqual("prefix test-data", buffer.getvalue().strip())
class TestValidateComponentList(unittest.TestCase): def test_default_writer(self): pass def test_prefix_writer(self): pass
3
0
5
0
5
0
1
0
1
2
2
0
2
0
2
74
12
1
11
7
8
0
11
7
8
1
2
0
2
8,337
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/managed_component/test_managed_component_scenarios.py
azext_spring.tests.latest.managed_component.test_managed_component_scenarios.TestingWriter
class TestingWriter: def __init__(self, buffer): self.buffer = buffer def write(self, data, end='', file=None): self.buffer.append(data)
class TestingWriter: def __init__(self, buffer): pass def write(self, data, end='', file=None): pass
3
0
2
0
2
0
1
0
0
0
0
0
2
1
2
2
6
1
5
4
2
0
5
4
2
1
0
0
2
8,338
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/log_stream/test_log_stream_validators.py
azext_spring.tests.latest.log_stream.test_log_stream_validators.TestLogStreamValidator
class TestLogStreamValidator(unittest.TestCase): def test_valid_log_lines(self): valid_log_lines = [1, 2, 5, 10, 99, 100, 200, 10000] for lines in valid_log_lines: ns = Namespace( lines=lines, ) validate_log_lines(ns) self.assertEqual(lines, ns.lines) def test_log_lines_too_small(self): ns = Namespace( lines=-1, ) with self.assertRaises(InvalidArgumentValueError) as context: validate_log_lines(ns) self.assertEqual('--lines must be in the range [1,10000]', str(context.exception)) def test_log_lines_too_big(self): ns = Namespace( lines=10001, ) with self.assertLogs('cli.azext_spring.log_stream.log_stream_validators', 'ERROR') as cm: validate_log_lines(ns) expect_error_msgs = ['ERROR:cli.azext_spring.log_stream.log_stream_validators:' '--lines can not be more than 10000, using 10000 instead'] self.assertEqual(expect_error_msgs, cm.output) self.assertEqual(10000, ns.lines) def test_valid_log_since(self): valid_log_since = ['1h', '1m', '2m', '5m', '10m', '11m', '20m', '30m', '40m', '50m', '59m', '60m', '1s', '2s', '5s', '9s', '10s', '20s', '29s', '30s', '60s', '100s', '500s', '3000s', '3600s', '1', '2', '5', '10', '20', '29', '30', '3000', '3600'] for since in valid_log_since: ns = Namespace( since=since ) validate_log_since(ns) last = since[-1:] since_in_seconds = int(since[:-1]) if last in ("hms") else int(since) if last == 'h': since_in_seconds = since_in_seconds * 3600 elif last == 'm': since_in_seconds = since_in_seconds * 60 self.assertEqual(since_in_seconds, ns.since) def test_invalid_log_since(self): invalid_log_since = ['asdf1h', '1masdf', 'asdfe2m', 'asd5m', '1efef0m', '11mm'] for since in invalid_log_since: ns = Namespace( since=since ) with self.assertRaises(InvalidArgumentValueError) as context: validate_log_since(ns) self.assertEqual("--since contains invalid characters", str(context.exception)) def test_log_since_too_big(self): invalid_log_since = ['2h', '61m', '3601s', '9000s', '9000'] for since in invalid_log_since: ns = Namespace( since=since ) with self.assertRaises(InvalidArgumentValueError) as context: validate_log_since(ns) self.assertEqual("--since can not be more than 1h", str(context.exception)) def test_valid_log_limit(self): valid_log_limit = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048] for limit in valid_log_limit: ns = Namespace( limit=limit ) validate_log_limit(ns) self.assertEqual(limit * 1024, ns.limit) def test_negative_log_limit(self): invalid_log_limit = [-1, -2, -3, -4, -10, -100, -1000] for limit in invalid_log_limit: ns = Namespace( limit=limit ) with self.assertRaises(InvalidArgumentValueError) as context: validate_log_limit(ns) self.assertEqual('--limit must be in the range [1,2048]', str(context.exception)) def test_log_limit_too_big(self): invalid_log_limit = [2049, 2050, 3000, 3001, 10000, 20000, 100000] for limit in invalid_log_limit: ns = Namespace( limit=limit ) with self.assertLogs('cli.azext_spring.log_stream.log_stream_validators', 'ERROR') as cm: validate_log_limit(ns) error_msgs = ['ERROR:cli.azext_spring.log_stream.log_stream_validators:' '--limit can not be more than 2048, using 2048 instead'] self.assertEqual(error_msgs, cm.output) self.assertEqual(2048 * 1024, ns.limit) def test_invalid_max_log_requests(self): invalid_max_log_requests_number = [-100, -10, -1, 0] for num in invalid_max_log_requests_number: ns = Namespace( max_log_requests=num ) with self.assertRaises(InvalidArgumentValueError) as context: validate_max_log_requests(ns) self.assertEqual("--max-log-requests should be larger than 0.", str(context.exception)) def test_validate_thread_number(self): thread_num = 10 for max_allowed_thread_number in range(0, thread_num): with self.assertRaises(CLIError) as context: validate_thread_number(True, thread_num, max_allowed_thread_number) def test_valid_thread_number(self): thread_num = 2 for max_allowed_thread_number in range(thread_num, thread_num + 100): validate_thread_number(True, thread_num, max_allowed_thread_number) thread_num = 10 for max_allowed_thread_number in range(0, thread_num): validate_thread_number(False, thread_num, max_allowed_thread_number)
class TestLogStreamValidator(unittest.TestCase): def test_valid_log_lines(self): pass def test_log_lines_too_small(self): pass def test_log_lines_too_big(self): pass def test_valid_log_since(self): pass def test_invalid_log_since(self): pass def test_log_since_too_big(self): pass def test_valid_log_limit(self): pass def test_negative_log_limit(self): pass def test_log_limit_too_big(self): pass def test_invalid_max_log_requests(self): pass def test_validate_thread_number(self): pass def test_valid_thread_number(self): pass
13
0
10
1
9
0
2
0
1
4
0
0
12
0
12
84
133
22
111
55
98
0
85
47
72
5
2
2
26
8,339
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/jobs/test_asa_job_execution_instance.py
azext_spring.tests.latest.jobs.test_asa_job_execution_instance.JobExecutionInstanceTest
class JobExecutionInstanceTest(unittest.TestCase): def testDeserializeMultiInstances(self): self._doTestDeserializeMultiInstances(NORMAL_LIST_RESPONSE_WITH_2_INSTANCES) self._doTestDeserializeMultiInstances(LIST_RESPONSE_WITH_ADDITIONAL_FIELDS) def testDeserializeSingleInstance(self): collection = JobExecutionInstanceCollection.deserialize(json.loads(NORMAL_LIST_RESPONSE_WITH_1_INSTANCE)) self.assertIsNotNone(collection) self.assertIsNotNone(collection.value) self.assertEqual(type(collection.value), list) self.assertEqual(len(collection.value), 1) instance_0 = collection.value[0] self.assertEqual("sample-job-execution-instance-0", instance_0.name) def testDeserializeNoInstance(self): collection = JobExecutionInstanceCollection.deserialize(json.loads(NORMAL_LIST_RESPONSE_WITH_0_INSTANCES)) self.assertIsNotNone(collection) self.assertIsNotNone(collection.value) self.assertEqual(type(collection.value), list) self.assertEqual(len(collection.value), 0) def testDeserializeInvalidResponse(self): json_object = json.loads(LIST_RESPONSE_WITH_INVALID_FIELDS) collection = JobExecutionInstanceCollection.deserialize(json_object) self.assertIsNotNone(collection) self.assertIsNone(collection.value) def _doTestDeserializeMultiInstances(self, responseStr): collection = JobExecutionInstanceCollection.deserialize(json.loads(responseStr)) self.assertIsNotNone(collection) self.assertIsNotNone(collection.value) self.assertEqual(type(collection.value), list) self.assertEqual(len(collection.value), 2) instance_0 = collection.value[0] self.assertEqual("sample-job-execution-instance-0", instance_0.name) instance_1 = collection.value[1] self.assertEqual("sample-job-execution-instance-1", instance_1.name)
class JobExecutionInstanceTest(unittest.TestCase): def testDeserializeMultiInstances(self): pass def testDeserializeSingleInstance(self): pass def testDeserializeNoInstance(self): pass def testDeserializeInvalidResponse(self): pass def _doTestDeserializeMultiInstances(self, responseStr): pass
6
0
7
0
6
0
1
0
1
3
1
0
5
0
5
77
38
5
33
14
27
0
33
14
27
1
2
0
5
8,340
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/jobs/asa_job_test_utils.py
azext_spring.tests.latest.jobs.asa_job_test_utils.UpdateJobCaseData
class UpdateJobCaseData(object): def get_job_before(self): pass def envs(self): pass def secret_envs(self): pass def args(self): pass def list_env_secrets_collection(self): pass def expected_update_job_payload(self): pass def get_job_after(self): pass
class UpdateJobCaseData(object): def get_job_before(self): pass def envs(self): pass def secret_envs(self): pass def args(self): pass def list_env_secrets_collection(self): pass def expected_update_job_payload(self): pass def get_job_after(self): pass
8
0
2
0
2
0
1
0
1
0
0
2
7
0
7
7
21
6
15
8
7
0
15
8
7
1
1
0
7
8,341
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/jobs/asa_job_test_utils.py
azext_spring.tests.latest.jobs.asa_job_test_utils.UpdateJobCase2Data
class UpdateJobCase2Data(UpdateJobCaseData): def get_job_before(self): return JobResource.deserialize(json.loads(r''' { "properties": { "provisioningState": "Succeeded", "triggerConfig": { "triggerType": "Manual" }, "source": { "type": "BuildResult", "buildResultId": "<default>" }, "template": { "environmentVariables": [ { "name": "key1", "value": "value1" }, { "name": "env2", "value": "value2" }, { "name": "secretKey1", "secretValue": "*" }, { "name": "secretKey1", "secretValue": "*" } ], "args": [ "arg1", "arg2" ] } }, "systemData": { "createdBy": "sample-user", "createdByType": "User", "createdAt": "2021-08-11T03:16:03.944Z", "lastModifiedBy": "sample-user", "lastModifiedByType": "User", "lastModifiedAt": "2021-08-11T03:17:03.944Z" }, "type": "Microsoft.AppPlatform/Spring/jobs", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/jobs/test-job", "name": "test-job" } ''')) def envs(self): return None def secret_envs(self): return {"secretKey1": "secretValue1_2"} def args(self): return "arg3" def list_env_secrets_collection(self): return EnvSecretsCollection( value=[ Secret( name="secretKey1", value="secretValue1" ), Secret( name="secretKey2", value="secretValue2" ) ] ) def expected_update_job_payload(self): return JobResource.deserialize(json.loads(''' { "properties": { "template": { "environmentVariables": [ { "name": "key1", "value": "value1" }, { "name": "env2", "value": "value2" }, { "name": "secretKey1", "secretValue": "secretValue1_2" } ], "args": [ "arg3" ], "resourceRequests": {} }, "source": { "type": "BuildResult", "buildResultId": "<default>" }, "triggerConfig": { "triggerType": "Manual" } } } ''')) def get_job_after(self): return JobResource.deserialize(json.loads(r''' { "properties": { "provisioningState": "Succeeded", "triggerConfig": { "triggerType": "Manual" }, "source": { "type": "BuildResult", "buildResultId": "<default>" }, "template": { "environmentVariables": [ { "name": "key1", "value": "value1" }, { "name": "env2", "value": "value2" }, { "name": "secretKey1", "secretValue": "*" } ], "args": [ "arg3" ] } }, "systemData": { "createdBy": "sample-user", "createdByType": "User", "createdAt": "2021-08-11T03:16:03.944Z", "lastModifiedBy": "sample-user", "lastModifiedByType": "User", "lastModifiedAt": "2021-08-11T03:17:03.944Z" }, "type": "Microsoft.AppPlatform/Spring/jobs", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/jobs/test-job", "name": "test-job" } '''))
class UpdateJobCase2Data(UpdateJobCaseData): def get_job_before(self): pass def envs(self): pass def secret_envs(self): pass def args(self): pass def list_env_secrets_collection(self): pass def expected_update_job_payload(self): pass def get_job_after(self): pass
8
0
21
0
21
0
1
0
1
3
3
0
7
0
7
14
155
6
149
8
141
0
15
8
7
1
2
0
7
8,342
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/jobs/asa_job_test_utils.py
azext_spring.tests.latest.jobs.asa_job_test_utils.UpdateJobCase1Data
class UpdateJobCase1Data(UpdateJobCaseData): def get_job_before(self): return JobResource.deserialize(json.loads(r''' { "properties": { "provisioningState": "Succeeded", "triggerConfig": { "triggerType": "Manual" }, "source": { "type": "BuildResult", "buildResultId": "<default>" }, "template": { "environmentVariables": [ { "name": "key1", "value": "value1" }, { "name": "env2", "value": "value2" }, { "name": "secretKey1", "secretValue": "*" } ], "args": [ "arg1", "arg2" ] } }, "systemData": { "createdBy": "sample-user", "createdByType": "User", "createdAt": "2021-08-11T03:16:03.944Z", "lastModifiedBy": "sample-user", "lastModifiedByType": "User", "lastModifiedAt": "2021-08-11T03:17:03.944Z" }, "type": "Microsoft.AppPlatform/Spring/jobs", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/jobs/test-job", "name": "test-job" } ''')) def envs(self): return {"prop1": "v_prop1"} def secret_envs(self): return None def args(self): return None def list_env_secrets_collection(self): return EnvSecretsCollection( value=[ Secret( name="secretKey1", value="secretValue1" ) ] ) def expected_update_job_payload(self): return JobResource.deserialize(json.loads(''' { "properties": { "template": { "environmentVariables": [ { "name": "prop1", "value": "v_prop1" }, { "name": "secretKey1", "secretValue": "secretValue1" } ], "args": [ "arg1", "arg2" ], "resourceRequests": {} }, "source": { "type": "BuildResult", "buildResultId": "<default>" }, "triggerConfig": { "triggerType": "Manual" } } } ''')) def get_job_after(self): return JobResource.deserialize(json.loads(r''' { "properties": { "provisioningState": "Succeeded", "triggerConfig": { "triggerType": "Manual" }, "source": { "type": "BuildResult", "buildResultId": "<default>" }, "template": { "environmentVariables": [ { "name": "prop1", "value": "v_prop1" }, { "name": "secretKey1", "secretValue": "*" } ], "args": [ "arg1", "arg2" ] } }, "systemData": { "createdBy": "sample-user", "createdByType": "User", "createdAt": "2021-08-11T03:16:03.944Z", "lastModifiedBy": "sample-user", "lastModifiedByType": "User", "lastModifiedAt": "2021-08-11T03:17:03.944Z" }, "type": "Microsoft.AppPlatform/Spring/jobs", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/jobs/test-job", "name": "test-job" } '''))
class UpdateJobCase1Data(UpdateJobCaseData): def get_job_before(self): pass def envs(self): pass def secret_envs(self): pass def args(self): pass def list_env_secrets_collection(self): pass def expected_update_job_payload(self): pass def get_job_after(self): pass
8
0
19
0
19
0
1
0
1
3
3
0
7
0
7
14
141
6
135
8
127
0
15
8
7
1
2
0
7
8,343
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_app_insights_scenario.py
azext_spring.tests.latest.test_asa_app_insights_scenario.AzureSpringCloudCreateTests
class AzureSpringCloudCreateTests(ScenarioTest): default_sampling_rate = 10.0 def test_create_asc_with_ai_basic_case(self): self.kwargs.update({ 'serviceName': 'cli-unittest-11', 'SKU': 'Basic', 'location': 'eastus2', 'rg': 'cli' }) self.cmd('spring create -n {serviceName} -g {rg} --sku {SKU} -l {location} ' '--no-wait') self._wait_service(self.kwargs['rg'], self.kwargs['serviceName']) self._test_app_insights_enable_status(self.kwargs['rg'], self.kwargs['serviceName'], True) self._clean_service(self.kwargs['rg'], self.kwargs['serviceName']) def test_create_asc_heavy_cases(self): self.kwargs.update({ 'serviceName': 'cli-unittest', 'SKU': 'Basic', 'location': 'eastus2', 'rg': 'cli', 'shared_ai_name': 'cli_scenario_test_202207021820' }) rg = self.kwargs['rg'] ai_id, ai_i_key, ai_c_string = self._get_ai_info(rg, self.kwargs['shared_ai_name']) case_idx = 0 case_idx += 1 service_name = "{}-{}".format(self.kwargs['serviceName'], case_idx) self._test_create_asc_with_suffix(self.kwargs['SKU'], self.kwargs['location'], rg, service_name, True, '--app-insights {}'.format(ai_id)) case_idx += 1 service_name = "{}-{}".format(self.kwargs['serviceName'], case_idx) sampling_rate = 0.1 self._test_create_asc_with_suffix(self.kwargs['SKU'], self.kwargs['location'], rg, service_name, True, '--app-insights {} --sampling-rate {}'.format( self.kwargs['shared_ai_name'], sampling_rate), target_sampling_rate=sampling_rate) case_idx += 1 service_name = "{}-{}".format(self.kwargs['serviceName'], case_idx) sampling_rate = 1.0 self._test_create_asc_with_suffix(self.kwargs['SKU'], self.kwargs['location'], rg, service_name, True, '--app-insights-key {} --sampling-rate {}'.format(ai_i_key, sampling_rate), target_sampling_rate=sampling_rate) case_idx += 1 service_name = "{}-{}".format(self.kwargs['serviceName'], case_idx) sampling_rate = 10.0 self._test_create_asc_with_suffix(self.kwargs['SKU'], self.kwargs['location'], rg, service_name, True, '--app-insights-key "{}" --sampling-rate {}' .format(ai_c_string, sampling_rate), target_sampling_rate=sampling_rate) def test_create_asc_without_ai_cases(self): self.kwargs.update({ 'serviceName': 'cli-unittest-9', 'SKU': 'Basic', 'location': 'eastus2', 'rg': 'cli', }) rg = self.kwargs['rg'] case_idx = 0 case_idx += 1 service_name = "{}-{}".format(self.kwargs['serviceName'], case_idx) self._test_create_asc_with_suffix(self.kwargs['SKU'], self.kwargs['location'], rg, service_name, False, '--disable-app-insights') def test_negative_create_asc(self): self.kwargs.update({ 'serviceName': 'cli-unittest-10', 'SKU': 'Basic', 'location': 'eastus', 'rg': 'cli', 'anyString': 'anyString' }) negative_cmd_suffixes = [ # Conflict "--disable-app-insights --app-insights {anyString}", "--disable-app-insights true --app-insights {anyString}", "--disable-app-insights --app-insights-key {anyString}", "--disable-app-insights true --app-insights-key {anyString}", "--disable-app-insights --sampling-rate 50", "--disable-app-insights true --sampling-rate 50", "--disable-app-insights --enable-java-agent", "--disable-app-insights true --enable-java-agent", "--disable-app-insights --enable-java-agent true", "--disable-app-insights true --enable-java-agent true", "--disable-app-insights --app-insights {anyString} --app-insights-key {anyString}", "--disable-app-insights true --app-insights {anyString} --app-insights-key {anyString}", "--disable-app-insights --app-insights {anyString} --sampling-rate 50", "--disable-app-insights true --app-insights {anyString} --sampling-rate 50", "--disable-app-insights --app-insights {anyString} --enable-java-agent", "--disable-app-insights --app-insights {anyString} --enable-java-agent true", "--disable-app-insights true --app-insights {anyString} --enable-java-agent", "--disable-app-insights true --app-insights {anyString} --enable-java-agent true", "--disable-app-insights --app-insights {anyString} --app-insights-key {anyString} --sampling-rate 50", "--disable-app-insights true --app-insights {anyString} --app-insights-key {anyString} --sampling-rate 50", "--disable-app-insights --app-insights-key {anyString} --sampling-rate 50", "--disable-app-insights true --app-insights-key {anyString} --sampling-rate 50", "--app-insights-key {anyString} --app-insights {anyString}", # Invalid sampling rate "--sampling-rate -100", "--sampling-rate -10", "--sampling-rate -1", "--sampling-rate -0.1", "--sampling-rate 100.1", "--sampling-rate 101", "--sampling-rate 200", ] cmd_base = 'az spring create -g {rg} -n {serviceName} --sku {SKU} -l {location}' for suffix in negative_cmd_suffixes: cmd = '{} {}'.format(cmd_base, suffix) self.cmd(cmd, expect_failure=True) def test_asc_update(self): self.kwargs.update({ 'serviceName': 'cli-unittest10', 'rg': 'cli', 'shared_ai_name': 'cli_scenario_test_202207021820' }) rg = self.kwargs['rg'] service_name = self.kwargs['serviceName'] ai_id, ai_i_key, ai_c_string = self._get_ai_info(rg, self.kwargs['shared_ai_name']) self._test_asc_update_with_suffix( rg, service_name, True, '--app-insights {}'.format(self.kwargs['shared_ai_name'])) self._test_asc_update_with_suffix( rg, service_name, True, '--app-insights {}'.format(ai_id)) self._test_asc_update_with_suffix( rg, service_name, True, '--app-insights-key {}'.format(ai_i_key)) self._test_asc_update_with_suffix( rg, service_name, True, '--app-insights-key "{}"'.format(ai_c_string)) def test_az_asc_create(self): self.kwargs.update({ 'serviceName': 'cli-unittest-az1', 'location': 'eastus2euap', 'rg': 'cli' }) self.cmd('spring create -n {serviceName} -g {rg} -l {location} --disable-app-insights=true --zone-redundant=true', checks=[ self.check('properties.zoneRedundant', True) ]) self._clean_service(self.kwargs['rg'], self.kwargs['serviceName']) def test_negative_asc_update(self): self.kwargs.update({ 'serviceName': 'cli-unittest-10', 'rg': 'cli', 'anyString': 'anyString' }) negative_cmd_suffixes = [ # Conflict "--disable-app-insights --app-insights-key {anyString}", "--disable-app-insights --app-insights {anyString}", "--disable-app-insights true --app-insights {anyString}", "--app-insights-key {anyString} --app-insights {anyString}", ] cmd_base = 'az spring update -g {rg} -n {serviceName}' for suffix in negative_cmd_suffixes: cmd = '{} {}'.format(cmd_base, suffix) self.cmd(cmd, expect_failure=True) def test_asc_app_insights_update(self): self.kwargs.update({ 'serviceName': 'cli-unittest10', 'rg': 'cli', 'shared_ai_name': 'cli_scenario_test_202207021820' }) rg = self.kwargs['rg'] service_name = self.kwargs['serviceName'] ai_id, ai_i_key, ai_c_string = self._get_ai_info(rg, self.kwargs['shared_ai_name']) self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--app-insights {}'.format(self.kwargs['shared_ai_name'])) self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--app-insights {}'.format(ai_id)) self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--app-insights-key {}'.format(ai_i_key)) self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--app-insights-key {}'.format(ai_c_string)) sampling_rate = 0.0 self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--sampling-rate {}'.format(sampling_rate), target_sampling_rate=sampling_rate, disable_ai_first=False) sampling_rate = 0.1 self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--sampling-rate {}'.format(sampling_rate), target_sampling_rate=sampling_rate, disable_ai_first=False) sampling_rate = 1.0 self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--sampling-rate {}'.format(sampling_rate), target_sampling_rate=sampling_rate, disable_ai_first=False) sampling_rate = 10.0 self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--sampling-rate {}'.format(sampling_rate), target_sampling_rate=sampling_rate, disable_ai_first=False) sampling_rate = 50.0 self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--sampling-rate {}'.format(sampling_rate), target_sampling_rate=sampling_rate, disable_ai_first=False) sampling_rate = 99.0 self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--sampling-rate {}'.format(sampling_rate), target_sampling_rate=sampling_rate, disable_ai_first=False) sampling_rate = 100.0 self._test_asc_app_insights_update_with_suffix( rg, service_name, True, '--sampling-rate {}'.format(sampling_rate), target_sampling_rate=sampling_rate, disable_ai_first=False) def test_negative_asc_app_insights_update(self): self.kwargs.update({ 'serviceName': 'cli-unittest-10', 'SKU': 'Basic', 'location': 'eastus', 'rg': 'cli', 'anyString': 'anyString' }) negative_cmd_suffixes = [ # Conflict "--app-insights $(anyString) --app-insights-key $(anyString)", "--app-insights $(anyString) --app-insights-key $(anyString) --sampling-rate 50", "--app-insights $(anyString) --app-insights-key $(anyString) --disable", "--app-insights $(anyString) --app-insights-key $(anyString) --disable true", "--app-insights $(anyString) --app-insights-key $(anyString) --disable --sampling-rate 50", "--app-insights $(anyString) --app-insights-key $(anyString) --disable true --sampling-rate 50", "--app-insights $(anyString) --disable", "--app-insights $(anyString) --disable true", "--app-insights $(anyString) --disable --sampling-rate 50", "--app-insights $(anyString) --disable true --sampling-rate 50", "--app-insights-key $(anyString) --disable", "--app-insights-key $(anyString) --disable true", "--disable --sampling-rate 50", "--disable true --sampling-rate 50", # Invalid sampling-rate "--app-insights $(anyString) --sampling-rate -1000", "--app-insights $(anyString) --sampling-rate -100", "--app-insights $(anyString) --sampling-rate -10", "--app-insights $(anyString) --sampling-rate -1", "--app-insights $(anyString) --sampling-rate -0.1", "--app-insights $(anyString) --sampling-rate 101", "--app-insights $(anyString) --sampling-rate 110", "--app-insights $(anyString) --sampling-rate 1000", ] cmd_base = 'az spring app-insights update -g {rg} -n {serviceName}' for suffix in negative_cmd_suffixes: cmd = '{} {}'.format(cmd_base, suffix) self.cmd(cmd, expect_failure=True) def _test_create_asc_with_suffix(self, sku, location, rg, service_name, target_ai_status, cmd_suffix, target_sampling_rate=default_sampling_rate): cmd_base = 'spring create -n {} -g {} --sku {} -l {} --no-wait'.format(service_name, rg, sku, location) cmd = '{} {}'.format(cmd_base, cmd_suffix) self.cmd(cmd) self._wait_service(rg, service_name) self._test_app_insights_enable_status(rg, service_name, target_ai_status) if target_ai_status: self._test_sampling_rate(rg, service_name, target_sampling_rate) self._clean_service(rg, service_name) def _test_asc_app_insights_update_with_suffix(self, rg, service_name, target_ai_status, cmd_suffix, target_sampling_rate=default_sampling_rate, disable_ai_first=True): if disable_ai_first: self._asc_app_insights_update_disable_ai(rg, service_name) self.cmd('spring app-insights update -g {} -n {} --no-wait {}' .format(rg, service_name, cmd_suffix)) self._wait_ai(rg, service_name) self._test_app_insights_enable_status(rg, service_name, target_ai_status) self._test_sampling_rate(rg, service_name, target_sampling_rate) def _clean_service(self, rg, service_name): self.cmd('spring delete -n {} -g {} --no-wait' .format(service_name, rg)) def _wait_service(self, rg, service_name): for i in range(10): result = self.cmd('spring show -n {} -g {}'.format(service_name, rg)).get_output_in_json() if result['properties']['provisioningState'] == "Succeeded": break elif result['properties']['provisioningState'] == "Failed": exit(1) if (self.is_live): sleep_in_seconds = 30 time.sleep(sleep_in_seconds) def _test_asc_update_with_suffix(self, rg, service_name, target_ai_status, cmd_suffix): self._asc_update_disable_ai(rg, service_name) self.cmd('spring update -g {} -n {} --no-wait {}' .format(rg, service_name, cmd_suffix)) self._wait_ai(rg, service_name) self._test_app_insights_enable_status(rg, service_name, target_ai_status) def _test_app_insights_enable_status(self, rg, service_name, target_status): result = self.cmd('spring app-insights show -n {} -g {}'.format(service_name, rg)).get_output_in_json() self.assertEqual(result['traceEnabled'], target_status) def _test_sampling_rate(self, rg, service_name, target_sampling_rate): result = self.cmd('spring app-insights show -n {} -g {}'.format(service_name, rg)).get_output_in_json() self.assertEqual(result['appInsightsSamplingRate'], target_sampling_rate) def _asc_update_disable_ai(self, rg, service_name): self.cmd('spring update -g {} -n {} --disable-app-insights --no-wait'.format(rg, service_name)) self._wait_ai(rg, service_name) self._test_app_insights_enable_status(rg, service_name, False) def _asc_app_insights_update_disable_ai(self, rg, service_name): self.cmd('spring app-insights update -g {} -n {} --disable --no-wait'.format(rg, service_name)) self._wait_ai(rg, service_name) self._test_app_insights_enable_status(rg, service_name, False) def _wait_ai(self, rg, service_name): for i in range(100): result = self.cmd('spring app-insights show -g {} -n {} ' '--query "provisioningState" -o tsv' .format(rg, service_name)).output.strip() if result == "Succeeded": break elif result == "Failed": exit(1) if (self.is_live): sleep_in_seconds = 3 time.sleep(sleep_in_seconds) ''' Hard-code the information of application insights. Mask the instrumentation key and connection string. For first run, it will generate the yaml files in ./recording folder, need to use the unmasked ai_instrumentation_key and ai_connection_string. ''' def _get_ai_info(self, rg, ai_name): ai_resource_id = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli' \ '/providers/microsoft.insights/components/{}'.format(ai_name) ai_instrumentation_key = '00000000-0000-0000-0000-000000000000' ai_connection_string = 'InstrumentationKey=00000000-0000-0000-0000-000000000000;' \ 'IngestionEndpoint=https://xxxxxxxxxxxxxxxxxxxxxxxx/' return ai_resource_id, ai_instrumentation_key, ai_connection_string
class AzureSpringCloudCreateTests(ScenarioTest): def test_create_asc_with_ai_basic_case(self): pass def test_create_asc_heavy_cases(self): pass def test_create_asc_without_ai_cases(self): pass def test_negative_create_asc(self): pass def test_asc_update(self): pass def test_az_asc_create(self): pass def test_negative_asc_update(self): pass def test_asc_app_insights_update(self): pass def test_negative_asc_app_insights_update(self): pass def _test_create_asc_with_suffix(self, sku, location, rg, service_name, target_ai_status, cmd_suffix, target_sampling_rate=default_sampling_rate): pass def _test_asc_app_insights_update_with_suffix(self, rg, service_name, target_ai_status, cmd_suffix, target_sampling_rate=default_sampling_rate, disable_ai_first=True): pass def _clean_service(self, rg, service_name): pass def _wait_service(self, rg, service_name): pass def _test_asc_update_with_suffix(self, rg, service_name, target_ai_status, cmd_suffix): pass def _test_app_insights_enable_status(self, rg, service_name, target_status): pass def _test_sampling_rate(self, rg, service_name, target_sampling_rate): pass def _asc_update_disable_ai(self, rg, service_name): pass def _asc_app_insights_update_disable_ai(self, rg, service_name): pass def _wait_ai(self, rg, service_name): pass def _get_ai_info(self, rg, ai_name): pass
21
0
17
1
15
0
2
0.03
1
1
0
0
20
0
20
20
367
49
308
66
283
10
152
62
131
5
1
2
33
8,344
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_app_insights_validator.py
azext_spring.tests.latest.test_asa_app_insights_validator.TestAppInsightsValidators
class TestAppInsightsValidators(unittest.TestCase): def test_validate_tracing_parameters_asc_create_param_conflict_1(self): ns = Namespace(app_insights="fake-app-insights-name", app_insights_key=None, sampling_rate=None, disable_app_insights=True) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_create(ns) self.assertTrue("Conflict detected: '--app-insights' or '--app-insights-key' or '--sampling-rate' " "can not be set with '--disable-app-insights'." in str(context.exception)) def test_validate_tracing_parameters_asc_create_param_conflict_2(self): ns = Namespace(app_insights=None, app_insights_key="0000-0000-0000-0000", sampling_rate=None, disable_app_insights=True) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_create(ns) self.assertTrue("Conflict detected: '--app-insights' or '--app-insights-key' or '--sampling-rate' " "can not be set with '--disable-app-insights'." in str(context.exception)) def test_validate_tracing_parameters_asc_create_param_conflict_3(self): ns = Namespace(app_insights=None, app_insights_key=None, sampling_rate=50, disable_app_insights=True) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_create(ns) self.assertTrue("Conflict detected: '--app-insights' or '--app-insights-key' or '--sampling-rate' " "can not be set with '--disable-app-insights'." in str(context.exception)) def test_validate_tracing_parameters_asc_create_param_conflict_4(self): ns = Namespace(app_insights="fake-app-insights-name", app_insights_key=None, sampling_rate=50, disable_app_insights=True) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_create(ns) self.assertTrue("Conflict detected: '--app-insights' or '--app-insights-key' or '--sampling-rate' " "can not be set with '--disable-app-insights'." in str(context.exception)) def test_validate_tracing_parameters_asc_create_param_conflict_5(self): ns = Namespace(app_insights="fake-app-insights-name", app_insights_key="0000-000-0000-0000", sampling_rate=None, disable_app_insights=None) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_create(ns) self.assertTrue("Conflict detected: '--app-insights' and '--app-insights-key' " "can not be set at the same time." in str(context.exception)) def test_validate_tracing_parameters_asc_create_param_conflict_6(self): ns = Namespace(app_insights="fake-app-insights-name", app_insights_key="0000-000-0000-0000", sampling_rate=None, disable_app_insights=False) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_create(ns) self.assertTrue("Conflict detected: '--app-insights' and '--app-insights-key' " "can not be set at the same time." in str(context.exception)) def test_validate_tracing_parameters_asc_create_param_conflict_7(self): ns = Namespace(app_insights="", app_insights_key=None, sampling_rate=None, disable_app_insights=None) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_create(ns) self.assertTrue("Invalid value: '--app-insights' can not be empty." in str(context.exception)) def test_validate_tracing_parameters_asc_create_param_conflict_8(self): ns = Namespace(app_insights=None, app_insights_key=None, sampling_rate=-1, disable_app_insights=None) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_create(ns) self.assertTrue("Invalid value: Sampling Rate must be in the range [0,100]." in str(context.exception)) def test_validate_tracing_parameters_asc_create_param_conflict_9(self): ns = Namespace(app_insights=None, app_insights_key=None, sampling_rate=101, disable_app_insights=None) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_create(ns) self.assertTrue("Invalid value: Sampling Rate must be in the range [0,100]." in str(context.exception)) def test_validate_tracing_parameters_asc_update_param_conflict_1(self): ns = Namespace(app_insights="fake-app-insights-name", app_insights_key=None, disable_app_insights=True) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_update(ns) self.assertTrue("Conflict detected: '--app-insights' or '--app-insights-key' " "can not be set with '--disable-app-insights'." in str(context.exception)) def test_validate_tracing_parameters_asc_update_param_conflict_2(self): ns = Namespace(app_insights=None, app_insights_key="0000-000-0000-0000", disable_app_insights=True) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_update(ns) self.assertTrue("Conflict detected: '--app-insights' or '--app-insights-key' " "can not be set with '--disable-app-insights'." in str(context.exception)) def test_validate_tracing_parameters_asc_update_param_conflict_3(self): ns = Namespace(app_insights="fake-app-insights-name", app_insights_key="0000-000-0000-0000", disable_app_insights=False) with self.assertRaises(CLIError) as context: validate_tracing_parameters_asc_update(ns) self.assertTrue("Conflict detected: '--app-insights' and '--app-insights-key' " "can not be set at the same time." in str(context.exception)) def test_validate_java_agent_parameters(self): ns = Namespace(enable_java_agent=True, disable_app_insights=True) with self.assertRaises(CLIError) as context: validate_java_agent_parameters(ns) self.assertTrue("Conflict detected: '--enable-java-agent' and '--disable-app-insights' " "can not be set at the same time." in str(context.exception)) def test_validate_app_insights_parameters_1(self): ns = Namespace(app_insights="fake-app-insights-name", app_insights_key=None, sampling_rate=None, disable=True) with self.assertRaises(CLIError) as context: validate_app_insights_parameters(get_test_cmd(), ns) self.assertTrue("Conflict detected: '--app-insights' or '--app-insights-key' or '--sampling-rate' " "can not be set with '--disable'." in str(context.exception)) def test_validate_app_insights_parameters_2(self): ns = Namespace(app_insights=None, app_insights_key=None, sampling_rate=50, disable=True) with self.assertRaises(CLIError) as context: validate_app_insights_parameters(get_test_cmd(), ns) self.assertTrue("Conflict detected: '--app-insights' or '--app-insights-key' or '--sampling-rate' " "can not be set with '--disable'." in str(context.exception)) def test_validate_app_insights_parameters_3(self): ns = Namespace(app_insights=None, app_insights_key=None, sampling_rate=None, disable=False) with self.assertRaises(CLIError) as context: validate_app_insights_parameters(get_test_cmd(), ns) self.assertTrue("Invalid value: nothing is updated for application insights." in str(context.exception))
class TestAppInsightsValidators(unittest.TestCase): def test_validate_tracing_parameters_asc_create_param_conflict_1(self): pass def test_validate_tracing_parameters_asc_create_param_conflict_2(self): pass def test_validate_tracing_parameters_asc_create_param_conflict_3(self): pass def test_validate_tracing_parameters_asc_create_param_conflict_4(self): pass def test_validate_tracing_parameters_asc_create_param_conflict_5(self): pass def test_validate_tracing_parameters_asc_create_param_conflict_6(self): pass def test_validate_tracing_parameters_asc_create_param_conflict_7(self): pass def test_validate_tracing_parameters_asc_create_param_conflict_8(self): pass def test_validate_tracing_parameters_asc_create_param_conflict_9(self): pass def test_validate_tracing_parameters_asc_update_param_conflict_1(self): pass def test_validate_tracing_parameters_asc_update_param_conflict_2(self): pass def test_validate_tracing_parameters_asc_update_param_conflict_3(self): pass def test_validate_java_agent_parameters(self): pass def test_validate_app_insights_parameters_1(self): pass def test_validate_app_insights_parameters_2(self): pass def test_validate_app_insights_parameters_3(self): pass
17
0
8
0
8
0
1
0
1
2
0
0
16
0
16
88
151
15
136
49
119
0
81
33
64
1
2
1
16
8,345
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_app_validator.py
azext_spring.tests.latest.test_asa_app_validator.TestCpuAndMemoryValidator
class TestCpuAndMemoryValidator(unittest.TestCase): def test_none_input(self): ns = Namespace(cpu=None, memory=None) validate_memory(ns) validate_cpu(ns) self.assertIsNone(ns.cpu) self.assertIsNone(ns.memory) def test_int_input(self): ns = Namespace(cpu='1', memory='1') validate_memory(ns) validate_cpu(ns) self.assertEqual('1', ns.cpu) self.assertEqual('1Gi', ns.memory) def test_str_input(self): ns = Namespace(cpu='1', memory='1Gi') validate_memory(ns) validate_cpu(ns) self.assertEqual('1', ns.cpu) self.assertEqual('1Gi', ns.memory) def test_invalid_memory(self): ns = Namespace(memory='invalid') with self.assertRaises(InvalidArgumentValueError) as context: validate_memory(ns) self.assertEqual('Memory quantity should be integer followed by unit (Mi/Gi)', str(context.exception)) def test_invalid_cpu(self): ns = Namespace(cpu='invalid') with self.assertRaises(InvalidArgumentValueError) as context: validate_cpu(ns) self.assertEqual('CPU quantity should be millis (250m, 500m, 750m, 1250m) or integer (1, 2, ...)', str(context.exception))
class TestCpuAndMemoryValidator(unittest.TestCase): def test_none_input(self): pass def test_int_input(self): pass def test_str_input(self): pass def test_invalid_memory(self): pass def test_invalid_cpu(self): pass
6
0
6
0
6
0
1
0
1
2
0
0
5
0
5
77
34
4
30
13
24
0
29
11
23
1
2
1
5
8,346
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_application_configuration_service.py
azext_spring.tests.latest.test_asa_application_configuration_service.TestAcsShowConfigurationFiles
class TestAcsShowConfigurationFiles(unittest.TestCase): def test_show_configuration_files_for_acs_gen_1(self): response_str = r""" { "configurationFiles": { "application.properties": "properties-name: sample-test\nspring.config.activate.on-profile: default" } } """ result = _split_config_lines(json.loads(response_str)) expected_file_content = r"properties-name: sample-test\nspring.config.activate.on-profile: default" file_content_arr = result.get("configurationFiles").get("application.properties") self.assertTrue(isinstance(file_content_arr, list)) self.assertEqual(len(file_content_arr), 2) self.assertTrue(r"properties-name: sample-test" in file_content_arr) self.assertTrue(r"spring.config.activate.on-profile: default" in file_content_arr) def test_show_configuration_files_for_acs_gen_2(self): response_str = r""" { "configurationFiles": { "application.properties": "properties-name: sample-test\nspring.config.activate.on-profile: default" } } """ result = _split_config_lines(json.loads(response_str)) expected_file_content = r"properties-name: sample-test\nspring.config.activate.on-profile: default" file_content_arr = result.get("configurationFiles").get("application.properties") self.assertTrue(isinstance(file_content_arr, list)) self.assertEqual(len(file_content_arr), 2) self.assertTrue(r"properties-name: sample-test" in file_content_arr) self.assertTrue(r"spring.config.activate.on-profile: default" in file_content_arr) self.assertIsNone(result.get("metadata")) def test_show_configuration_files_for_acs_gen_2_with_git_revision(self): response_str = r''' { "configurationFiles": { "application.properties": "properties-name: sample-test\nspring.config.activate.on-profile: default" }, "metadata": { "gitRevisions": "[{\"url\": \"https://sample.url\", \"revision\": \"main@sha1:sample-commit-id\"}]" } } ''' result = _split_config_lines(json.loads(response_str)) expected_file_content = r"properties-name: sample-test\nspring.config.activate.on-profile: default" file_content_arr = result.get("configurationFiles").get("application.properties") self.assertTrue(isinstance(file_content_arr, list)) self.assertEqual(len(file_content_arr), 2) self.assertTrue(r"properties-name: sample-test" in file_content_arr) self.assertTrue(r"spring.config.activate.on-profile: default" in file_content_arr) self.assertIsNotNone(result.get("metadata")) metadata = result.get("metadata") expected_revisions = "[{\"url\": \"https://sample.url\", \"revision\": \"main@sha1:sample-commit-id\"}]" self.assertEqual(metadata.get("gitRevisions"), expected_revisions) def test_show_configuration_files_for_acs_gen_2_with_null_metadata(self): response_str = r''' { "configurationFiles": { "application.properties": "properties-name: sample-test\nspring.config.activate.on-profile: default" }, "metadata": null } ''' result = _split_config_lines(json.loads(response_str)) expected_file_content = r"properties-name: sample-test\nspring.config.activate.on-profile: default" file_content_arr = result.get("configurationFiles").get("application.properties") self.assertTrue(isinstance(file_content_arr, list)) self.assertEqual(len(file_content_arr), 2) self.assertTrue(r"properties-name: sample-test" in file_content_arr) self.assertTrue(r"spring.config.activate.on-profile: default" in file_content_arr) self.assertIsNone(result.get("metadata"))
class TestAcsShowConfigurationFiles(unittest.TestCase): def test_show_configuration_files_for_acs_gen_1(self): pass def test_show_configuration_files_for_acs_gen_2(self): pass def test_show_configuration_files_for_acs_gen_2_with_git_revision(self): pass def test_show_configuration_files_for_acs_gen_2_with_null_metadata(self): pass
5
0
18
1
18
0
1
0
1
1
0
0
4
0
4
76
76
5
71
23
66
0
43
23
38
1
2
0
4
8,347
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/group/static_member/_create.py
azext_network_manager.aaz.latest.network.manager.group.static_member._create.Create.StaticMembersCreateOrUpdate
class StaticMembersCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkGroupName", self.ctx.args.network_group_name, required=True, ), **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "staticMemberName", self.ctx.args.static_member_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("resourceId", AAZStrType, ".resource_id") return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.etag = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.region = AAZStrType( flags={"read_only": True}, ) properties.resource_id = AAZStrType( serialized_name="resourceId", ) system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200_201
class StaticMembersCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
14
1
13
0
1
0
1
0
0
0
9
0
10
10
160
19
141
32
122
0
57
24
46
2
1
1
13
8,348
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/group/_wait.py
azext_network_manager.aaz.latest.network.manager.group._wait.Wait.NetworkGroupsGet
class NetworkGroupsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkGroupName", self.ctx.args.network_group_name, required=True, ), **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType( flags={"read_only": True}, ) _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class NetworkGroupsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
13
1
12
0
1
0
1
0
0
0
8
0
9
9
133
16
117
28
100
0
49
21
39
2
1
1
11
8,349
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/group/_update.py
azext_network_manager.aaz.latest.network.manager.group._update.Update.NetworkGroupsGet
class NetworkGroupsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkGroupName", self.ctx.args.network_group_name, required=True, ), **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _UpdateHelper._build_schema_network_group_read(cls._schema_on_200) return cls._schema_on_200
class NetworkGroupsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
7
0
7
0
1
0
1
1
1
0
8
0
9
9
86
13
73
25
56
0
33
18
23
2
1
1
11
8,350
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/group/_update.py
azext_network_manager.aaz.latest.network.manager.group._update.Update.NetworkGroupsCreateOrUpdate
class NetworkGroupsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkGroupName", self.ctx.args.network_group_name, required=True, ), **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "If-Match", self.ctx.args.if_match, ), **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _UpdateHelper._build_schema_network_group_read( cls._schema_on_200_201) return cls._schema_on_200_201
class NetworkGroupsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
8
0
8
0
1
0
1
1
1
0
9
0
10
10
101
15
86
28
67
0
36
20
25
2
1
1
12
8,351
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/group/_list.py
azext_network_manager.aaz.latest.network.manager.group._list.List.NetworkGroupsList
class NetworkGroupsList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "$skipToken", self.ctx.args.skip_token, ), **self.serialize_query_param( "$top", self.ctx.args.top, ), **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class NetworkGroupsList(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
14
1
13
0
1
0
1
0
0
0
8
0
9
9
144
18
126
30
109
0
54
23
44
2
1
1
11
8,352
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/group/_delete.py
azext_network_manager.aaz.latest.network.manager.group._delete.Delete.NetworkGroupsDelete
class NetworkGroupsDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200, self.on_error, lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200, self.on_error, lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_204, self.on_error, lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkGroupName", self.ctx.args.network_group_name, required=True, ), **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "force", self.ctx.args.force, ), **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class NetworkGroupsDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
10
0
9
0
1
0
1
0
0
0
8
1
8
8
91
9
82
20
68
0
28
14
19
4
1
1
11
8,353
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/group/_create.py
azext_network_manager.aaz.latest.network.manager.group._create.Create.NetworkGroupsCreateOrUpdate
class NetworkGroupsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkGroupName", self.ctx.args.network_group_name, required=True, ), **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "If-Match", self.ctx.args.if_match, ), **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("description", AAZStrType, ".description") return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.etag = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200_201
class NetworkGroupsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
13
1
12
0
1
0
1
0
0
0
9
0
10
10
154
19
135
32
116
0
56
24
45
2
1
1
13
8,354
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/connection/subscription/_update.py
azext_network_manager.aaz.latest.network.manager.connection.subscription._update.Update.SubscriptionNetworkManagerConnectionsGet
class SubscriptionNetworkManagerConnectionsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerConnectionName", self.ctx.args.connection_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _UpdateHelper._build_schema_network_manager_connection_read( cls._schema_on_200) return cls._schema_on_200
class SubscriptionNetworkManagerConnectionsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
6
0
6
0
1
0
1
1
1
0
8
0
9
9
78
13
65
25
48
0
33
18
23
2
1
1
11
8,355
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_buildpack_binding_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._buildpack_binding_operations.BuildpackBindingOperations
class BuildpackBindingOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`buildpack_binding` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def list_for_cluster( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuildpackBindingResource"]: """Get collection of buildpack bindings under all builders. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either BuildpackBindingResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_for_cluster_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, **kwargs: Any ) -> _models.BuildpackBindingResource: """Get a buildpack binding by name. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. :type buildpack_binding_name: str :return: BuildpackBindingResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, buildpack_binding_name=buildpack_binding_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], **kwargs: Any ) -> _models.BuildpackBindingResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(buildpack_binding, (IOBase, bytes)): _content = buildpack_binding else: _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, buildpack_binding_name=buildpack_binding_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, buildpack_binding: _models.BuildpackBindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildpackBindingResource]: """Create or update a buildpack binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. :type buildpack_binding_name: str :param buildpack_binding: The target buildpack binding for the create or update operation. Required. :type buildpack_binding: ~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, buildpack_binding: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildpackBindingResource]: """Create or update a buildpack binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. :type buildpack_binding_name: str :param buildpack_binding: The target buildpack binding for the create or update operation. Required. :type buildpack_binding: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.BuildpackBindingResource]: """Create or update a buildpack binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. :type buildpack_binding_name: str :param buildpack_binding: The target buildpack binding for the create or update operation. Is either a BuildpackBindingResource type or a IO[bytes] type. Required. :type buildpack_binding: ~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, buildpack_binding_name=buildpack_binding_name, buildpack_binding=buildpack_binding, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.BuildpackBindingResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, buildpack_binding_name=buildpack_binding_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Operation to delete a Buildpack Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. :type buildpack_binding_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, buildpack_binding_name=buildpack_binding_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuildpackBindingResource"]: """Handles requests to list all buildpack bindings in a builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :return: An iterator like instance of either BuildpackBindingResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, build_service_name=build_service_name, builder_name=builder_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data)
class BuildpackBindingOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`buildpack_binding` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace def list_for_cluster( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuildpackBindingResource"]: '''Get collection of buildpack bindings under all builders. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either BuildpackBindingResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass @distributed_trace_async async def get_next(next_link=None): '''Get a buildpack binding by name. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. :type buildpack_binding_name: str :return: BuildpackBindingResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], **kwargs: Any ) -> _models.BuildpackBindingResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, buildpack_binding: _models.BuildpackBindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildpackBindingResource]: '''Create or update a buildpack binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. :type buildpack_binding_name: str :param buildpack_binding: The target buildpack binding for the create or update operation. Required. :type buildpack_binding: ~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, buildpack_binding: _models.BuildpackBindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildpackBindingResource]: '''Create or update a buildpack binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. :type buildpack_binding_name: str :param buildpack_binding: The target buildpack binding for the create or update operation. Required. :type buildpack_binding: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, buildpack_binding: _models.BuildpackBindingResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.BuildpackBindingResource]: '''Create or update a buildpack binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. :type buildpack_binding_name: str :param buildpack_binding: The target buildpack binding for the create or update operation. Is either a BuildpackBindingResource type or a IO[bytes] type. Required. :type buildpack_binding: ~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, buildpack_binding_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Operation to delete a Buildpack Binding. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. :type buildpack_binding_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list_for_cluster( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.BuildpackBindingResource"]: '''Handles requests to list all buildpack bindings in a builder. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param build_service_name: The name of the build service resource. Required. :type build_service_name: str :param builder_name: The name of the builder resource. Required. :type builder_name: str :return: An iterator like instance of either BuildpackBindingResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass
26
8
39
4
28
9
3
0.38
0
7
0
0
10
5
10
10
625
74
412
181
318
158
196
106
177
6
0
1
48
8,356
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/connection/subscription/_update.py
azext_network_manager.aaz.latest.network.manager.connection.subscription._update.Update.SubscriptionNetworkManagerConnectionsCreateOrUpdate
class SubscriptionNetworkManagerConnectionsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerConnectionName", self.ctx.args.connection_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _UpdateHelper._build_schema_network_manager_connection_read( cls._schema_on_200_201) return cls._schema_on_200_201
class SubscriptionNetworkManagerConnectionsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
7
0
6
0
1
0
1
1
1
0
9
0
10
10
90
15
75
28
56
0
36
20
25
2
1
1
12
8,357
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_certificate.py
azext_spring.tests.latest.test_asa_certificate.CertificateTests
class CertificateTests(BasicTest): def test_create_certificate(self): client = self._get_basic_mock_client() certificate_add(get_test_cmd(), client, 'rg', 'asc', 'my-cert', False, "vault-uri", "kv-cert-name") args = client.certificates.begin_create_or_update.call_args_list self.assertEqual(1, len(args)) self.assertEqual(4, len(args[0][0])) self.assertEqual(('rg', 'asc', 'my-cert'), args[0][0][0:3]) resource = args[0][0][3] self.assertEqual('vault-uri', resource.properties.vault_uri) self.assertEqual('kv-cert-name', resource.properties.key_vault_cert_name) def test_update_certificate(self): client = self._get_basic_mock_client() client.certificates.get.return_value = models.CertificateResource( properties=models.KeyVaultCertificateProperties( type="KeyVaultCertificate", vault_uri="vault-uri", key_vault_cert_name="kv-cert-name", exclude_private_key=False, auto_sync="Disabled") ) certificate_update(get_test_cmd(), client, 'rg', 'asc', 'my-cert', True) args = client.certificates.begin_create_or_update.call_args_list self.assertEqual(1, len(args)) self.assertEqual(4, len(args[0][0])) self.assertEqual(('rg', 'asc', 'my-cert'), args[0][0][0:3]) resource = args[0][0][3] self.assertEqual("Enabled", resource.properties.auto_sync)
class CertificateTests(BasicTest): def test_create_certificate(self): pass def test_update_certificate(self): pass
3
0
14
0
14
0
1
0
1
2
2
0
2
0
2
75
31
2
29
9
26
0
21
9
18
1
3
0
2
8,358
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_certificate.py
azext_spring.tests.latest.test_asa_certificate.BasicTest
class BasicTest(unittest.TestCase): def _get_basic_mock_client(self, sku='Standard'): client = mock.MagicMock() client.services.get.return_value = models.ServiceResource( sku=models.Sku( tier=sku, name=_get_sku_name(sku) ) ) return client
class BasicTest(unittest.TestCase): def _get_basic_mock_client(self, sku='Standard'): pass
2
0
9
0
9
0
1
0
1
3
2
1
1
0
1
73
10
0
10
3
8
0
5
3
3
1
2
0
1
8,359
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_buildpack_binding.py
azext_spring.tests.latest.test_asa_buildpack_binding.TearDown
class TearDown(SpringSubResourceWrapper): def __init__(self, resource_group_parameter_name='resource_group', spring_parameter_name='spring'): super(TearDown, self).__init__() self.cli_ctx = get_dummy_cli() self.resource_group_parameter_name = resource_group_parameter_name self.spring_parameter_name = spring_parameter_name def create_resource(self, *_, **kwargs): self.resource_group = self._get_resource_group(**kwargs) self.spring = self._get_spring(**kwargs) def remove_resource(self, *_, **__): self._safe_exec( 'spring build-service builder buildpack-binding delete --name {} -g {} -s {} --yes'.format(BINDING_NAME, self.resource_group, self.spring)) self._safe_exec( 'spring build-service builder buildpack-binding delete --name {}-0 -g {} -s {} --yes'.format(BINDING_NAME, self.resource_group, self.spring))
class TearDown(SpringSubResourceWrapper): def __init__(self, resource_group_parameter_name='resource_group', spring_parameter_name='spring'): pass def create_resource(self, *_, **kwargs): pass def remove_resource(self, *_, **__): pass
4
0
6
0
6
0
1
0
1
1
0
0
3
5
3
7
22
2
20
11
14
0
12
9
8
1
2
0
3
8,360
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_build_service_builder_scenario.py
azext_spring.tests.latest.test_asa_build_service_builder_scenario.TearDown
class TearDown(SpringSubResourceWrapper): def __init__(self, resource_group_parameter_name='resource_group', spring_parameter_name='spring'): super(TearDown, self).__init__() self.cli_ctx = get_dummy_cli() self.resource_group_parameter_name = resource_group_parameter_name self.spring_parameter_name = spring_parameter_name def create_resource(self, *_, **kwargs): self.resource_group = self._get_resource_group(**kwargs) self.spring = self._get_spring(**kwargs) def remove_resource(self, *_, **__): self._safe_exec( 'spring build-service builder delete -n {} -g {} -s {} --yes'.format(BUILDER_NAME, self.resource_group, self.spring))
class TearDown(SpringSubResourceWrapper): def __init__(self, resource_group_parameter_name='resource_group', spring_parameter_name='spring'): pass def create_resource(self, *_, **kwargs): pass def remove_resource(self, *_, **__): pass
4
0
5
0
5
0
1
0
1
1
0
0
3
5
3
7
17
2
15
11
9
0
11
9
7
1
2
0
3
8,361
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_build_service_build_scenario.py
azext_spring.tests.latest.test_asa_build_service_build_scenario.BuildServiceBuildTest
class BuildServiceBuildTest(ScenarioTest): def test_build(self): self.kwargs.update({ 'serviceName': 'cli-unittest-e', 'rg': 'cli', 'name': 'test', 'result': '1', }) self.cmd('spring build-service build show -n {name} -g {rg} --service {serviceName}', checks=[ self.check('name', '{name}'), self.check('properties.resourceRequests.cpu', '1'), self.check('properties.resourceRequests.memory', '2Gi'), self.check('properties.provisioningState', 'Succeeded'), ]) self.cmd('spring build-service build result show -n {result} --build-name {name} -g {rg} --service {serviceName}', checks=[ self.check('name', '{result}'), self.check('properties.provisioningState', 'Succeeded'), ]) self.cmd('spring build-service build delete -n {name} -g {rg} --service {serviceName} -y') def test_container_registry(self): self.kwargs.update({ 'serviceName': 'cli-unittest-e', 'rg': 'cli', 'name': 'default', 'server': 'clitest1.azurecr.io', 'username': 'clitest1', }) self.cmd('spring container-registry show -n {name} -g {rg} --service {serviceName}', checks=[ self.check('name', '{name}'), self.check('properties.credentials.server', '{server}'), self.check('properties.credentials.username', '{username}'), ]) self.cmd('spring container-registry delete -n {name} -g {rg} --service {serviceName} -y') def test_build_service(self): self.kwargs.update({ 'serviceName': 'cli-unittest-e', 'rg': 'cli', 'registry': 'my-acr', }) self.cmd('spring build-service show -g {rg} --service {serviceName}', checks=[ self.check('name', 'default'), self.check('properties.provisioningState', 'Succeeded'), ])
class BuildServiceBuildTest(ScenarioTest): def test_build(self): pass def test_container_registry(self): pass def test_build_service(self): pass
4
0
15
1
14
0
1
0
1
0
0
0
3
0
3
3
49
6
43
4
39
0
13
4
9
1
1
0
3
8,362
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_application_configuration_service_scenario.py
azext_spring.tests.latest.test_asa_application_configuration_service_scenario.TearDown
class TearDown(SpringSubResourceWrapper): def __init__(self, resource_group_parameter_name='resource_group', spring_parameter_name='spring'): super(TearDown, self).__init__() self.cli_ctx = get_dummy_cli() self.resource_group_parameter_name = resource_group_parameter_name self.spring_parameter_name = spring_parameter_name def create_resource(self, *_, **kwargs): self.resource_group = self._get_resource_group(**kwargs) self.spring = self._get_spring(**kwargs) try: self.live_only_execute(self.cli_ctx, 'spring application-configuration-service create -g {} -s {}' .format(self.resource_group, self.spring)) except: pass def remove_resource(self, *_, **__): self.live_only_execute(self.cli_ctx, 'spring application-configuration-service delete -g {} -s {} --yes' .format(self.resource_group, self.spring))
class TearDown(SpringSubResourceWrapper): def __init__(self, resource_group_parameter_name='resource_group', spring_parameter_name='spring'): pass def create_resource(self, *_, **kwargs): pass def remove_resource(self, *_, **__): pass
4
0
6
0
6
0
1
0
1
1
0
0
3
5
3
7
21
2
19
11
13
0
15
9
11
2
2
1
4
8,363
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_application_configuration_service.py
azext_spring.tests.latest.test_asa_application_configuration_service.TestApplicationConfigurationServiceValidator
class TestApplicationConfigurationServiceValidator(unittest.TestCase): def test_validate_refresh_interval_parameter(self): ns = Namespace(refresh_interval="a") with self.assertRaises(InvalidArgumentValueError) as context: validate_refresh_interval(ns) self.assertEqual("--refresh-interval should be a number.", str(context.exception)) ns = Namespace(refresh_interval=-1) with self.assertRaises(ArgumentUsageError) as context: validate_refresh_interval(ns) self.assertEqual("--refresh-interval must be greater than or equal to 0.", str(context.exception))
class TestApplicationConfigurationServiceValidator(unittest.TestCase): def test_validate_refresh_interval_parameter(self): pass
2
0
10
1
9
0
1
0
1
2
0
0
1
0
1
73
11
1
10
4
8
0
10
3
8
1
2
1
1
8,364
Azure/azure-cli-extensions
src/spring/azext_spring/tests/latest/test_asa_application_configuration_service.py
azext_spring.tests.latest.test_asa_application_configuration_service.TestApplicationConfigurationService
class TestApplicationConfigurationService(BasicTest): def test_acs_create(self): self._execute('rg', 'Gen1', 120) resource = self.created_resource self.assertIsNotNone(resource.properties) self.assertEqual(120, resource.properties.settings.refresh_interval_in_seconds)
class TestApplicationConfigurationService(BasicTest): def test_acs_create(self): pass
2
0
5
0
5
0
1
0
1
0
0
0
1
0
1
76
6
0
6
3
4
0
6
3
4
1
3
0
1
8,365
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/connection/subscription/_show.py
azext_network_manager.aaz.latest.network.manager.connection.subscription._show.Show.SubscriptionNetworkManagerConnectionsGet
class SubscriptionNetworkManagerConnectionsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerConnectionName", self.ctx.args.connection_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-01-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType( flags={"read_only": True}, ) _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.connection_state = AAZStrType( serialized_name="connectionState", flags={"read_only": True}, ) properties.description = AAZStrType() properties.network_manager_id = AAZStrType( serialized_name="networkManagerId", ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class SubscriptionNetworkManagerConnectionsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
12
1
11
0
1
0
1
0
0
0
8
0
9
9
128
16
112
28
95
0
50
21
40
2
1
1
11
8,366
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/models/_models_py3.py
azext_custom_providers.vendored_sdks.customproviders.models._models_py3.CustomRPValidations
class CustomRPValidations(msrest.serialization.Model): """A validation to apply on custom resource provider requests. All required parameters must be populated in order to send to Azure. :param validation_type: The type of validation to run against a matching request. Possible values include: "Swagger". :type validation_type: str or ~azure.mgmt.customproviders.models.ValidationType :param specification: Required. A link to the validation specification. The specification must be hosted on raw.githubusercontent.com. :type specification: str """ _validation = { 'specification': {'required': True, 'pattern': r'^https://raw.githubusercontent.com/.+'}, } _attribute_map = { 'validation_type': {'key': 'validationType', 'type': 'str'}, 'specification': {'key': 'specification', 'type': 'str'}, } def __init__( self, *, specification: str, validation_type: Optional[Union[str, "ValidationType"]] = None, **kwargs ): super(CustomRPValidations, self).__init__(**kwargs) self.validation_type = validation_type self.specification = specification
class CustomRPValidations(msrest.serialization.Model): '''A validation to apply on custom resource provider requests. All required parameters must be populated in order to send to Azure. :param validation_type: The type of validation to run against a matching request. Possible values include: "Swagger". :type validation_type: str or ~azure.mgmt.customproviders.models.ValidationType :param specification: Required. A link to the validation specification. The specification must be hosted on raw.githubusercontent.com. :type specification: str ''' def __init__( self, *, specification: str, validation_type: Optional[Union[str, "ValidationType"]] = None, **kwargs ): pass
2
1
10
0
10
0
1
0.5
1
2
0
0
1
2
1
1
32
5
18
12
10
9
7
6
5
1
1
0
1
8,367
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_certificates_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._certificates_operations.CertificatesOperations
class CertificatesOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`certificates` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any ) -> _models.CertificateResource: """Get the certificate resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param certificate_name: The name of the certificate resource. Required. :type certificate_name: str :return: CertificateResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("CertificateResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, certificate_name: str, certificate_resource: Union[_models.CertificateResource, IO[bytes]], **kwargs: Any ) -> _models.CertificateResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(certificate_resource, (IOBase, bytes)): _content = certificate_resource else: _json = self._serialize.body(certificate_resource, "CertificateResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("CertificateResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("CertificateResource", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("CertificateResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, certificate_name: str, certificate_resource: _models.CertificateResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.CertificateResource]: """Create or update certificate resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param certificate_name: The name of the certificate resource. Required. :type certificate_name: str :param certificate_resource: Parameters for the create or update operation. Required. :type certificate_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, certificate_name: str, certificate_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.CertificateResource]: """Create or update certificate resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param certificate_name: The name of the certificate resource. Required. :type certificate_name: str :param certificate_resource: Parameters for the create or update operation. Required. :type certificate_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, certificate_name: str, certificate_resource: Union[_models.CertificateResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.CertificateResource]: """Create or update certificate resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param certificate_name: The name of the certificate resource. Required. :type certificate_name: str :param certificate_resource: Parameters for the create or update operation. Is either a CertificateResource type or a IO[bytes] type. Required. :type certificate_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, certificate_name=certificate_name, certificate_resource=certificate_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("CertificateResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.CertificateResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.CertificateResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Delete the certificate resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param certificate_name: The name of the certificate resource. Required. :type certificate_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, certificate_name=certificate_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.CertificateResource"]: """List all the certificates of one user. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either CertificateResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data)
class CertificatesOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`certificates` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any ) -> _models.CertificateResource: '''Get the certificate resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param certificate_name: The name of the certificate resource. Required. :type certificate_name: str :return: CertificateResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, certificate_name: str, certificate_resource: Union[_models.CertificateResource, IO[bytes]], **kwargs: Any ) -> _models.CertificateResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, certificate_name: str, certificate_resource: _models.CertificateResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.CertificateResource]: '''Create or update certificate resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param certificate_name: The name of the certificate resource. Required. :type certificate_name: str :param certificate_resource: Parameters for the create or update operation. Required. :type certificate_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, certificate_name: str, certificate_resource: _models.CertificateResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.CertificateResource]: '''Create or update certificate resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param certificate_name: The name of the certificate resource. Required. :type certificate_name: str :param certificate_resource: Parameters for the create or update operation. Required. :type certificate_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, certificate_name: str, certificate_resource: _models.CertificateResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.CertificateResource]: '''Create or update certificate resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param certificate_name: The name of the certificate resource. Required. :type certificate_name: str :param certificate_resource: Parameters for the create or update operation. Is either a CertificateResource type or a IO[bytes] type. Required. :type certificate_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Delete the certificate resource. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param certificate_name: The name of the certificate resource. Required. :type certificate_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.CertificateResource"]: '''List all the certificates of one user. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either CertificateResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.CertificateResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass
21
7
36
4
26
8
3
0.37
0
7
0
0
9
5
9
9
476
62
315
134
254
116
162
88
147
7
0
1
42
8,368
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/aio/operations/_configuration_services_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.aio.operations._configuration_services_operations.ConfigurationServicesOperations
class ConfigurationServicesOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`configuration_services` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any ) -> _models.ConfigurationServiceResource: """Get the Application Configuration Service and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :return: ConfigurationServiceResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, configuration_service_name=configuration_service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore async def _create_or_update_initial( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], **kwargs: Any ) -> _models.ConfigurationServiceResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(configuration_service_resource, (IOBase, bytes)): _content = configuration_service_resource else: _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, configuration_service_name=configuration_service_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: _models.ConfigurationServiceResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: """Create the default Application Configuration Service or update the existing Application Configuration Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Parameters for the update operation. Required. :type configuration_service_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: """Create the default Application Configuration Service or update the existing Application Configuration Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Parameters for the update operation. Required. :type configuration_service_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: """Create the default Application Configuration Service or update the existing Application Configuration Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Parameters for the update operation. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. :type configuration_service_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, configuration_service_name=configuration_service_name, configuration_service_resource=configuration_service_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.ConfigurationServiceResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, configuration_service_name=configuration_service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Disable the default Application Configuration Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, configuration_service_name=configuration_service_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.ConfigurationServiceResource"]: """Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either ConfigurationServiceResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request async def extract_data(pipeline_response): deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) async def _validate_initial( self, resource_group_name: str, service_name: str, configuration_service_name: str, settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], **kwargs: Any ) -> _models.ConfigurationServiceSettingsValidateResult: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(settings, (IOBase, bytes)): _content = settings else: _json = self._serialize.body(settings, "ConfigurationServiceSettings") _request = build_validate_request( resource_group_name=resource_group_name, service_name=service_name, configuration_service_name=configuration_service_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload async def begin_validate( self, resource_group_name: str, service_name: str, configuration_service_name: str, settings: _models.ConfigurationServiceSettings, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: """Check if the Application Configuration Service settings are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param settings: Application Configuration Service settings to be validated. Required. :type settings: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettings :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_validate( self, resource_group_name: str, service_name: str, configuration_service_name: str, settings: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: """Check if the Application Configuration Service settings are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param settings: Application Configuration Service settings to be validated. Required. :type settings: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_validate( self, resource_group_name: str, service_name: str, configuration_service_name: str, settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: """Check if the Application Configuration Service settings are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param settings: Application Configuration Service settings to be validated. Is either a ConfigurationServiceSettings type or a IO[bytes] type. Required. :type settings: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettings or IO[bytes] :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._validate_initial( resource_group_name=resource_group_name, service_name=service_name, configuration_service_name=configuration_service_name, settings=settings, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast( AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) ) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _validate_resource_initial( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], **kwargs: Any ) -> Optional[_models.ConfigurationServiceSettingsValidateResult]: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Optional[_models.ConfigurationServiceSettingsValidateResult]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(configuration_service_resource, (IOBase, bytes)): _content = configuration_service_resource else: _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") _request = build_validate_resource_request( resource_group_name=resource_group_name, service_name=service_name, configuration_service_name=configuration_service_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None response_headers = {} if response.status_code == 200: deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) if cls: return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @overload async def begin_validate_resource( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: _models.ConfigurationServiceResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: """Check if the Application Configuration Service resource is valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Application Configuration Service resource to be validated. Required. :type configuration_service_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def begin_validate_resource( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: """Check if the Application Configuration Service resource is valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Application Configuration Service resource to be validated. Required. :type configuration_service_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def begin_validate_resource( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: """Check if the Application Configuration Service resource is valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Application Configuration Service resource to be validated. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. :type configuration_service_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._validate_resource_initial( resource_group_name=resource_group_name, service_name=service_name, configuration_service_name=configuration_service_name, configuration_service_resource=configuration_service_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: AsyncPollingMethod = cast( AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) ) elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( self._client, raw_result, get_long_running_output, polling_method # type: ignore )
class ConfigurationServicesOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.aio.AppPlatformManagementClient`'s :attr:`configuration_services` attribute. ''' def __init__(self, *args, **kwargs) -> None: pass @distributed_trace_async async def get( self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any ) -> _models.ConfigurationServiceResource: '''Get the Application Configuration Service and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :return: ConfigurationServiceResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass async def _create_or_update_initial( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], **kwargs: Any ) -> _models.ConfigurationServiceResource: pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: _models.ConfigurationServiceResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: '''Create the default Application Configuration Service or update the existing Application Configuration Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Parameters for the update operation. Required. :type configuration_service_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_create_or_update( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: _models.ConfigurationServiceResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: '''Create the default Application Configuration Service or update the existing Application Configuration Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Parameters for the update operation. Required. :type configuration_service_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: _models.ConfigurationServiceResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: '''Create the default Application Configuration Service or update the existing Application Configuration Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Parameters for the update operation. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. :type configuration_service_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any ) -> None: pass @distributed_trace_async async def begin_delete( self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: '''Disable the default Application Configuration Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> AsyncIterable["_models.ConfigurationServiceResource"]: '''Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either ConfigurationServiceResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass async def extract_data(pipeline_response): pass async def get_next(next_link=None): pass async def _validate_initial( self, resource_group_name: str, service_name: str, configuration_service_name: str, settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], **kwargs: Any ) -> _models.ConfigurationServiceSettingsValidateResult: pass @overload async def begin_validate( self, resource_group_name: str, service_name: str, configuration_service_name: str, settings: _models.ConfigurationServiceSettings, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: '''Check if the Application Configuration Service settings are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param settings: Application Configuration Service settings to be validated. Required. :type settings: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettings :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_validate( self, resource_group_name: str, service_name: str, configuration_service_name: str, settings: _models.ConfigurationServiceSettings, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: '''Check if the Application Configuration Service settings are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param settings: Application Configuration Service settings to be validated. Required. :type settings: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_validate( self, resource_group_name: str, service_name: str, configuration_service_name: str, settings: _models.ConfigurationServiceSettings, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: '''Check if the Application Configuration Service settings are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param settings: Application Configuration Service settings to be validated. Is either a ConfigurationServiceSettings type or a IO[bytes] type. Required. :type settings: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettings or IO[bytes] :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass async def _validate_resource_initial( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], **kwargs: Any ) -> Optional[_models.ConfigurationServiceSettingsValidateResult]: pass @overload async def begin_validate_resource( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: _models.ConfigurationServiceResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: '''Check if the Application Configuration Service resource is valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Application Configuration Service resource to be validated. Required. :type configuration_service_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload async def begin_validate_resource( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: _models.ConfigurationServiceResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: '''Check if the Application Configuration Service resource is valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Application Configuration Service resource to be validated. Required. :type configuration_service_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace_async async def begin_validate_resource( self, resource_group_name: str, service_name: str, configuration_service_name: str, configuration_service_resource: _models.ConfigurationServiceResource, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: '''Check if the Application Configuration Service resource is valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param configuration_service_name: The name of Application Configuration Service. Required. :type configuration_service_name: str :param configuration_service_resource: Application Configuration Service resource to be validated. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. :type configuration_service_resource: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource or IO[bytes] :return: An instance of AsyncLROPoller that returns either ConfigurationServiceSettingsValidateResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceSettingsValidateResult] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass
37
13
39
4
26
10
3
0.42
0
7
0
0
17
5
17
17
901
103
579
263
438
246
274
147
249
6
0
1
71
8,369
Azure/azure-cli-extensions
src/databox/azext_databox/aaz/latest/databox/job/_mark_devices_shipped.py
azext_databox.aaz.latest.databox.job._mark_devices_shipped.MarkDevicesShipped
class MarkDevicesShipped(AAZCommand): """Request to mark devices for a given job as shipped :example: Mark devices shipped az databox job mark-devices-shipped -g rg -n job-name """ _aaz_info = { "version": "2022-12-01", "resources": [ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}/markdevicesshipped", "2022-12-01"], ] } def _handler(self, command_args): super()._handler(command_args) self._execute_operations() return None _args_schema = None @classmethod def _build_arguments_schema(cls, *args, **kwargs): if cls._args_schema is not None: return cls._args_schema cls._args_schema = super()._build_arguments_schema(*args, **kwargs) # define Arg Group "" _args_schema = cls._args_schema _args_schema.job_name = AAZStrArg( options=["-n", "--name", "--job-name"], help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", required=True, id_part="name", fmt=AAZStrArgFormat( pattern="^[-\w\.]+$", max_length=24, min_length=3, ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, ) # define Arg Group "MarkDevicesShippedRequest" _args_schema = cls._args_schema _args_schema.deliver_package_details = AAZObjectArg( options=["--deliver-package-details"], arg_group="MarkDevicesShippedRequest", help="Delivery package details", required=True, ) deliver_package_details = cls._args_schema.deliver_package_details deliver_package_details.carrier_name = AAZStrArg( options=["carrier-name"], help="Name of the carrier.", ) deliver_package_details.tracking_id = AAZStrArg( options=["tracking-id"], help="Tracking Id of shipment.", ) return cls._args_schema def _execute_operations(self): self.pre_operations() self.JobsMarkDevicesShipped(ctx=self.ctx)() self.post_operations() @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass class JobsMarkDevicesShipped(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request(request=request, stream=False, **kwargs) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/markDevicesShipped", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "jobName", self.ctx.args.job_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-12-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("deliverToDcPackageDetails", AAZObjectType, ".deliver_package_details", typ_kwargs={"flags": {"required": True}}) deliver_to_dc_package_details = _builder.get(".deliverToDcPackageDetails") if deliver_to_dc_package_details is not None: deliver_to_dc_package_details.set_prop("carrierName", AAZStrType, ".carrier_name") deliver_to_dc_package_details.set_prop("trackingId", AAZStrType, ".tracking_id") return self.serialize_content(_content_value) def on_204(self, session): pass
class MarkDevicesShipped(AAZCommand): '''Request to mark devices for a given job as shipped :example: Mark devices shipped az databox job mark-devices-shipped -g rg -n job-name ''' def _handler(self, command_args): pass @classmethod def _build_arguments_schema(cls, *args, **kwargs): pass def _execute_operations(self): pass @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass class JobsMarkDevicesShipped(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_204(self, session): pass
26
1
8
1
8
0
1
0.05
1
2
1
0
4
0
5
5
160
26
128
38
102
6
61
28
45
2
1
1
17
8,370
Azure/azure-cli-extensions
src/databox/azext_databox/aaz/latest/databox/job/_show.py
azext_databox.aaz.latest.databox.job._show.Show
class Show(AAZCommand): """Get information about the specified job. :example: Show job az databox job show -g rg -n job-name """ _aaz_info = { "version": "2022-12-01", "resources": [ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}", "2022-12-01"], ] } def _handler(self, command_args): super()._handler(command_args) self._execute_operations() return self._output() _args_schema = None @classmethod def _build_arguments_schema(cls, *args, **kwargs): if cls._args_schema is not None: return cls._args_schema cls._args_schema = super()._build_arguments_schema(*args, **kwargs) # define Arg Group "" _args_schema = cls._args_schema _args_schema.job_name = AAZStrArg( options=["-n", "--name", "--job-name"], help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", required=True, id_part="name", fmt=AAZStrArgFormat( pattern="^[-\w\.]+$", max_length=24, min_length=3, ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, ) return cls._args_schema def _execute_operations(self): self.pre_operations() self.JobsGet(ctx=self.ctx)() self.post_operations() @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass def _output(self, *args, **kwargs): result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) return result class JobsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request(request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "jobName", self.ctx.args.job_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-12-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.identity = AAZObjectType() _schema_on_200.location = AAZStrType( flags={"required": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"required": True, "client_flatten": True}, ) _schema_on_200.sku = AAZObjectType( flags={"required": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", ) _schema_on_200.tags = AAZDictType() _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) identity = cls._schema_on_200.identity identity.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, ) identity.tenant_id = AAZStrType( serialized_name="tenantId", flags={"read_only": True}, ) identity.type = AAZStrType() identity.user_assigned_identities = AAZDictType( serialized_name="userAssignedIdentities", ) user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities user_assigned_identities.Element = AAZObjectType() _element = cls._schema_on_200.identity.user_assigned_identities.Element _element.client_id = AAZStrType( serialized_name="clientId", flags={"read_only": True}, ) _element.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.cancellation_reason = AAZStrType( serialized_name="cancellationReason", flags={"read_only": True}, ) properties.delivery_info = AAZObjectType( serialized_name="deliveryInfo", ) properties.delivery_type = AAZStrType( serialized_name="deliveryType", ) properties.details = AAZObjectType() properties.error = AAZObjectType() _ShowHelper._build_schema_cloud_error_read(properties.error) properties.is_cancellable = AAZBoolType( serialized_name="isCancellable", flags={"read_only": True}, ) properties.is_cancellable_without_fee = AAZBoolType( serialized_name="isCancellableWithoutFee", flags={"read_only": True}, ) properties.is_deletable = AAZBoolType( serialized_name="isDeletable", flags={"read_only": True}, ) properties.is_prepare_to_ship_enabled = AAZBoolType( serialized_name="isPrepareToShipEnabled", flags={"read_only": True}, ) properties.is_shipping_address_editable = AAZBoolType( serialized_name="isShippingAddressEditable", flags={"read_only": True}, ) properties.reverse_shipping_details_update = AAZStrType( serialized_name="reverseShippingDetailsUpdate", flags={"read_only": True}, ) properties.reverse_transport_preference_update = AAZStrType( serialized_name="reverseTransportPreferenceUpdate", flags={"read_only": True}, ) properties.start_time = AAZStrType( serialized_name="startTime", flags={"read_only": True}, ) properties.status = AAZStrType( flags={"read_only": True}, ) properties.transfer_type = AAZStrType( serialized_name="transferType", flags={"required": True}, ) delivery_info = cls._schema_on_200.properties.delivery_info delivery_info.scheduled_date_time = AAZStrType( serialized_name="scheduledDateTime", ) details = cls._schema_on_200.properties.details details.actions = AAZListType( flags={"read_only": True}, ) details.chain_of_custody_sas_key = AAZStrType( serialized_name="chainOfCustodySasKey", flags={"read_only": True}, ) details.contact_details = AAZObjectType( serialized_name="contactDetails", flags={"required": True}, ) details.copy_log_details = AAZListType( serialized_name="copyLogDetails", flags={"read_only": True}, ) details.data_center_code = AAZStrType( serialized_name="dataCenterCode", flags={"read_only": True}, ) details.data_export_details = AAZListType( serialized_name="dataExportDetails", ) details.data_import_details = AAZListType( serialized_name="dataImportDetails", ) details.datacenter_address = AAZObjectType( serialized_name="datacenterAddress", ) details.delivery_package = AAZObjectType( serialized_name="deliveryPackage", ) _ShowHelper._build_schema_package_shipping_details_read(details.delivery_package) details.device_erasure_details = AAZObjectType( serialized_name="deviceErasureDetails", ) details.expected_data_size_in_tera_bytes = AAZIntType( serialized_name="expectedDataSizeInTeraBytes", ) details.job_details_type = AAZStrType( serialized_name="jobDetailsType", flags={"required": True}, ) details.job_stages = AAZListType( serialized_name="jobStages", flags={"read_only": True}, ) details.key_encryption_key = AAZObjectType( serialized_name="keyEncryptionKey", ) details.last_mitigation_action_on_job = AAZObjectType( serialized_name="lastMitigationActionOnJob", ) details.preferences = AAZObjectType() details.return_package = AAZObjectType( serialized_name="returnPackage", ) _ShowHelper._build_schema_package_shipping_details_read(details.return_package) details.reverse_shipment_label_sas_key = AAZStrType( serialized_name="reverseShipmentLabelSasKey", flags={"read_only": True}, ) details.reverse_shipping_details = AAZObjectType( serialized_name="reverseShippingDetails", ) details.shipping_address = AAZObjectType( serialized_name="shippingAddress", ) _ShowHelper._build_schema_shipping_address_read(details.shipping_address) actions = cls._schema_on_200.properties.details.actions actions.Element = AAZStrType() contact_details = cls._schema_on_200.properties.details.contact_details contact_details.contact_name = AAZStrType( serialized_name="contactName", flags={"required": True}, ) contact_details.email_list = AAZListType( serialized_name="emailList", flags={"required": True}, ) contact_details.mobile = AAZStrType() contact_details.notification_preference = AAZListType( serialized_name="notificationPreference", ) contact_details.phone = AAZStrType( flags={"required": True}, ) contact_details.phone_extension = AAZStrType( serialized_name="phoneExtension", ) email_list = cls._schema_on_200.properties.details.contact_details.email_list email_list.Element = AAZStrType() notification_preference = cls._schema_on_200.properties.details.contact_details.notification_preference notification_preference.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.contact_details.notification_preference.Element _element.send_notification = AAZBoolType( serialized_name="sendNotification", flags={"required": True}, ) _element.stage_name = AAZStrType( serialized_name="stageName", flags={"required": True}, ) copy_log_details = cls._schema_on_200.properties.details.copy_log_details copy_log_details.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.copy_log_details.Element _element.copy_log_details_type = AAZStrType( serialized_name="copyLogDetailsType", flags={"required": True}, ) disc_data_box = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBox") disc_data_box.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) disc_data_box.copy_log_link = AAZStrType( serialized_name="copyLogLink", flags={"read_only": True}, ) disc_data_box.copy_verbose_log_link = AAZStrType( serialized_name="copyVerboseLogLink", flags={"read_only": True}, ) disc_data_box_customer_disk = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxCustomerDisk") disc_data_box_customer_disk.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) disc_data_box_customer_disk.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) disc_data_box_customer_disk.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) disc_data_box_disk = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxDisk") disc_data_box_disk.disk_serial_number = AAZStrType( serialized_name="diskSerialNumber", flags={"read_only": True}, ) disc_data_box_disk.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) disc_data_box_disk.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) disc_data_box_heavy = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy") disc_data_box_heavy.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) disc_data_box_heavy.copy_log_link = AAZListType( serialized_name="copyLogLink", flags={"read_only": True}, ) disc_data_box_heavy.copy_verbose_log_link = AAZListType( serialized_name="copyVerboseLogLink", flags={"read_only": True}, ) copy_log_link = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_log_link copy_log_link.Element = AAZStrType() copy_verbose_log_link = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_verbose_log_link copy_verbose_log_link.Element = AAZStrType() data_export_details = cls._schema_on_200.properties.details.data_export_details data_export_details.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.data_export_details.Element _element.account_details = AAZObjectType( serialized_name="accountDetails", flags={"required": True}, ) _ShowHelper._build_schema_data_account_details_read(_element.account_details) _element.log_collection_level = AAZStrType( serialized_name="logCollectionLevel", ) _element.transfer_configuration = AAZObjectType( serialized_name="transferConfiguration", flags={"required": True}, ) transfer_configuration = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration transfer_configuration.transfer_all_details = AAZObjectType( serialized_name="transferAllDetails", ) transfer_configuration.transfer_configuration_type = AAZStrType( serialized_name="transferConfigurationType", flags={"required": True}, ) transfer_configuration.transfer_filter_details = AAZObjectType( serialized_name="transferFilterDetails", ) transfer_all_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details transfer_all_details.include = AAZObjectType() include = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details.include include.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"required": True}, ) include.transfer_all_blobs = AAZBoolType( serialized_name="transferAllBlobs", ) include.transfer_all_files = AAZBoolType( serialized_name="transferAllFiles", ) transfer_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details transfer_filter_details.include = AAZObjectType() include = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include include.azure_file_filter_details = AAZObjectType( serialized_name="azureFileFilterDetails", ) include.blob_filter_details = AAZObjectType( serialized_name="blobFilterDetails", ) include.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"required": True}, ) include.filter_file_details = AAZListType( serialized_name="filterFileDetails", ) azure_file_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details azure_file_filter_details.file_path_list = AAZListType( serialized_name="filePathList", ) azure_file_filter_details.file_prefix_list = AAZListType( serialized_name="filePrefixList", ) azure_file_filter_details.file_share_list = AAZListType( serialized_name="fileShareList", ) file_path_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_path_list file_path_list.Element = AAZStrType() file_prefix_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_prefix_list file_prefix_list.Element = AAZStrType() file_share_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_share_list file_share_list.Element = AAZStrType() blob_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details blob_filter_details.blob_path_list = AAZListType( serialized_name="blobPathList", ) blob_filter_details.blob_prefix_list = AAZListType( serialized_name="blobPrefixList", ) blob_filter_details.container_list = AAZListType( serialized_name="containerList", ) blob_path_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_path_list blob_path_list.Element = AAZStrType() blob_prefix_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_prefix_list blob_prefix_list.Element = AAZStrType() container_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.container_list container_list.Element = AAZStrType() filter_file_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details filter_file_details.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details.Element _element.filter_file_path = AAZStrType( serialized_name="filterFilePath", flags={"required": True}, ) _element.filter_file_type = AAZStrType( serialized_name="filterFileType", flags={"required": True}, ) data_import_details = cls._schema_on_200.properties.details.data_import_details data_import_details.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.data_import_details.Element _element.account_details = AAZObjectType( serialized_name="accountDetails", flags={"required": True}, ) _ShowHelper._build_schema_data_account_details_read(_element.account_details) _element.log_collection_level = AAZStrType( serialized_name="logCollectionLevel", ) datacenter_address = cls._schema_on_200.properties.details.datacenter_address datacenter_address.data_center_azure_location = AAZStrType( serialized_name="dataCenterAzureLocation", flags={"read_only": True}, ) datacenter_address.datacenter_address_type = AAZStrType( serialized_name="datacenterAddressType", flags={"required": True}, ) datacenter_address.supported_carriers_for_return_shipment = AAZListType( serialized_name="supportedCarriersForReturnShipment", flags={"read_only": True}, ) supported_carriers_for_return_shipment = cls._schema_on_200.properties.details.datacenter_address.supported_carriers_for_return_shipment supported_carriers_for_return_shipment.Element = AAZStrType() disc_datacenter_address_instruction = cls._schema_on_200.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressInstruction") disc_datacenter_address_instruction.communication_instruction = AAZStrType( serialized_name="communicationInstruction", flags={"read_only": True}, ) disc_datacenter_address_location = cls._schema_on_200.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressLocation") disc_datacenter_address_location.additional_shipping_information = AAZStrType( serialized_name="additionalShippingInformation", flags={"read_only": True}, ) disc_datacenter_address_location.address_type = AAZStrType( serialized_name="addressType", flags={"read_only": True}, ) disc_datacenter_address_location.city = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.company = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.contact_person_name = AAZStrType( serialized_name="contactPersonName", flags={"read_only": True}, ) disc_datacenter_address_location.country = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.phone = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.phone_extension = AAZStrType( serialized_name="phoneExtension", flags={"read_only": True}, ) disc_datacenter_address_location.state = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street1 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street2 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street3 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.zip = AAZStrType( flags={"read_only": True}, ) device_erasure_details = cls._schema_on_200.properties.details.device_erasure_details device_erasure_details.device_erasure_status = AAZStrType( serialized_name="deviceErasureStatus", flags={"read_only": True}, ) device_erasure_details.erasure_or_destruction_certificate_sas_key = AAZStrType( serialized_name="erasureOrDestructionCertificateSasKey", flags={"read_only": True}, ) job_stages = cls._schema_on_200.properties.details.job_stages job_stages.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.job_stages.Element _element.display_name = AAZStrType( serialized_name="displayName", flags={"read_only": True}, ) _element.stage_name = AAZStrType( serialized_name="stageName", flags={"read_only": True}, ) _element.stage_status = AAZStrType( serialized_name="stageStatus", flags={"read_only": True}, ) _element.stage_time = AAZStrType( serialized_name="stageTime", flags={"read_only": True}, ) key_encryption_key = cls._schema_on_200.properties.details.key_encryption_key key_encryption_key.identity_properties = AAZObjectType( serialized_name="identityProperties", ) key_encryption_key.kek_type = AAZStrType( serialized_name="kekType", flags={"required": True}, ) key_encryption_key.kek_url = AAZStrType( serialized_name="kekUrl", ) key_encryption_key.kek_vault_resource_id = AAZStrType( serialized_name="kekVaultResourceID", ) identity_properties = cls._schema_on_200.properties.details.key_encryption_key.identity_properties identity_properties.type = AAZStrType() identity_properties.user_assigned = AAZObjectType( serialized_name="userAssigned", ) user_assigned = cls._schema_on_200.properties.details.key_encryption_key.identity_properties.user_assigned user_assigned.resource_id = AAZStrType( serialized_name="resourceId", ) last_mitigation_action_on_job = cls._schema_on_200.properties.details.last_mitigation_action_on_job last_mitigation_action_on_job.action_date_time_in_utc = AAZStrType( serialized_name="actionDateTimeInUtc", ) last_mitigation_action_on_job.customer_resolution = AAZStrType( serialized_name="customerResolution", ) last_mitigation_action_on_job.is_performed_by_customer = AAZBoolType( serialized_name="isPerformedByCustomer", ) preferences = cls._schema_on_200.properties.details.preferences preferences.encryption_preferences = AAZObjectType( serialized_name="encryptionPreferences", ) preferences.preferred_data_center_region = AAZListType( serialized_name="preferredDataCenterRegion", ) preferences.reverse_transport_preferences = AAZObjectType( serialized_name="reverseTransportPreferences", ) _ShowHelper._build_schema_transport_preferences_read(preferences.reverse_transport_preferences) preferences.storage_account_access_tier_preferences = AAZListType( serialized_name="storageAccountAccessTierPreferences", ) preferences.transport_preferences = AAZObjectType( serialized_name="transportPreferences", ) _ShowHelper._build_schema_transport_preferences_read(preferences.transport_preferences) encryption_preferences = cls._schema_on_200.properties.details.preferences.encryption_preferences encryption_preferences.double_encryption = AAZStrType( serialized_name="doubleEncryption", ) encryption_preferences.hardware_encryption = AAZStrType( serialized_name="hardwareEncryption", ) preferred_data_center_region = cls._schema_on_200.properties.details.preferences.preferred_data_center_region preferred_data_center_region.Element = AAZStrType() storage_account_access_tier_preferences = cls._schema_on_200.properties.details.preferences.storage_account_access_tier_preferences storage_account_access_tier_preferences.Element = AAZStrType() reverse_shipping_details = cls._schema_on_200.properties.details.reverse_shipping_details reverse_shipping_details.contact_details = AAZObjectType( serialized_name="contactDetails", ) reverse_shipping_details.is_updated = AAZBoolType( serialized_name="isUpdated", flags={"read_only": True}, ) reverse_shipping_details.shipping_address = AAZObjectType( serialized_name="shippingAddress", ) _ShowHelper._build_schema_shipping_address_read(reverse_shipping_details.shipping_address) contact_details = cls._schema_on_200.properties.details.reverse_shipping_details.contact_details contact_details.contact_name = AAZStrType( serialized_name="contactName", flags={"required": True}, ) contact_details.mobile = AAZStrType() contact_details.phone = AAZStrType( flags={"required": True}, ) contact_details.phone_extension = AAZStrType( serialized_name="phoneExtension", ) disc_data_box = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBox") disc_data_box.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box.device_password = AAZStrType( serialized_name="devicePassword", ) copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBox").copy_progress copy_progress.Element = AAZObjectType() _ShowHelper._build_schema_copy_progress_read(copy_progress.Element) disc_data_box_customer_disk = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk") disc_data_box_customer_disk.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_customer_disk.deliver_to_dc_package_details = AAZObjectType( serialized_name="deliverToDcPackageDetails", ) disc_data_box_customer_disk.enable_manifest_backup = AAZBoolType( serialized_name="enableManifestBackup", ) disc_data_box_customer_disk.export_disk_details_collection = AAZDictType( serialized_name="exportDiskDetailsCollection", flags={"read_only": True}, ) disc_data_box_customer_disk.import_disk_details_collection = AAZDictType( serialized_name="importDiskDetailsCollection", ) disc_data_box_customer_disk.return_to_customer_package_details = AAZObjectType( serialized_name="returnToCustomerPackageDetails", flags={"required": True}, ) copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_processed = AAZIntType( serialized_name="bytesProcessed", flags={"read_only": True}, ) _element.copy_status = AAZStrType( serialized_name="copyStatus", flags={"read_only": True}, ) _element.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) _element.directories_errored_out = AAZIntType( serialized_name="directoriesErroredOut", flags={"read_only": True}, ) _element.error = AAZObjectType() _ShowHelper._build_schema_cloud_error_read(_element.error) _element.files_errored_out = AAZIntType( serialized_name="filesErroredOut", flags={"read_only": True}, ) _element.files_processed = AAZIntType( serialized_name="filesProcessed", flags={"read_only": True}, ) _element.invalid_directories_processed = AAZIntType( serialized_name="invalidDirectoriesProcessed", flags={"read_only": True}, ) _element.invalid_file_bytes_uploaded = AAZIntType( serialized_name="invalidFileBytesUploaded", flags={"read_only": True}, ) _element.invalid_files_processed = AAZIntType( serialized_name="invalidFilesProcessed", flags={"read_only": True}, ) _element.is_enumeration_in_progress = AAZBoolType( serialized_name="isEnumerationInProgress", flags={"read_only": True}, ) _element.renamed_container_count = AAZIntType( serialized_name="renamedContainerCount", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.storage_account_name = AAZStrType( serialized_name="storageAccountName", flags={"read_only": True}, ) _element.total_bytes_to_process = AAZIntType( serialized_name="totalBytesToProcess", flags={"read_only": True}, ) _element.total_files_to_process = AAZIntType( serialized_name="totalFilesToProcess", flags={"read_only": True}, ) _element.transfer_type = AAZStrType( serialized_name="transferType", flags={"read_only": True}, ) actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element.actions actions.Element = AAZStrType() deliver_to_dc_package_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").deliver_to_dc_package_details deliver_to_dc_package_details.carrier_name = AAZStrType( serialized_name="carrierName", ) deliver_to_dc_package_details.tracking_id = AAZStrType( serialized_name="trackingId", ) export_disk_details_collection = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection export_disk_details_collection.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection.Element _element.backup_manifest_cloud_path = AAZStrType( serialized_name="backupManifestCloudPath", flags={"read_only": True}, ) _element.manifest_file = AAZStrType( serialized_name="manifestFile", flags={"read_only": True}, ) _element.manifest_hash = AAZStrType( serialized_name="manifestHash", flags={"read_only": True}, ) import_disk_details_collection = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection import_disk_details_collection.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection.Element _element.backup_manifest_cloud_path = AAZStrType( serialized_name="backupManifestCloudPath", flags={"read_only": True}, ) _element.bit_locker_key = AAZStrType( serialized_name="bitLockerKey", flags={"required": True, "secret": True}, ) _element.manifest_file = AAZStrType( serialized_name="manifestFile", flags={"required": True}, ) _element.manifest_hash = AAZStrType( serialized_name="manifestHash", flags={"required": True}, ) return_to_customer_package_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").return_to_customer_package_details return_to_customer_package_details.carrier_account_number = AAZStrType( serialized_name="carrierAccountNumber", flags={"secret": True}, ) return_to_customer_package_details.carrier_name = AAZStrType( serialized_name="carrierName", ) return_to_customer_package_details.tracking_id = AAZStrType( serialized_name="trackingId", ) disc_data_box_disk = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk") disc_data_box_disk.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_disk.disks_and_size_details = AAZDictType( serialized_name="disksAndSizeDetails", flags={"read_only": True}, ) disc_data_box_disk.granular_copy_log_details = AAZListType( serialized_name="granularCopyLogDetails", flags={"read_only": True}, ) disc_data_box_disk.granular_copy_progress = AAZListType( serialized_name="granularCopyProgress", flags={"read_only": True}, ) disc_data_box_disk.passkey = AAZStrType() disc_data_box_disk.preferred_disks = AAZDictType( serialized_name="preferredDisks", ) copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_copied = AAZIntType( serialized_name="bytesCopied", flags={"read_only": True}, ) _element.error = AAZObjectType() _ShowHelper._build_schema_cloud_error_read(_element.error) _element.percent_complete = AAZIntType( serialized_name="percentComplete", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.status = AAZStrType( flags={"read_only": True}, ) actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element.actions actions.Element = AAZStrType() disks_and_size_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").disks_and_size_details disks_and_size_details.Element = AAZIntType() granular_copy_log_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details granular_copy_log_details.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.copy_log_details_type = AAZStrType( serialized_name="copyLogDetailsType", flags={"required": True}, ) _element.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) granular_copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress granular_copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_processed = AAZIntType( serialized_name="bytesProcessed", flags={"read_only": True}, ) _element.copy_status = AAZStrType( serialized_name="copyStatus", flags={"read_only": True}, ) _element.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) _element.directories_errored_out = AAZIntType( serialized_name="directoriesErroredOut", flags={"read_only": True}, ) _element.error = AAZObjectType() _ShowHelper._build_schema_cloud_error_read(_element.error) _element.files_errored_out = AAZIntType( serialized_name="filesErroredOut", flags={"read_only": True}, ) _element.files_processed = AAZIntType( serialized_name="filesProcessed", flags={"read_only": True}, ) _element.invalid_directories_processed = AAZIntType( serialized_name="invalidDirectoriesProcessed", flags={"read_only": True}, ) _element.invalid_file_bytes_uploaded = AAZIntType( serialized_name="invalidFileBytesUploaded", flags={"read_only": True}, ) _element.invalid_files_processed = AAZIntType( serialized_name="invalidFilesProcessed", flags={"read_only": True}, ) _element.is_enumeration_in_progress = AAZBoolType( serialized_name="isEnumerationInProgress", flags={"read_only": True}, ) _element.renamed_container_count = AAZIntType( serialized_name="renamedContainerCount", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.storage_account_name = AAZStrType( serialized_name="storageAccountName", flags={"read_only": True}, ) _element.total_bytes_to_process = AAZIntType( serialized_name="totalBytesToProcess", flags={"read_only": True}, ) _element.total_files_to_process = AAZIntType( serialized_name="totalFilesToProcess", flags={"read_only": True}, ) _element.transfer_type = AAZStrType( serialized_name="transferType", flags={"read_only": True}, ) actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element.actions actions.Element = AAZStrType() preferred_disks = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").preferred_disks preferred_disks.Element = AAZIntType() disc_data_box_heavy = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxHeavy") disc_data_box_heavy.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_heavy.device_password = AAZStrType( serialized_name="devicePassword", ) copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxHeavy").copy_progress copy_progress.Element = AAZObjectType() _ShowHelper._build_schema_copy_progress_read(copy_progress.Element) sku = cls._schema_on_200.sku sku.display_name = AAZStrType( serialized_name="displayName", ) sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) tags = cls._schema_on_200.tags tags.Element = AAZStrType() return cls._schema_on_200
class Show(AAZCommand): '''Get information about the specified job. :example: Show job az databox job show -g rg -n job-name ''' def _handler(self, command_args): pass @classmethod def _build_arguments_schema(cls, *args, **kwargs): pass def _execute_operations(self): pass @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass def _output(self, *args, **kwargs): pass class JobsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
27
1
73
6
67
0
1
0
1
2
1
0
5
0
6
6
1,146
109
1,032
99
1,005
5
420
89
403
2
1
1
18
8,371
Azure/azure-cli-extensions
src/databox/azext_databox/aaz/latest/databox/job/_show.py
azext_databox.aaz.latest.databox.job._show._ShowHelper
class _ShowHelper: """Helper class for Show""" _schema_cloud_error_read = None @classmethod def _build_schema_cloud_error_read(cls, _schema): if cls._schema_cloud_error_read is not None: _schema.additional_info = cls._schema_cloud_error_read.additional_info _schema.code = cls._schema_cloud_error_read.code _schema.details = cls._schema_cloud_error_read.details _schema.message = cls._schema_cloud_error_read.message _schema.target = cls._schema_cloud_error_read.target return cls._schema_cloud_error_read = _schema_cloud_error_read = AAZObjectType() cloud_error_read = _schema_cloud_error_read cloud_error_read.additional_info = AAZListType( serialized_name="additionalInfo", flags={"read_only": True}, ) cloud_error_read.code = AAZStrType() cloud_error_read.details = AAZListType( flags={"read_only": True}, ) cloud_error_read.message = AAZStrType() cloud_error_read.target = AAZStrType() additional_info = _schema_cloud_error_read.additional_info additional_info.Element = AAZObjectType() _element = _schema_cloud_error_read.additional_info.Element _element.type = AAZStrType() details = _schema_cloud_error_read.details details.Element = AAZObjectType() cls._build_schema_cloud_error_read(details.Element) _schema.additional_info = cls._schema_cloud_error_read.additional_info _schema.code = cls._schema_cloud_error_read.code _schema.details = cls._schema_cloud_error_read.details _schema.message = cls._schema_cloud_error_read.message _schema.target = cls._schema_cloud_error_read.target _schema_copy_progress_read = None @classmethod def _build_schema_copy_progress_read(cls, _schema): if cls._schema_copy_progress_read is not None: _schema.account_id = cls._schema_copy_progress_read.account_id _schema.actions = cls._schema_copy_progress_read.actions _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed _schema.data_account_type = cls._schema_copy_progress_read.data_account_type _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out _schema.error = cls._schema_copy_progress_read.error _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out _schema.files_processed = cls._schema_copy_progress_read.files_processed _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process _schema.transfer_type = cls._schema_copy_progress_read.transfer_type return cls._schema_copy_progress_read = _schema_copy_progress_read = AAZObjectType() copy_progress_read = _schema_copy_progress_read copy_progress_read.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) copy_progress_read.actions = AAZListType( flags={"read_only": True}, ) copy_progress_read.bytes_processed = AAZIntType( serialized_name="bytesProcessed", flags={"read_only": True}, ) copy_progress_read.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) copy_progress_read.directories_errored_out = AAZIntType( serialized_name="directoriesErroredOut", flags={"read_only": True}, ) copy_progress_read.error = AAZObjectType() cls._build_schema_cloud_error_read(copy_progress_read.error) copy_progress_read.files_errored_out = AAZIntType( serialized_name="filesErroredOut", flags={"read_only": True}, ) copy_progress_read.files_processed = AAZIntType( serialized_name="filesProcessed", flags={"read_only": True}, ) copy_progress_read.invalid_directories_processed = AAZIntType( serialized_name="invalidDirectoriesProcessed", flags={"read_only": True}, ) copy_progress_read.invalid_file_bytes_uploaded = AAZIntType( serialized_name="invalidFileBytesUploaded", flags={"read_only": True}, ) copy_progress_read.invalid_files_processed = AAZIntType( serialized_name="invalidFilesProcessed", flags={"read_only": True}, ) copy_progress_read.is_enumeration_in_progress = AAZBoolType( serialized_name="isEnumerationInProgress", flags={"read_only": True}, ) copy_progress_read.renamed_container_count = AAZIntType( serialized_name="renamedContainerCount", flags={"read_only": True}, ) copy_progress_read.storage_account_name = AAZStrType( serialized_name="storageAccountName", flags={"read_only": True}, ) copy_progress_read.total_bytes_to_process = AAZIntType( serialized_name="totalBytesToProcess", flags={"read_only": True}, ) copy_progress_read.total_files_to_process = AAZIntType( serialized_name="totalFilesToProcess", flags={"read_only": True}, ) copy_progress_read.transfer_type = AAZStrType( serialized_name="transferType", flags={"read_only": True}, ) actions = _schema_copy_progress_read.actions actions.Element = AAZStrType() _schema.account_id = cls._schema_copy_progress_read.account_id _schema.actions = cls._schema_copy_progress_read.actions _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed _schema.data_account_type = cls._schema_copy_progress_read.data_account_type _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out _schema.error = cls._schema_copy_progress_read.error _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out _schema.files_processed = cls._schema_copy_progress_read.files_processed _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process _schema.transfer_type = cls._schema_copy_progress_read.transfer_type _schema_data_account_details_read = None @classmethod def _build_schema_data_account_details_read(cls, _schema): if cls._schema_data_account_details_read is not None: _schema.data_account_type = cls._schema_data_account_details_read.data_account_type _schema.discriminate_by( "data_account_type", "ManagedDisk", cls._schema_data_account_details_read.discriminate_by( "data_account_type", "ManagedDisk", ) ) _schema.discriminate_by( "data_account_type", "StorageAccount", cls._schema_data_account_details_read.discriminate_by( "data_account_type", "StorageAccount", ) ) return cls._schema_data_account_details_read = _schema_data_account_details_read = AAZObjectType() data_account_details_read = _schema_data_account_details_read data_account_details_read.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"required": True}, ) disc_managed_disk = _schema_data_account_details_read.discriminate_by("data_account_type", "ManagedDisk") disc_managed_disk.resource_group_id = AAZStrType( serialized_name="resourceGroupId", flags={"required": True}, ) disc_managed_disk.staging_storage_account_id = AAZStrType( serialized_name="stagingStorageAccountId", flags={"required": True}, ) disc_storage_account = _schema_data_account_details_read.discriminate_by("data_account_type", "StorageAccount") disc_storage_account.storage_account_id = AAZStrType( serialized_name="storageAccountId", flags={"required": True}, ) _schema.data_account_type = cls._schema_data_account_details_read.data_account_type _schema.discriminate_by( "data_account_type", "ManagedDisk", cls._schema_data_account_details_read.discriminate_by( "data_account_type", "ManagedDisk", ) ) _schema.discriminate_by( "data_account_type", "StorageAccount", cls._schema_data_account_details_read.discriminate_by( "data_account_type", "StorageAccount", ) ) _schema_package_shipping_details_read = None @classmethod def _build_schema_package_shipping_details_read(cls, _schema): if cls._schema_package_shipping_details_read is not None: _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url return cls._schema_package_shipping_details_read = _schema_package_shipping_details_read = AAZObjectType() package_shipping_details_read = _schema_package_shipping_details_read package_shipping_details_read.carrier_name = AAZStrType( serialized_name="carrierName", flags={"read_only": True}, ) package_shipping_details_read.tracking_id = AAZStrType( serialized_name="trackingId", flags={"read_only": True}, ) package_shipping_details_read.tracking_url = AAZStrType( serialized_name="trackingUrl", flags={"read_only": True}, ) _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url _schema_shipping_address_read = None @classmethod def _build_schema_shipping_address_read(cls, _schema): if cls._schema_shipping_address_read is not None: _schema.address_type = cls._schema_shipping_address_read.address_type _schema.city = cls._schema_shipping_address_read.city _schema.company_name = cls._schema_shipping_address_read.company_name _schema.country = cls._schema_shipping_address_read.country _schema.postal_code = cls._schema_shipping_address_read.postal_code _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation _schema.state_or_province = cls._schema_shipping_address_read.state_or_province _schema.street_address1 = cls._schema_shipping_address_read.street_address1 _schema.street_address2 = cls._schema_shipping_address_read.street_address2 _schema.street_address3 = cls._schema_shipping_address_read.street_address3 _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code return cls._schema_shipping_address_read = _schema_shipping_address_read = AAZObjectType() shipping_address_read = _schema_shipping_address_read shipping_address_read.address_type = AAZStrType( serialized_name="addressType", ) shipping_address_read.city = AAZStrType() shipping_address_read.company_name = AAZStrType( serialized_name="companyName", ) shipping_address_read.country = AAZStrType( flags={"required": True}, ) shipping_address_read.postal_code = AAZStrType( serialized_name="postalCode", ) shipping_address_read.skip_address_validation = AAZBoolType( serialized_name="skipAddressValidation", ) shipping_address_read.state_or_province = AAZStrType( serialized_name="stateOrProvince", ) shipping_address_read.street_address1 = AAZStrType( serialized_name="streetAddress1", flags={"required": True}, ) shipping_address_read.street_address2 = AAZStrType( serialized_name="streetAddress2", ) shipping_address_read.street_address3 = AAZStrType( serialized_name="streetAddress3", ) shipping_address_read.tax_identification_number = AAZStrType( serialized_name="taxIdentificationNumber", ) shipping_address_read.zip_extended_code = AAZStrType( serialized_name="zipExtendedCode", ) _schema.address_type = cls._schema_shipping_address_read.address_type _schema.city = cls._schema_shipping_address_read.city _schema.company_name = cls._schema_shipping_address_read.company_name _schema.country = cls._schema_shipping_address_read.country _schema.postal_code = cls._schema_shipping_address_read.postal_code _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation _schema.state_or_province = cls._schema_shipping_address_read.state_or_province _schema.street_address1 = cls._schema_shipping_address_read.street_address1 _schema.street_address2 = cls._schema_shipping_address_read.street_address2 _schema.street_address3 = cls._schema_shipping_address_read.street_address3 _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code _schema_transport_preferences_read = None @classmethod def _build_schema_transport_preferences_read(cls, _schema): if cls._schema_transport_preferences_read is not None: _schema.is_updated = cls._schema_transport_preferences_read.is_updated _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type return cls._schema_transport_preferences_read = _schema_transport_preferences_read = AAZObjectType() transport_preferences_read = _schema_transport_preferences_read transport_preferences_read.is_updated = AAZBoolType( serialized_name="isUpdated", flags={"read_only": True}, ) transport_preferences_read.preferred_shipment_type = AAZStrType( serialized_name="preferredShipmentType", flags={"required": True}, ) _schema.is_updated = cls._schema_transport_preferences_read.is_updated _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type
class _ShowHelper: '''Helper class for Show''' @classmethod def _build_schema_cloud_error_read(cls, _schema): pass @classmethod def _build_schema_copy_progress_read(cls, _schema): pass @classmethod def _build_schema_data_account_details_read(cls, _schema): pass @classmethod def _build_schema_package_shipping_details_read(cls, _schema): pass @classmethod def _build_schema_shipping_address_read(cls, _schema): pass @classmethod def _build_schema_transport_preferences_read(cls, _schema): pass
13
1
54
4
50
0
2
0
0
0
0
0
0
0
6
6
349
36
312
37
299
1
176
25
169
2
0
1
12
8,372
Azure/azure-cli-extensions
src/databox/azext_databox/aaz/latest/databox/job/_update.py
azext_databox.aaz.latest.databox.job._update.Update
class Update(AAZCommand): """Update the properties of an existing job. :example: Update job az databox job update -g rg -n job-name --contact-name 'name --email-list email --phone phone-number """ _aaz_info = { "version": "2022-12-01", "resources": [ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}", "2022-12-01"], ] } AZ_SUPPORT_NO_WAIT = True def _handler(self, command_args): super()._handler(command_args) return self.build_lro_poller(self._execute_operations, self._output) _args_schema = None @classmethod def _build_arguments_schema(cls, *args, **kwargs): if cls._args_schema is not None: return cls._args_schema cls._args_schema = super()._build_arguments_schema(*args, **kwargs) # define Arg Group "" _args_schema = cls._args_schema _args_schema.job_name = AAZStrArg( options=["-n", "--name", "--job-name"], help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", required=True, id_part="name", fmt=AAZStrArgFormat( pattern="^[-\w\.]+$", max_length=24, min_length=3, ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, ) # define Arg Group "ContactDetails" _args_schema = cls._args_schema _args_schema.contact_name = AAZStrArg( options=["--contact-name"], arg_group="ContactDetails", help="Contact name of the person.", ) _args_schema.email_list = AAZListArg( options=["--email-list"], arg_group="ContactDetails", help="List of Email-ids to be notified about job progress.", ) _args_schema.mobile = AAZStrArg( options=["--mobile"], arg_group="ContactDetails", help="Mobile number of the contact person.", ) _args_schema.phone = AAZStrArg( options=["--phone"], arg_group="ContactDetails", help="Phone number of the contact person.", ) email_list = cls._args_schema.email_list email_list.Element = AAZStrArg() # define Arg Group "Details" # define Arg Group "JobResourceUpdateParameter" # define Arg Group "KeyEncryptionKey" _args_schema = cls._args_schema _args_schema.kek_identity = AAZObjectArg( options=["--kek-identity"], arg_group="KeyEncryptionKey", help="Managed identity properties used for key encryption.", ) _args_schema.kek_type = AAZStrArg( options=["--kek-type"], arg_group="KeyEncryptionKey", help="Type of encryption key used for key encryption.", enum={"CustomerManaged": "CustomerManaged", "MicrosoftManaged": "MicrosoftManaged"}, ) _args_schema.kek_url = AAZStrArg( options=["--kek-url"], arg_group="KeyEncryptionKey", help="Key encryption key. It is required in case of Customer managed KekType.", ) _args_schema.kek_vault_resource_id = AAZStrArg( options=["--kek-vault-resource-id"], arg_group="KeyEncryptionKey", help="Kek vault resource id. It is required in case of Customer managed KekType.", ) kek_identity = cls._args_schema.kek_identity kek_identity.type = AAZStrArg( options=["type"], help="Managed service identity type.", ) kek_identity.user_assigned = AAZObjectArg( options=["user-assigned"], help="User assigned identity properties.", ) user_assigned = cls._args_schema.kek_identity.user_assigned user_assigned.resource_id = AAZStrArg( options=["resource-id"], help="Arm resource id for user assigned identity to be used to fetch MSI token.", ) # define Arg Group "ShippingAddress" _args_schema = cls._args_schema _args_schema.city = AAZStrArg( options=["--city"], arg_group="ShippingAddress", help="Name of the city.", ) _args_schema.company_name = AAZStrArg( options=["--company-name"], arg_group="ShippingAddress", help="Name of the company.", ) _args_schema.country = AAZStrArg( options=["--country"], arg_group="ShippingAddress", help="Name of the Country.", ) _args_schema.postal_code = AAZStrArg( options=["--postal-code"], arg_group="ShippingAddress", help="Postal code.", ) _args_schema.state_or_province = AAZStrArg( options=["--state-or-province"], arg_group="ShippingAddress", help="Name of the State or Province.", ) _args_schema.street_address1 = AAZStrArg( options=["--street-address1"], arg_group="ShippingAddress", help="Street Address line 1.", ) _args_schema.street_address2 = AAZStrArg( options=["--street-address2"], arg_group="ShippingAddress", help="Street Address line 2.", ) _args_schema.street_address3 = AAZStrArg( options=["--street-address3"], arg_group="ShippingAddress", help="Street Address line 3.", ) return cls._args_schema _args_shipping_address_update = None @classmethod def _build_args_shipping_address_update(cls, _schema): if cls._args_shipping_address_update is not None: _schema.address_type = cls._args_shipping_address_update.address_type _schema.city = cls._args_shipping_address_update.city _schema.company_name = cls._args_shipping_address_update.company_name _schema.country = cls._args_shipping_address_update.country _schema.postal_code = cls._args_shipping_address_update.postal_code _schema.skip_address_validation = cls._args_shipping_address_update.skip_address_validation _schema.state_or_province = cls._args_shipping_address_update.state_or_province _schema.street_address1 = cls._args_shipping_address_update.street_address1 _schema.street_address2 = cls._args_shipping_address_update.street_address2 _schema.street_address3 = cls._args_shipping_address_update.street_address3 _schema.tax_identification_number = cls._args_shipping_address_update.tax_identification_number _schema.zip_extended_code = cls._args_shipping_address_update.zip_extended_code return cls._args_shipping_address_update = AAZObjectArg() shipping_address_update = cls._args_shipping_address_update shipping_address_update.address_type = AAZStrArg( options=["address-type"], help="Type of address.", default="None", enum={"Commercial": "Commercial", "None": "None", "Residential": "Residential"}, ) shipping_address_update.city = AAZStrArg( options=["city"], help="Name of the City.", ) shipping_address_update.company_name = AAZStrArg( options=["company-name"], help="Name of the company.", ) shipping_address_update.country = AAZStrArg( options=["country"], help="Name of the Country.", required=True, ) shipping_address_update.postal_code = AAZStrArg( options=["postal-code"], help="Postal code.", ) shipping_address_update.skip_address_validation = AAZBoolArg( options=["skip-address-validation"], help="Flag to indicate if customer has chosen to skip default address validation", ) shipping_address_update.state_or_province = AAZStrArg( options=["state-or-province"], help="Name of the State or Province.", ) shipping_address_update.street_address1 = AAZStrArg( options=["street-address1"], help="Street Address line 1.", required=True, ) shipping_address_update.street_address2 = AAZStrArg( options=["street-address2"], help="Street Address line 2.", ) shipping_address_update.street_address3 = AAZStrArg( options=["street-address3"], help="Street Address line 3.", ) shipping_address_update.tax_identification_number = AAZStrArg( options=["tax-identification-number"], help="Tax Identification Number", ) shipping_address_update.zip_extended_code = AAZStrArg( options=["zip-extended-code"], help="Extended Zip Code.", ) _schema.address_type = cls._args_shipping_address_update.address_type _schema.city = cls._args_shipping_address_update.city _schema.company_name = cls._args_shipping_address_update.company_name _schema.country = cls._args_shipping_address_update.country _schema.postal_code = cls._args_shipping_address_update.postal_code _schema.skip_address_validation = cls._args_shipping_address_update.skip_address_validation _schema.state_or_province = cls._args_shipping_address_update.state_or_province _schema.street_address1 = cls._args_shipping_address_update.street_address1 _schema.street_address2 = cls._args_shipping_address_update.street_address2 _schema.street_address3 = cls._args_shipping_address_update.street_address3 _schema.tax_identification_number = cls._args_shipping_address_update.tax_identification_number _schema.zip_extended_code = cls._args_shipping_address_update.zip_extended_code _args_transport_preferences_update = None @classmethod def _build_args_transport_preferences_update(cls, _schema): if cls._args_transport_preferences_update is not None: _schema.preferred_shipment_type = cls._args_transport_preferences_update.preferred_shipment_type return cls._args_transport_preferences_update = AAZObjectArg() transport_preferences_update = cls._args_transport_preferences_update transport_preferences_update.preferred_shipment_type = AAZStrArg( options=["preferred-shipment-type"], help="Indicates Shipment Logistics type that the customer preferred.", required=True, enum={"CustomerManaged": "CustomerManaged", "MicrosoftManaged": "MicrosoftManaged"}, ) _schema.preferred_shipment_type = cls._args_transport_preferences_update.preferred_shipment_type def _execute_operations(self): self.pre_operations() yield self.JobsUpdate(ctx=self.ctx)() self.post_operations() @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass def _output(self, *args, **kwargs): result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) return result class JobsUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request(request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", **self.url_parameters ) @property def method(self): return "PATCH" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "jobName", self.ctx.args.job_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-12-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("details", AAZObjectType) details = _builder.get(".properties.details") if details is not None: details.set_prop("contactDetails", AAZObjectType) details.set_prop("keyEncryptionKey", AAZObjectType) details.set_prop("shippingAddress", AAZObjectType) contact_details = _builder.get(".properties.details.contactDetails") if contact_details is not None: contact_details.set_prop("contactName", AAZStrType, ".contact_name", typ_kwargs={"flags": {"required": True}}) contact_details.set_prop("emailList", AAZListType, ".email_list", typ_kwargs={"flags": {"required": True}}) contact_details.set_prop("mobile", AAZStrType, ".mobile") contact_details.set_prop("phone", AAZStrType, ".phone", typ_kwargs={"flags": {"required": True}}) email_list = _builder.get(".properties.details.contactDetails.emailList") if email_list is not None: email_list.set_elements(AAZStrType, ".") key_encryption_key = _builder.get(".properties.details.keyEncryptionKey") if key_encryption_key is not None: key_encryption_key.set_prop("identityProperties", AAZObjectType, ".kek_identity") key_encryption_key.set_prop("kekType", AAZStrType, ".kek_type", typ_kwargs={"flags": {"required": True}}) key_encryption_key.set_prop("kekUrl", AAZStrType, ".kek_url") key_encryption_key.set_prop("kekVaultResourceID", AAZStrType, ".kek_vault_resource_id") identity_properties = _builder.get(".properties.details.keyEncryptionKey.identityProperties") if identity_properties is not None: identity_properties.set_prop("type", AAZStrType, ".type") identity_properties.set_prop("userAssigned", AAZObjectType, ".user_assigned") user_assigned = _builder.get(".properties.details.keyEncryptionKey.identityProperties.userAssigned") if user_assigned is not None: user_assigned.set_prop("resourceId", AAZStrType, ".resource_id") shipping_address = _builder.get(".properties.details.shippingAddress") if shipping_address is not None: shipping_address.set_prop("city", AAZStrType, ".city") shipping_address.set_prop("companyName", AAZStrType, ".company_name") shipping_address.set_prop("country", AAZStrType, ".country", typ_kwargs={"flags": {"required": True}}) shipping_address.set_prop("postalCode", AAZStrType, ".postal_code") shipping_address.set_prop("stateOrProvince", AAZStrType, ".state_or_province") shipping_address.set_prop("streetAddress1", AAZStrType, ".street_address1", typ_kwargs={"flags": {"required": True}}) shipping_address.set_prop("streetAddress2", AAZStrType, ".street_address2") shipping_address.set_prop("streetAddress3", AAZStrType, ".street_address3") return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.identity = AAZObjectType() _schema_on_200.location = AAZStrType( flags={"required": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"required": True, "client_flatten": True}, ) _schema_on_200.sku = AAZObjectType( flags={"required": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", ) _schema_on_200.tags = AAZDictType() _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) identity = cls._schema_on_200.identity identity.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, ) identity.tenant_id = AAZStrType( serialized_name="tenantId", flags={"read_only": True}, ) identity.type = AAZStrType() identity.user_assigned_identities = AAZDictType( serialized_name="userAssignedIdentities", ) user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities user_assigned_identities.Element = AAZObjectType() _element = cls._schema_on_200.identity.user_assigned_identities.Element _element.client_id = AAZStrType( serialized_name="clientId", flags={"read_only": True}, ) _element.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.cancellation_reason = AAZStrType( serialized_name="cancellationReason", flags={"read_only": True}, ) properties.delivery_info = AAZObjectType( serialized_name="deliveryInfo", ) properties.delivery_type = AAZStrType( serialized_name="deliveryType", ) properties.details = AAZObjectType() properties.error = AAZObjectType() _UpdateHelper._build_schema_cloud_error_read(properties.error) properties.is_cancellable = AAZBoolType( serialized_name="isCancellable", flags={"read_only": True}, ) properties.is_cancellable_without_fee = AAZBoolType( serialized_name="isCancellableWithoutFee", flags={"read_only": True}, ) properties.is_deletable = AAZBoolType( serialized_name="isDeletable", flags={"read_only": True}, ) properties.is_prepare_to_ship_enabled = AAZBoolType( serialized_name="isPrepareToShipEnabled", flags={"read_only": True}, ) properties.is_shipping_address_editable = AAZBoolType( serialized_name="isShippingAddressEditable", flags={"read_only": True}, ) properties.reverse_shipping_details_update = AAZStrType( serialized_name="reverseShippingDetailsUpdate", flags={"read_only": True}, ) properties.reverse_transport_preference_update = AAZStrType( serialized_name="reverseTransportPreferenceUpdate", flags={"read_only": True}, ) properties.start_time = AAZStrType( serialized_name="startTime", flags={"read_only": True}, ) properties.status = AAZStrType( flags={"read_only": True}, ) properties.transfer_type = AAZStrType( serialized_name="transferType", flags={"required": True}, ) delivery_info = cls._schema_on_200.properties.delivery_info delivery_info.scheduled_date_time = AAZStrType( serialized_name="scheduledDateTime", ) details = cls._schema_on_200.properties.details details.actions = AAZListType( flags={"read_only": True}, ) details.chain_of_custody_sas_key = AAZStrType( serialized_name="chainOfCustodySasKey", flags={"read_only": True}, ) details.contact_details = AAZObjectType( serialized_name="contactDetails", flags={"required": True}, ) details.copy_log_details = AAZListType( serialized_name="copyLogDetails", flags={"read_only": True}, ) details.data_center_code = AAZStrType( serialized_name="dataCenterCode", flags={"read_only": True}, ) details.data_export_details = AAZListType( serialized_name="dataExportDetails", ) details.data_import_details = AAZListType( serialized_name="dataImportDetails", ) details.datacenter_address = AAZObjectType( serialized_name="datacenterAddress", ) details.delivery_package = AAZObjectType( serialized_name="deliveryPackage", ) _UpdateHelper._build_schema_package_shipping_details_read(details.delivery_package) details.device_erasure_details = AAZObjectType( serialized_name="deviceErasureDetails", ) details.expected_data_size_in_tera_bytes = AAZIntType( serialized_name="expectedDataSizeInTeraBytes", ) details.job_details_type = AAZStrType( serialized_name="jobDetailsType", flags={"required": True}, ) details.job_stages = AAZListType( serialized_name="jobStages", flags={"read_only": True}, ) details.key_encryption_key = AAZObjectType( serialized_name="keyEncryptionKey", ) details.last_mitigation_action_on_job = AAZObjectType( serialized_name="lastMitigationActionOnJob", ) details.preferences = AAZObjectType() details.return_package = AAZObjectType( serialized_name="returnPackage", ) _UpdateHelper._build_schema_package_shipping_details_read(details.return_package) details.reverse_shipment_label_sas_key = AAZStrType( serialized_name="reverseShipmentLabelSasKey", flags={"read_only": True}, ) details.reverse_shipping_details = AAZObjectType( serialized_name="reverseShippingDetails", ) details.shipping_address = AAZObjectType( serialized_name="shippingAddress", ) _UpdateHelper._build_schema_shipping_address_read(details.shipping_address) actions = cls._schema_on_200.properties.details.actions actions.Element = AAZStrType() contact_details = cls._schema_on_200.properties.details.contact_details contact_details.contact_name = AAZStrType( serialized_name="contactName", flags={"required": True}, ) contact_details.email_list = AAZListType( serialized_name="emailList", flags={"required": True}, ) contact_details.mobile = AAZStrType() contact_details.notification_preference = AAZListType( serialized_name="notificationPreference", ) contact_details.phone = AAZStrType( flags={"required": True}, ) contact_details.phone_extension = AAZStrType( serialized_name="phoneExtension", ) email_list = cls._schema_on_200.properties.details.contact_details.email_list email_list.Element = AAZStrType() notification_preference = cls._schema_on_200.properties.details.contact_details.notification_preference notification_preference.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.contact_details.notification_preference.Element _element.send_notification = AAZBoolType( serialized_name="sendNotification", flags={"required": True}, ) _element.stage_name = AAZStrType( serialized_name="stageName", flags={"required": True}, ) copy_log_details = cls._schema_on_200.properties.details.copy_log_details copy_log_details.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.copy_log_details.Element _element.copy_log_details_type = AAZStrType( serialized_name="copyLogDetailsType", flags={"required": True}, ) disc_data_box = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBox") disc_data_box.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) disc_data_box.copy_log_link = AAZStrType( serialized_name="copyLogLink", flags={"read_only": True}, ) disc_data_box.copy_verbose_log_link = AAZStrType( serialized_name="copyVerboseLogLink", flags={"read_only": True}, ) disc_data_box_customer_disk = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxCustomerDisk") disc_data_box_customer_disk.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) disc_data_box_customer_disk.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) disc_data_box_customer_disk.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) disc_data_box_disk = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxDisk") disc_data_box_disk.disk_serial_number = AAZStrType( serialized_name="diskSerialNumber", flags={"read_only": True}, ) disc_data_box_disk.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) disc_data_box_disk.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) disc_data_box_heavy = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy") disc_data_box_heavy.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) disc_data_box_heavy.copy_log_link = AAZListType( serialized_name="copyLogLink", flags={"read_only": True}, ) disc_data_box_heavy.copy_verbose_log_link = AAZListType( serialized_name="copyVerboseLogLink", flags={"read_only": True}, ) copy_log_link = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_log_link copy_log_link.Element = AAZStrType() copy_verbose_log_link = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_verbose_log_link copy_verbose_log_link.Element = AAZStrType() data_export_details = cls._schema_on_200.properties.details.data_export_details data_export_details.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.data_export_details.Element _element.account_details = AAZObjectType( serialized_name="accountDetails", flags={"required": True}, ) _UpdateHelper._build_schema_data_account_details_read(_element.account_details) _element.log_collection_level = AAZStrType( serialized_name="logCollectionLevel", ) _element.transfer_configuration = AAZObjectType( serialized_name="transferConfiguration", flags={"required": True}, ) transfer_configuration = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration transfer_configuration.transfer_all_details = AAZObjectType( serialized_name="transferAllDetails", ) transfer_configuration.transfer_configuration_type = AAZStrType( serialized_name="transferConfigurationType", flags={"required": True}, ) transfer_configuration.transfer_filter_details = AAZObjectType( serialized_name="transferFilterDetails", ) transfer_all_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details transfer_all_details.include = AAZObjectType() include = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details.include include.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"required": True}, ) include.transfer_all_blobs = AAZBoolType( serialized_name="transferAllBlobs", ) include.transfer_all_files = AAZBoolType( serialized_name="transferAllFiles", ) transfer_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details transfer_filter_details.include = AAZObjectType() include = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include include.azure_file_filter_details = AAZObjectType( serialized_name="azureFileFilterDetails", ) include.blob_filter_details = AAZObjectType( serialized_name="blobFilterDetails", ) include.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"required": True}, ) include.filter_file_details = AAZListType( serialized_name="filterFileDetails", ) azure_file_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details azure_file_filter_details.file_path_list = AAZListType( serialized_name="filePathList", ) azure_file_filter_details.file_prefix_list = AAZListType( serialized_name="filePrefixList", ) azure_file_filter_details.file_share_list = AAZListType( serialized_name="fileShareList", ) file_path_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_path_list file_path_list.Element = AAZStrType() file_prefix_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_prefix_list file_prefix_list.Element = AAZStrType() file_share_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_share_list file_share_list.Element = AAZStrType() blob_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details blob_filter_details.blob_path_list = AAZListType( serialized_name="blobPathList", ) blob_filter_details.blob_prefix_list = AAZListType( serialized_name="blobPrefixList", ) blob_filter_details.container_list = AAZListType( serialized_name="containerList", ) blob_path_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_path_list blob_path_list.Element = AAZStrType() blob_prefix_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_prefix_list blob_prefix_list.Element = AAZStrType() container_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.container_list container_list.Element = AAZStrType() filter_file_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details filter_file_details.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details.Element _element.filter_file_path = AAZStrType( serialized_name="filterFilePath", flags={"required": True}, ) _element.filter_file_type = AAZStrType( serialized_name="filterFileType", flags={"required": True}, ) data_import_details = cls._schema_on_200.properties.details.data_import_details data_import_details.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.data_import_details.Element _element.account_details = AAZObjectType( serialized_name="accountDetails", flags={"required": True}, ) _UpdateHelper._build_schema_data_account_details_read(_element.account_details) _element.log_collection_level = AAZStrType( serialized_name="logCollectionLevel", ) datacenter_address = cls._schema_on_200.properties.details.datacenter_address datacenter_address.data_center_azure_location = AAZStrType( serialized_name="dataCenterAzureLocation", flags={"read_only": True}, ) datacenter_address.datacenter_address_type = AAZStrType( serialized_name="datacenterAddressType", flags={"required": True}, ) datacenter_address.supported_carriers_for_return_shipment = AAZListType( serialized_name="supportedCarriersForReturnShipment", flags={"read_only": True}, ) supported_carriers_for_return_shipment = cls._schema_on_200.properties.details.datacenter_address.supported_carriers_for_return_shipment supported_carriers_for_return_shipment.Element = AAZStrType() disc_datacenter_address_instruction = cls._schema_on_200.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressInstruction") disc_datacenter_address_instruction.communication_instruction = AAZStrType( serialized_name="communicationInstruction", flags={"read_only": True}, ) disc_datacenter_address_location = cls._schema_on_200.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressLocation") disc_datacenter_address_location.additional_shipping_information = AAZStrType( serialized_name="additionalShippingInformation", flags={"read_only": True}, ) disc_datacenter_address_location.address_type = AAZStrType( serialized_name="addressType", flags={"read_only": True}, ) disc_datacenter_address_location.city = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.company = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.contact_person_name = AAZStrType( serialized_name="contactPersonName", flags={"read_only": True}, ) disc_datacenter_address_location.country = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.phone = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.phone_extension = AAZStrType( serialized_name="phoneExtension", flags={"read_only": True}, ) disc_datacenter_address_location.state = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street1 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street2 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street3 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.zip = AAZStrType( flags={"read_only": True}, ) device_erasure_details = cls._schema_on_200.properties.details.device_erasure_details device_erasure_details.device_erasure_status = AAZStrType( serialized_name="deviceErasureStatus", flags={"read_only": True}, ) device_erasure_details.erasure_or_destruction_certificate_sas_key = AAZStrType( serialized_name="erasureOrDestructionCertificateSasKey", flags={"read_only": True}, ) job_stages = cls._schema_on_200.properties.details.job_stages job_stages.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.job_stages.Element _element.display_name = AAZStrType( serialized_name="displayName", flags={"read_only": True}, ) _element.stage_name = AAZStrType( serialized_name="stageName", flags={"read_only": True}, ) _element.stage_status = AAZStrType( serialized_name="stageStatus", flags={"read_only": True}, ) _element.stage_time = AAZStrType( serialized_name="stageTime", flags={"read_only": True}, ) key_encryption_key = cls._schema_on_200.properties.details.key_encryption_key key_encryption_key.identity_properties = AAZObjectType( serialized_name="identityProperties", ) key_encryption_key.kek_type = AAZStrType( serialized_name="kekType", flags={"required": True}, ) key_encryption_key.kek_url = AAZStrType( serialized_name="kekUrl", ) key_encryption_key.kek_vault_resource_id = AAZStrType( serialized_name="kekVaultResourceID", ) identity_properties = cls._schema_on_200.properties.details.key_encryption_key.identity_properties identity_properties.type = AAZStrType() identity_properties.user_assigned = AAZObjectType( serialized_name="userAssigned", ) user_assigned = cls._schema_on_200.properties.details.key_encryption_key.identity_properties.user_assigned user_assigned.resource_id = AAZStrType( serialized_name="resourceId", ) last_mitigation_action_on_job = cls._schema_on_200.properties.details.last_mitigation_action_on_job last_mitigation_action_on_job.action_date_time_in_utc = AAZStrType( serialized_name="actionDateTimeInUtc", ) last_mitigation_action_on_job.customer_resolution = AAZStrType( serialized_name="customerResolution", ) last_mitigation_action_on_job.is_performed_by_customer = AAZBoolType( serialized_name="isPerformedByCustomer", ) preferences = cls._schema_on_200.properties.details.preferences preferences.encryption_preferences = AAZObjectType( serialized_name="encryptionPreferences", ) preferences.preferred_data_center_region = AAZListType( serialized_name="preferredDataCenterRegion", ) preferences.reverse_transport_preferences = AAZObjectType( serialized_name="reverseTransportPreferences", ) _UpdateHelper._build_schema_transport_preferences_read(preferences.reverse_transport_preferences) preferences.storage_account_access_tier_preferences = AAZListType( serialized_name="storageAccountAccessTierPreferences", ) preferences.transport_preferences = AAZObjectType( serialized_name="transportPreferences", ) _UpdateHelper._build_schema_transport_preferences_read(preferences.transport_preferences) encryption_preferences = cls._schema_on_200.properties.details.preferences.encryption_preferences encryption_preferences.double_encryption = AAZStrType( serialized_name="doubleEncryption", ) encryption_preferences.hardware_encryption = AAZStrType( serialized_name="hardwareEncryption", ) preferred_data_center_region = cls._schema_on_200.properties.details.preferences.preferred_data_center_region preferred_data_center_region.Element = AAZStrType() storage_account_access_tier_preferences = cls._schema_on_200.properties.details.preferences.storage_account_access_tier_preferences storage_account_access_tier_preferences.Element = AAZStrType() reverse_shipping_details = cls._schema_on_200.properties.details.reverse_shipping_details reverse_shipping_details.contact_details = AAZObjectType( serialized_name="contactDetails", ) reverse_shipping_details.is_updated = AAZBoolType( serialized_name="isUpdated", flags={"read_only": True}, ) reverse_shipping_details.shipping_address = AAZObjectType( serialized_name="shippingAddress", ) _UpdateHelper._build_schema_shipping_address_read(reverse_shipping_details.shipping_address) contact_details = cls._schema_on_200.properties.details.reverse_shipping_details.contact_details contact_details.contact_name = AAZStrType( serialized_name="contactName", flags={"required": True}, ) contact_details.mobile = AAZStrType() contact_details.phone = AAZStrType( flags={"required": True}, ) contact_details.phone_extension = AAZStrType( serialized_name="phoneExtension", ) disc_data_box = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBox") disc_data_box.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box.device_password = AAZStrType( serialized_name="devicePassword", ) copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBox").copy_progress copy_progress.Element = AAZObjectType() _UpdateHelper._build_schema_copy_progress_read(copy_progress.Element) disc_data_box_customer_disk = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk") disc_data_box_customer_disk.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_customer_disk.deliver_to_dc_package_details = AAZObjectType( serialized_name="deliverToDcPackageDetails", ) disc_data_box_customer_disk.enable_manifest_backup = AAZBoolType( serialized_name="enableManifestBackup", ) disc_data_box_customer_disk.export_disk_details_collection = AAZDictType( serialized_name="exportDiskDetailsCollection", flags={"read_only": True}, ) disc_data_box_customer_disk.import_disk_details_collection = AAZDictType( serialized_name="importDiskDetailsCollection", ) disc_data_box_customer_disk.return_to_customer_package_details = AAZObjectType( serialized_name="returnToCustomerPackageDetails", flags={"required": True}, ) copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_processed = AAZIntType( serialized_name="bytesProcessed", flags={"read_only": True}, ) _element.copy_status = AAZStrType( serialized_name="copyStatus", flags={"read_only": True}, ) _element.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) _element.directories_errored_out = AAZIntType( serialized_name="directoriesErroredOut", flags={"read_only": True}, ) _element.error = AAZObjectType() _UpdateHelper._build_schema_cloud_error_read(_element.error) _element.files_errored_out = AAZIntType( serialized_name="filesErroredOut", flags={"read_only": True}, ) _element.files_processed = AAZIntType( serialized_name="filesProcessed", flags={"read_only": True}, ) _element.invalid_directories_processed = AAZIntType( serialized_name="invalidDirectoriesProcessed", flags={"read_only": True}, ) _element.invalid_file_bytes_uploaded = AAZIntType( serialized_name="invalidFileBytesUploaded", flags={"read_only": True}, ) _element.invalid_files_processed = AAZIntType( serialized_name="invalidFilesProcessed", flags={"read_only": True}, ) _element.is_enumeration_in_progress = AAZBoolType( serialized_name="isEnumerationInProgress", flags={"read_only": True}, ) _element.renamed_container_count = AAZIntType( serialized_name="renamedContainerCount", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.storage_account_name = AAZStrType( serialized_name="storageAccountName", flags={"read_only": True}, ) _element.total_bytes_to_process = AAZIntType( serialized_name="totalBytesToProcess", flags={"read_only": True}, ) _element.total_files_to_process = AAZIntType( serialized_name="totalFilesToProcess", flags={"read_only": True}, ) _element.transfer_type = AAZStrType( serialized_name="transferType", flags={"read_only": True}, ) actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element.actions actions.Element = AAZStrType() deliver_to_dc_package_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").deliver_to_dc_package_details deliver_to_dc_package_details.carrier_name = AAZStrType( serialized_name="carrierName", ) deliver_to_dc_package_details.tracking_id = AAZStrType( serialized_name="trackingId", ) export_disk_details_collection = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection export_disk_details_collection.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection.Element _element.backup_manifest_cloud_path = AAZStrType( serialized_name="backupManifestCloudPath", flags={"read_only": True}, ) _element.manifest_file = AAZStrType( serialized_name="manifestFile", flags={"read_only": True}, ) _element.manifest_hash = AAZStrType( serialized_name="manifestHash", flags={"read_only": True}, ) import_disk_details_collection = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection import_disk_details_collection.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection.Element _element.backup_manifest_cloud_path = AAZStrType( serialized_name="backupManifestCloudPath", flags={"read_only": True}, ) _element.bit_locker_key = AAZStrType( serialized_name="bitLockerKey", flags={"required": True, "secret": True}, ) _element.manifest_file = AAZStrType( serialized_name="manifestFile", flags={"required": True}, ) _element.manifest_hash = AAZStrType( serialized_name="manifestHash", flags={"required": True}, ) return_to_customer_package_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").return_to_customer_package_details return_to_customer_package_details.carrier_account_number = AAZStrType( serialized_name="carrierAccountNumber", flags={"secret": True}, ) return_to_customer_package_details.carrier_name = AAZStrType( serialized_name="carrierName", ) return_to_customer_package_details.tracking_id = AAZStrType( serialized_name="trackingId", ) disc_data_box_disk = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk") disc_data_box_disk.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_disk.disks_and_size_details = AAZDictType( serialized_name="disksAndSizeDetails", flags={"read_only": True}, ) disc_data_box_disk.granular_copy_log_details = AAZListType( serialized_name="granularCopyLogDetails", flags={"read_only": True}, ) disc_data_box_disk.granular_copy_progress = AAZListType( serialized_name="granularCopyProgress", flags={"read_only": True}, ) disc_data_box_disk.passkey = AAZStrType() disc_data_box_disk.preferred_disks = AAZDictType( serialized_name="preferredDisks", ) copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_copied = AAZIntType( serialized_name="bytesCopied", flags={"read_only": True}, ) _element.error = AAZObjectType() _UpdateHelper._build_schema_cloud_error_read(_element.error) _element.percent_complete = AAZIntType( serialized_name="percentComplete", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.status = AAZStrType( flags={"read_only": True}, ) actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element.actions actions.Element = AAZStrType() disks_and_size_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").disks_and_size_details disks_and_size_details.Element = AAZIntType() granular_copy_log_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details granular_copy_log_details.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.copy_log_details_type = AAZStrType( serialized_name="copyLogDetailsType", flags={"required": True}, ) _element.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) granular_copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress granular_copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_processed = AAZIntType( serialized_name="bytesProcessed", flags={"read_only": True}, ) _element.copy_status = AAZStrType( serialized_name="copyStatus", flags={"read_only": True}, ) _element.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) _element.directories_errored_out = AAZIntType( serialized_name="directoriesErroredOut", flags={"read_only": True}, ) _element.error = AAZObjectType() _UpdateHelper._build_schema_cloud_error_read(_element.error) _element.files_errored_out = AAZIntType( serialized_name="filesErroredOut", flags={"read_only": True}, ) _element.files_processed = AAZIntType( serialized_name="filesProcessed", flags={"read_only": True}, ) _element.invalid_directories_processed = AAZIntType( serialized_name="invalidDirectoriesProcessed", flags={"read_only": True}, ) _element.invalid_file_bytes_uploaded = AAZIntType( serialized_name="invalidFileBytesUploaded", flags={"read_only": True}, ) _element.invalid_files_processed = AAZIntType( serialized_name="invalidFilesProcessed", flags={"read_only": True}, ) _element.is_enumeration_in_progress = AAZBoolType( serialized_name="isEnumerationInProgress", flags={"read_only": True}, ) _element.renamed_container_count = AAZIntType( serialized_name="renamedContainerCount", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.storage_account_name = AAZStrType( serialized_name="storageAccountName", flags={"read_only": True}, ) _element.total_bytes_to_process = AAZIntType( serialized_name="totalBytesToProcess", flags={"read_only": True}, ) _element.total_files_to_process = AAZIntType( serialized_name="totalFilesToProcess", flags={"read_only": True}, ) _element.transfer_type = AAZStrType( serialized_name="transferType", flags={"read_only": True}, ) actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element.actions actions.Element = AAZStrType() preferred_disks = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").preferred_disks preferred_disks.Element = AAZIntType() disc_data_box_heavy = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxHeavy") disc_data_box_heavy.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_heavy.device_password = AAZStrType( serialized_name="devicePassword", ) copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxHeavy").copy_progress copy_progress.Element = AAZObjectType() _UpdateHelper._build_schema_copy_progress_read(copy_progress.Element) sku = cls._schema_on_200.sku sku.display_name = AAZStrType( serialized_name="displayName", ) sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) tags = cls._schema_on_200.tags tags.Element = AAZStrType() return cls._schema_on_200
class Update(AAZCommand): '''Update the properties of an existing job. :example: Update job az databox job update -g rg -n job-name --contact-name 'name --email-list email --phone phone-number ''' def _handler(self, command_args): pass @classmethod def _build_arguments_schema(cls, *args, **kwargs): pass @classmethod def _build_args_shipping_address_update(cls, _schema): pass @classmethod def _build_args_transport_preferences_update(cls, _schema): pass def _execute_operations(self): pass @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass def _output(self, *args, **kwargs): pass class JobsUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
33
1
77
6
71
0
2
0.01
1
2
1
0
5
0
8
8
1,449
141
1,298
123
1,265
10
543
109
523
9
1
1
32
8,373
Azure/azure-cli-extensions
src/databox/azext_databox/aaz/latest/databox/job/_update.py
azext_databox.aaz.latest.databox.job._update._UpdateHelper
class _UpdateHelper: """Helper class for Update""" @classmethod def _build_schema_shipping_address_update(cls, _builder): if _builder is None: return _builder.set_prop("addressType", AAZStrType, ".address_type") _builder.set_prop("city", AAZStrType, ".city") _builder.set_prop("companyName", AAZStrType, ".company_name") _builder.set_prop("country", AAZStrType, ".country", typ_kwargs={"flags": {"required": True}}) _builder.set_prop("postalCode", AAZStrType, ".postal_code") _builder.set_prop("skipAddressValidation", AAZBoolType, ".skip_address_validation") _builder.set_prop("stateOrProvince", AAZStrType, ".state_or_province") _builder.set_prop("streetAddress1", AAZStrType, ".street_address1", typ_kwargs={"flags": {"required": True}}) _builder.set_prop("streetAddress2", AAZStrType, ".street_address2") _builder.set_prop("streetAddress3", AAZStrType, ".street_address3") _builder.set_prop("taxIdentificationNumber", AAZStrType, ".tax_identification_number") _builder.set_prop("zipExtendedCode", AAZStrType, ".zip_extended_code") @classmethod def _build_schema_transport_preferences_update(cls, _builder): if _builder is None: return _builder.set_prop("preferredShipmentType", AAZStrType, ".preferred_shipment_type", typ_kwargs={"flags": {"required": True}}) _schema_cloud_error_read = None @classmethod def _build_schema_cloud_error_read(cls, _schema): if cls._schema_cloud_error_read is not None: _schema.additional_info = cls._schema_cloud_error_read.additional_info _schema.code = cls._schema_cloud_error_read.code _schema.details = cls._schema_cloud_error_read.details _schema.message = cls._schema_cloud_error_read.message _schema.target = cls._schema_cloud_error_read.target return cls._schema_cloud_error_read = _schema_cloud_error_read = AAZObjectType() cloud_error_read = _schema_cloud_error_read cloud_error_read.additional_info = AAZListType( serialized_name="additionalInfo", flags={"read_only": True}, ) cloud_error_read.code = AAZStrType() cloud_error_read.details = AAZListType( flags={"read_only": True}, ) cloud_error_read.message = AAZStrType() cloud_error_read.target = AAZStrType() additional_info = _schema_cloud_error_read.additional_info additional_info.Element = AAZObjectType() _element = _schema_cloud_error_read.additional_info.Element _element.type = AAZStrType() details = _schema_cloud_error_read.details details.Element = AAZObjectType() cls._build_schema_cloud_error_read(details.Element) _schema.additional_info = cls._schema_cloud_error_read.additional_info _schema.code = cls._schema_cloud_error_read.code _schema.details = cls._schema_cloud_error_read.details _schema.message = cls._schema_cloud_error_read.message _schema.target = cls._schema_cloud_error_read.target _schema_copy_progress_read = None @classmethod def _build_schema_copy_progress_read(cls, _schema): if cls._schema_copy_progress_read is not None: _schema.account_id = cls._schema_copy_progress_read.account_id _schema.actions = cls._schema_copy_progress_read.actions _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed _schema.data_account_type = cls._schema_copy_progress_read.data_account_type _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out _schema.error = cls._schema_copy_progress_read.error _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out _schema.files_processed = cls._schema_copy_progress_read.files_processed _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process _schema.transfer_type = cls._schema_copy_progress_read.transfer_type return cls._schema_copy_progress_read = _schema_copy_progress_read = AAZObjectType() copy_progress_read = _schema_copy_progress_read copy_progress_read.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) copy_progress_read.actions = AAZListType( flags={"read_only": True}, ) copy_progress_read.bytes_processed = AAZIntType( serialized_name="bytesProcessed", flags={"read_only": True}, ) copy_progress_read.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) copy_progress_read.directories_errored_out = AAZIntType( serialized_name="directoriesErroredOut", flags={"read_only": True}, ) copy_progress_read.error = AAZObjectType() cls._build_schema_cloud_error_read(copy_progress_read.error) copy_progress_read.files_errored_out = AAZIntType( serialized_name="filesErroredOut", flags={"read_only": True}, ) copy_progress_read.files_processed = AAZIntType( serialized_name="filesProcessed", flags={"read_only": True}, ) copy_progress_read.invalid_directories_processed = AAZIntType( serialized_name="invalidDirectoriesProcessed", flags={"read_only": True}, ) copy_progress_read.invalid_file_bytes_uploaded = AAZIntType( serialized_name="invalidFileBytesUploaded", flags={"read_only": True}, ) copy_progress_read.invalid_files_processed = AAZIntType( serialized_name="invalidFilesProcessed", flags={"read_only": True}, ) copy_progress_read.is_enumeration_in_progress = AAZBoolType( serialized_name="isEnumerationInProgress", flags={"read_only": True}, ) copy_progress_read.renamed_container_count = AAZIntType( serialized_name="renamedContainerCount", flags={"read_only": True}, ) copy_progress_read.storage_account_name = AAZStrType( serialized_name="storageAccountName", flags={"read_only": True}, ) copy_progress_read.total_bytes_to_process = AAZIntType( serialized_name="totalBytesToProcess", flags={"read_only": True}, ) copy_progress_read.total_files_to_process = AAZIntType( serialized_name="totalFilesToProcess", flags={"read_only": True}, ) copy_progress_read.transfer_type = AAZStrType( serialized_name="transferType", flags={"read_only": True}, ) actions = _schema_copy_progress_read.actions actions.Element = AAZStrType() _schema.account_id = cls._schema_copy_progress_read.account_id _schema.actions = cls._schema_copy_progress_read.actions _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed _schema.data_account_type = cls._schema_copy_progress_read.data_account_type _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out _schema.error = cls._schema_copy_progress_read.error _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out _schema.files_processed = cls._schema_copy_progress_read.files_processed _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process _schema.transfer_type = cls._schema_copy_progress_read.transfer_type _schema_data_account_details_read = None @classmethod def _build_schema_data_account_details_read(cls, _schema): if cls._schema_data_account_details_read is not None: _schema.data_account_type = cls._schema_data_account_details_read.data_account_type _schema.discriminate_by( "data_account_type", "ManagedDisk", cls._schema_data_account_details_read.discriminate_by( "data_account_type", "ManagedDisk", ) ) _schema.discriminate_by( "data_account_type", "StorageAccount", cls._schema_data_account_details_read.discriminate_by( "data_account_type", "StorageAccount", ) ) return cls._schema_data_account_details_read = _schema_data_account_details_read = AAZObjectType() data_account_details_read = _schema_data_account_details_read data_account_details_read.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"required": True}, ) disc_managed_disk = _schema_data_account_details_read.discriminate_by("data_account_type", "ManagedDisk") disc_managed_disk.resource_group_id = AAZStrType( serialized_name="resourceGroupId", flags={"required": True}, ) disc_managed_disk.staging_storage_account_id = AAZStrType( serialized_name="stagingStorageAccountId", flags={"required": True}, ) disc_storage_account = _schema_data_account_details_read.discriminate_by("data_account_type", "StorageAccount") disc_storage_account.storage_account_id = AAZStrType( serialized_name="storageAccountId", flags={"required": True}, ) _schema.data_account_type = cls._schema_data_account_details_read.data_account_type _schema.discriminate_by( "data_account_type", "ManagedDisk", cls._schema_data_account_details_read.discriminate_by( "data_account_type", "ManagedDisk", ) ) _schema.discriminate_by( "data_account_type", "StorageAccount", cls._schema_data_account_details_read.discriminate_by( "data_account_type", "StorageAccount", ) ) _schema_package_shipping_details_read = None @classmethod def _build_schema_package_shipping_details_read(cls, _schema): if cls._schema_package_shipping_details_read is not None: _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url return cls._schema_package_shipping_details_read = _schema_package_shipping_details_read = AAZObjectType() package_shipping_details_read = _schema_package_shipping_details_read package_shipping_details_read.carrier_name = AAZStrType( serialized_name="carrierName", flags={"read_only": True}, ) package_shipping_details_read.tracking_id = AAZStrType( serialized_name="trackingId", flags={"read_only": True}, ) package_shipping_details_read.tracking_url = AAZStrType( serialized_name="trackingUrl", flags={"read_only": True}, ) _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url _schema_shipping_address_read = None @classmethod def _build_schema_shipping_address_read(cls, _schema): if cls._schema_shipping_address_read is not None: _schema.address_type = cls._schema_shipping_address_read.address_type _schema.city = cls._schema_shipping_address_read.city _schema.company_name = cls._schema_shipping_address_read.company_name _schema.country = cls._schema_shipping_address_read.country _schema.postal_code = cls._schema_shipping_address_read.postal_code _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation _schema.state_or_province = cls._schema_shipping_address_read.state_or_province _schema.street_address1 = cls._schema_shipping_address_read.street_address1 _schema.street_address2 = cls._schema_shipping_address_read.street_address2 _schema.street_address3 = cls._schema_shipping_address_read.street_address3 _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code return cls._schema_shipping_address_read = _schema_shipping_address_read = AAZObjectType() shipping_address_read = _schema_shipping_address_read shipping_address_read.address_type = AAZStrType( serialized_name="addressType", ) shipping_address_read.city = AAZStrType() shipping_address_read.company_name = AAZStrType( serialized_name="companyName", ) shipping_address_read.country = AAZStrType( flags={"required": True}, ) shipping_address_read.postal_code = AAZStrType( serialized_name="postalCode", ) shipping_address_read.skip_address_validation = AAZBoolType( serialized_name="skipAddressValidation", ) shipping_address_read.state_or_province = AAZStrType( serialized_name="stateOrProvince", ) shipping_address_read.street_address1 = AAZStrType( serialized_name="streetAddress1", flags={"required": True}, ) shipping_address_read.street_address2 = AAZStrType( serialized_name="streetAddress2", ) shipping_address_read.street_address3 = AAZStrType( serialized_name="streetAddress3", ) shipping_address_read.tax_identification_number = AAZStrType( serialized_name="taxIdentificationNumber", ) shipping_address_read.zip_extended_code = AAZStrType( serialized_name="zipExtendedCode", ) _schema.address_type = cls._schema_shipping_address_read.address_type _schema.city = cls._schema_shipping_address_read.city _schema.company_name = cls._schema_shipping_address_read.company_name _schema.country = cls._schema_shipping_address_read.country _schema.postal_code = cls._schema_shipping_address_read.postal_code _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation _schema.state_or_province = cls._schema_shipping_address_read.state_or_province _schema.street_address1 = cls._schema_shipping_address_read.street_address1 _schema.street_address2 = cls._schema_shipping_address_read.street_address2 _schema.street_address3 = cls._schema_shipping_address_read.street_address3 _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code _schema_transport_preferences_read = None @classmethod def _build_schema_transport_preferences_read(cls, _schema): if cls._schema_transport_preferences_read is not None: _schema.is_updated = cls._schema_transport_preferences_read.is_updated _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type return cls._schema_transport_preferences_read = _schema_transport_preferences_read = AAZObjectType() transport_preferences_read = _schema_transport_preferences_read transport_preferences_read.is_updated = AAZBoolType( serialized_name="isUpdated", flags={"read_only": True}, ) transport_preferences_read.preferred_shipment_type = AAZStrType( serialized_name="preferredShipmentType", flags={"required": True}, ) _schema.is_updated = cls._schema_transport_preferences_read.is_updated _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type
class _UpdateHelper: '''Helper class for Update''' @classmethod def _build_schema_shipping_address_update(cls, _builder): pass @classmethod def _build_schema_transport_preferences_update(cls, _builder): pass @classmethod def _build_schema_cloud_error_read(cls, _schema): pass @classmethod def _build_schema_copy_progress_read(cls, _schema): pass @classmethod def _build_schema_data_account_details_read(cls, _schema): pass @classmethod def _build_schema_package_shipping_details_read(cls, _schema): pass @classmethod def _build_schema_shipping_address_read(cls, _schema): pass @classmethod def _build_schema_transport_preferences_read(cls, _schema): pass
17
1
43
3
40
0
2
0
0
0
0
0
0
0
8
8
372
38
333
41
316
1
195
27
186
2
0
1
16
8,374
Azure/azure-cli-extensions
src/databox/azext_databox/custom.py
azext_databox.custom.JobCreate
class JobCreate(_JobCreate): @classmethod def _build_arguments_schema(cls, *args, **kwargs): from azure.cli.core.aaz import AAZResourceIdArg, AAZResourceIdArgFormat, AAZListArg, AAZStrArg, AAZArgEnum, AAZFreeFormDictArg, AAZFreeFormDictArgFormat, AAZBoolArg args_schema = super()._build_arguments_schema(*args, **kwargs) args_schema.storage_accounts = AAZListArg( options=["--storage-account"], help="Space-separated list of the destination storage account. It can be the name or resource ID of storage account." ) args_schema.storage_accounts.Element = AAZResourceIdArg( fmt=AAZResourceIdArgFormat(template="/subscriptions/{subscription}/resourceGroups/{resource_group}" "/providers/Microsoft.Storage/storageAccounts/{}") ) args_schema.staging_storage_account = AAZResourceIdArg( options=["--staging-storage-account"], help="Resource Id of the storage account that can be used to copy the vhd for staging.", fmt=AAZResourceIdArgFormat(template="/subscriptions/{subscription}/resourceGroups/{resource_group}" "/providers/Microsoft.Storage/storageAccounts/{}") ) args_schema.resource_group_for_managed_disk = AAZResourceIdArg( options=['--resource-group-for-managed-disk'], help="Resource Group Id of the compute disks.", fmt=AAZResourceIdArgFormat(template="/subscriptions/{subscription}/resourceGroups/{}") ) args_schema.transfer_configuration_type = AAZStrArg( options=['--transfer-configuration-type'], help="Type of the configuration for transfer." ) args_schema.transfer_configuration_type.enum = AAZArgEnum({"TransferAll", "TransferUsingFilter"}) args_schema.transfer_filter_details = AAZFreeFormDictArg( options=["--transfer-filter-details"], help="Path to the map of filter type and the details to filter.", fmt=AAZFreeFormDictArgFormat() ) args_schema.transfer_all_blobs = AAZBoolArg( options=["--transfer-all-blobs"], help="To indicate if all Azure blobs have to be transferred", default=False ) args_schema.transfer_all_files = AAZBoolArg( options=["--transfer-all-files"], help="To indicate if all Azure files have to be transferred", default=False ) args_schema.data_box._registered = False args_schema.data_box_disk._registered = False args_schema.data_box_heavy._registered = False args_schema.data_import_details._registered = False args_schema.data_export_details._registered = False return args_schema def pre_operations(self): args = self.ctx.args if args.sku == 'DataBox': args.data_box = {} if args.sku == 'DataBoxDisk': args.data_box_disk = {} if args.sku == 'DataBoxHeavy': args.data_box_heavy = {} if args.sku == 'DataBoxDisk' and not has_value(args.expected_data_size): raise ArgumentUsageError("You must provide '--expected-data-size' when the 'sku' is 'DataBoxDisk'.") if not has_value(args.storage_accounts) and not has_value(args.staging_storage_account): raise ArgumentUsageError("You must provide at least one '--storage-account' or the combination of '--staging-storage-account' and '--resource-group-for-managed-disk'") data_import_or_export_details = [] if has_value(args.storage_accounts): for storage_account in args.storage_accounts: account_details = { 'account_details': { 'storage_account': { 'storage_account_id': storage_account } } } data_import_or_export_details.append(account_details) if has_value(args.staging_storage_account): account_details = { 'account_details': { 'managed_disk': { 'staging_storage_account_id': args.staging_storage_account, 'resource_group_id': args.resource_group_for_managed_disk } } } data_import_or_export_details.append(account_details) if args.transfer_type == 'ImportToAzure': args.data_import_details = data_import_or_export_details if args.transfer_type == 'ExportFromAzure': if not has_value(args.transfer_configuration_type): raise ArgumentUsageError('You must provide --transfer-configuration-type when --transfer-type is ExportFromAzure.') for detail in data_import_or_export_details: if args.transfer_configuration_type == 'TransferAll': data_account_type = 'StorageAccount' if 'storage_account' in detail['account_details'] else 'ManagedDisk' transfer_configuration = { 'transfer_configuration_type': args.transfer_configuration_type, 'transfer_all_details': { 'include': { 'data_account_type': data_account_type, 'transfer_all_blobs': args.transfer_all_blobs, 'transfer_all_files': args.transfer_all_files } } } detail['transfer_configuration'] = transfer_configuration if args.transfer_configuration_type == 'TransferUsingFilter': if not has_value(args.transfer_filter_details): raise ArgumentUsageError('You must provide --transfer-filter-details when --transfer-configuration-type is TransferUsingFilter.') transfer_configuration = { "transfer_configuration_type": args.transfer_configuration_type, "transfer_filter_details": args.transfer_filter_details } detail['transfer_configuration'] = transfer_configuration args.data_export_details = data_import_or_export_details
class JobCreate(_JobCreate): @classmethod def _build_arguments_schema(cls, *args, **kwargs): pass def pre_operations(self): pass
4
0
57
2
55
0
9
0
1
1
0
0
1
0
2
10
116
5
111
13
106
0
55
12
51
17
2
4
18
8,375
Azure/azure-cli-extensions
src/databricks/azext_databricks/__init__.py
azext_databricks.DatabricksClientCommandsLoader
class DatabricksClientCommandsLoader(AzCommandsLoader): def __init__(self, cli_ctx=None): from azure.cli.core.commands import CliCommandType databricks_custom = CliCommandType( operations_tmpl='azext_databricks.custom#{}') super().__init__(cli_ctx=cli_ctx, custom_command_type=databricks_custom) def load_command_table(self, args): from azext_databricks.commands import load_command_table from azure.cli.core.aaz import load_aaz_command_table try: from . import aaz except ImportError: aaz = None if aaz: load_aaz_command_table( loader=self, aaz_pkg_name=aaz.__name__, args=args ) load_command_table(self, args) return self.command_table def load_arguments(self, command): from azext_databricks._params import load_arguments load_arguments(self, command)
class DatabricksClientCommandsLoader(AzCommandsLoader): def __init__(self, cli_ctx=None): pass def load_command_table(self, args): pass def load_arguments(self, command): pass
4
0
8
0
8
0
2
0.04
1
2
0
0
3
0
3
3
28
3
25
10
16
1
19
10
10
3
1
1
5
8,376
Azure/azure-cli-extensions
src/databricks/azext_databricks/aaz/latest/databricks/__cmd_group.py
azext_databricks.aaz.latest.databricks.__cmd_group.__CMDGroup
class __CMDGroup(AAZCommandGroup): """Manage databricks workspaces. """ pass
class __CMDGroup(AAZCommandGroup): '''Manage databricks workspaces. ''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
4
0
2
1
1
2
2
1
1
0
1
0
0
8,377
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.BindingResource
class BindingResource(ProxyResource): """Binding resource payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Properties of the Binding resource. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResourceProperties """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "BindingResourceProperties"}, } def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: Properties of the Binding resource. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResourceProperties """ super().__init__(**kwargs) self.properties = properties
class BindingResource(ProxyResource): '''Binding resource payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Properties of the Binding resource. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResourceProperties ''' def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: ''' :keyword properties: Properties of the Binding resource. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.BindingResourceProperties ''' pass
2
2
7
0
3
4
1
1
1
2
0
0
1
1
1
17
39
5
17
5
15
17
6
5
4
1
4
0
1
8,378
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/ipam_pool/static_cidr/_list.py
azext_network_manager.aaz.latest.network.manager.ipam_pool.static_cidr._list.List.StaticCidrsList
class StaticCidrsList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "poolName", self.ctx.args.pool_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "skip", self.ctx.args.skip, ), **self.serialize_query_param( "skipToken", self.ctx.args.skip_token, ), **self.serialize_query_param( "sortKey", self.ctx.args.sort_key, ), **self.serialize_query_param( "sortValue", self.ctx.args.sort_value, ), **self.serialize_query_param( "top", self.ctx.args.top, ), **self.serialize_query_param( "api-version", "2024-05-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.address_prefixes = AAZListType( serialized_name="addressPrefixes", ) properties.description = AAZStrType() properties.number_of_ip_addresses_to_allocate = AAZStrType( serialized_name="numberOfIPAddressesToAllocate", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.total_number_of_ip_addresses = AAZStrType( serialized_name="totalNumberOfIPAddresses", flags={"read_only": True}, ) address_prefixes = cls._schema_on_200.value.Element.properties.address_prefixes address_prefixes.Element = AAZStrType() system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class StaticCidrsList(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
16
1
15
0
1
0
1
0
0
0
8
0
9
9
165
19
146
31
129
0
58
24
48
2
1
1
11
8,379
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/ipam_pool/static_cidr/_delete.py
azext_network_manager.aaz.latest.network.manager.ipam_pool.static_cidr._delete.Delete.StaticCidrsDelete
class StaticCidrsDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_204, self.on_error, lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "poolName", self.ctx.args.pool_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "staticCidrName", self.ctx.args.static_cidr_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-05-01", required=True, ), } return parameters def on_204(self, session): pass def on_200_201(self, session): pass
class StaticCidrsDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_204(self, session): pass def on_200_201(self, session): pass
14
0
10
0
10
0
1
0
1
0
0
0
8
1
8
8
92
9
83
20
69
0
28
14
19
4
1
1
11
8,380
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/ipam_pool/static_cidr/_create.py
azext_network_manager.aaz.latest.network.manager.ipam_pool.static_cidr._create.Create.StaticCidrsCreate
class StaticCidrsCreate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "poolName", self.ctx.args.pool_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "staticCidrName", self.ctx.args.static_cidr_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-05-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType) properties = _builder.get(".properties") if properties is not None: properties.set_prop("addressPrefixes", AAZListType, ".address_prefixes") properties.set_prop("description", AAZStrType, ".description") properties.set_prop("numberOfIPAddressesToAllocate", AAZStrType, ".number_of_ip_addresses_to_allocate") address_prefixes = _builder.get(".properties.addressPrefixes") if address_prefixes is not None: address_prefixes.set_elements(AAZStrType, ".") return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType() _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.address_prefixes = AAZListType( serialized_name="addressPrefixes", ) properties.description = AAZStrType() properties.number_of_ip_addresses_to_allocate = AAZStrType( serialized_name="numberOfIPAddressesToAllocate", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.total_number_of_ip_addresses = AAZStrType( serialized_name="totalNumberOfIPAddresses", flags={"read_only": True}, ) address_prefixes = cls._schema_on_200_201.properties.address_prefixes address_prefixes.Element = AAZStrType() system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200_201
class StaticCidrsCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
15
1
14
0
1
0
1
0
0
0
9
0
10
10
169
21
148
34
129
0
65
26
54
3
1
1
14
8,381
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/ipam_pool/_wait.py
azext_network_manager.aaz.latest.network.manager.ipam_pool._wait.Wait.IpamPoolsGet
class IpamPoolsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "poolName", self.ctx.args.pool_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-05-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.location = AAZStrType( flags={"required": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"required": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.tags = AAZDictType() _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.address_prefixes = AAZListType( serialized_name="addressPrefixes", flags={"required": True}, ) properties.description = AAZStrType() properties.display_name = AAZStrType( serialized_name="displayName", ) properties.ip_address_type = AAZListType( serialized_name="ipAddressType", flags={"read_only": True}, ) properties.parent_pool_name = AAZStrType( serialized_name="parentPoolName", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) address_prefixes = cls._schema_on_200.properties.address_prefixes address_prefixes.Element = AAZStrType() ip_address_type = cls._schema_on_200.properties.ip_address_type ip_address_type.Element = AAZStrType() system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) tags = cls._schema_on_200.tags tags.Element = AAZStrType() return cls._schema_on_200
class IpamPoolsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
15
1
14
0
1
0
1
0
0
0
8
0
9
9
157
19
138
31
121
0
60
24
50
2
1
1
11
8,382
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/ipam_pool/_update.py
azext_network_manager.aaz.latest.network.manager.ipam_pool._update.Update.IpamPoolsGet
class IpamPoolsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "poolName", self.ctx.args.pool_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-05-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _UpdateHelper._build_schema_ipam_pool_read(cls._schema_on_200) return cls._schema_on_200
class IpamPoolsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
7
0
7
0
1
0
1
1
1
0
8
0
9
9
86
13
73
25
56
0
33
18
23
2
1
1
11
8,383
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/ipam_pool/_update.py
azext_network_manager.aaz.latest.network.manager.ipam_pool._update.Update.IpamPoolsCreate
class IpamPoolsCreate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "networkManagerName", self.ctx.args.network_manager_name, required=True, ), **self.serialize_url_param( "poolName", self.ctx.args.pool_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-05-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _UpdateHelper._build_schema_ipam_pool_read(cls._schema_on_200_201) return cls._schema_on_200_201
class IpamPoolsCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
9
0
9
0
1
0
1
1
1
0
9
1
10
10
114
15
99
29
80
0
38
20
27
3
1
1
13
8,384
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/network-manager/azext_network_manager/aaz/latest/network/manager/ipam_pool/_update.py
azext_network_manager.aaz.latest.network.manager.ipam_pool._update.Update.InstanceUpdateByJson
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance(self.ctx.vars.instance) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( self.ctx.args, value=instance, typ=AAZObjectType ) _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) _builder.set_prop("tags", AAZDictType, ".tags") properties = _builder.get(".properties") if properties is not None: properties.set_prop("description", AAZStrType, ".description") properties.set_prop("displayName", AAZStrType, ".display_name") tags = _builder.get(".tags") if tags is not None: tags.set_elements(AAZStrType, ".") return _instance_value
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): pass def _update_instance(self, instance): pass
3
0
11
2
9
0
2
0
1
0
0
0
2
0
2
2
24
5
19
6
16
0
15
6
12
3
1
1
4
8,385
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.AzureFileVolume
class AzureFileVolume(CustomPersistentDiskProperties): """The properties of the Azure File volume. Azure File shares are mounted as volumes. All required parameters must be populated in order to send to server. :ivar type: The type of the underlying resource to mount as a persistent disk. Required. "AzureFileVolume" :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.Type :ivar mount_path: The mount path of the persistent disk. Required. :vartype mount_path: str :ivar read_only: Indicates whether the persistent disk is a readOnly one. :vartype read_only: bool :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every individual app instance. :vartype enable_sub_path: bool :ivar mount_options: These are the mount options for a persistent disk. :vartype mount_options: list[str] :ivar share_name: The share name of the Azure File share. :vartype share_name: str """ _validation = { "type": {"required": True}, "mount_path": {"required": True}, } _attribute_map = { "type": {"key": "type", "type": "str"}, "mount_path": {"key": "mountPath", "type": "str"}, "read_only": {"key": "readOnly", "type": "bool"}, "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, "mount_options": {"key": "mountOptions", "type": "[str]"}, "share_name": {"key": "shareName", "type": "str"}, } def __init__( self, *, mount_path: str, read_only: Optional[bool] = None, enable_sub_path: bool = False, mount_options: Optional[List[str]] = None, share_name: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword mount_path: The mount path of the persistent disk. Required. :paramtype mount_path: str :keyword read_only: Indicates whether the persistent disk is a readOnly one. :paramtype read_only: bool :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for every individual app instance. :paramtype enable_sub_path: bool :keyword mount_options: These are the mount options for a persistent disk. :paramtype mount_options: list[str] :keyword share_name: The share name of the Azure File share. :paramtype share_name: str """ super().__init__( mount_path=mount_path, read_only=read_only, enable_sub_path=enable_sub_path, mount_options=mount_options, **kwargs ) self.type: str = "AzureFileVolume" self.share_name = share_name
class AzureFileVolume(CustomPersistentDiskProperties): '''The properties of the Azure File volume. Azure File shares are mounted as volumes. All required parameters must be populated in order to send to server. :ivar type: The type of the underlying resource to mount as a persistent disk. Required. "AzureFileVolume" :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.Type :ivar mount_path: The mount path of the persistent disk. Required. :vartype mount_path: str :ivar read_only: Indicates whether the persistent disk is a readOnly one. :vartype read_only: bool :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every individual app instance. :vartype enable_sub_path: bool :ivar mount_options: These are the mount options for a persistent disk. :vartype mount_options: list[str] :ivar share_name: The share name of the Azure File share. :vartype share_name: str ''' def __init__( self, *, mount_path: str, read_only: Optional[bool] = None, enable_sub_path: bool = False, mount_options: Optional[List[str]] = None, share_name: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword mount_path: The mount path of the persistent disk. Required. :paramtype mount_path: str :keyword read_only: Indicates whether the persistent disk is a readOnly one. :paramtype read_only: bool :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for every individual app instance. :paramtype enable_sub_path: bool :keyword mount_options: These are the mount options for a persistent disk. :paramtype mount_options: list[str] :keyword share_name: The share name of the Azure File share. :paramtype share_name: str ''' pass
2
2
32
0
19
13
1
0.94
1
4
0
0
1
2
1
17
67
5
32
15
21
30
7
6
5
1
3
0
1
8,386
Azure/azure-cli-extensions
src/databox/azext_databox/aaz/latest/databox/job/_list_credential.py
azext_databox.aaz.latest.databox.job._list_credential._ListCredentialHelper
class _ListCredentialHelper: """Helper class for ListCredential""" _schema_account_credential_details_read = None @classmethod def _build_schema_account_credential_details_read(cls, _schema): if cls._schema_account_credential_details_read is not None: _schema.account_connection_string = cls._schema_account_credential_details_read.account_connection_string _schema.account_name = cls._schema_account_credential_details_read.account_name _schema.data_account_type = cls._schema_account_credential_details_read.data_account_type _schema.share_credential_details = cls._schema_account_credential_details_read.share_credential_details return cls._schema_account_credential_details_read = _schema_account_credential_details_read = AAZObjectType() account_credential_details_read = _schema_account_credential_details_read account_credential_details_read.account_connection_string = AAZStrType( serialized_name="accountConnectionString", flags={"read_only": True}, ) account_credential_details_read.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) account_credential_details_read.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) account_credential_details_read.share_credential_details = AAZListType( serialized_name="shareCredentialDetails", flags={"read_only": True}, ) share_credential_details = _schema_account_credential_details_read.share_credential_details share_credential_details.Element = AAZObjectType() _element = _schema_account_credential_details_read.share_credential_details.Element _element.password = AAZStrType( flags={"read_only": True}, ) _element.share_name = AAZStrType( serialized_name="shareName", flags={"read_only": True}, ) _element.share_type = AAZStrType( serialized_name="shareType", flags={"read_only": True}, ) _element.supported_access_protocols = AAZListType( serialized_name="supportedAccessProtocols", flags={"read_only": True}, ) _element.user_name = AAZStrType( serialized_name="userName", flags={"read_only": True}, ) supported_access_protocols = _schema_account_credential_details_read.share_credential_details.Element.supported_access_protocols supported_access_protocols.Element = AAZStrType() _schema.account_connection_string = cls._schema_account_credential_details_read.account_connection_string _schema.account_name = cls._schema_account_credential_details_read.account_name _schema.data_account_type = cls._schema_account_credential_details_read.data_account_type _schema.share_credential_details = cls._schema_account_credential_details_read.share_credential_details _schema_appliance_network_configuration_read = None @classmethod def _build_schema_appliance_network_configuration_read(cls, _schema): if cls._schema_appliance_network_configuration_read is not None: _schema.mac_address = cls._schema_appliance_network_configuration_read.mac_address _schema.name = cls._schema_appliance_network_configuration_read.name return cls._schema_appliance_network_configuration_read = _schema_appliance_network_configuration_read = AAZObjectType() appliance_network_configuration_read = _schema_appliance_network_configuration_read appliance_network_configuration_read.mac_address = AAZStrType( serialized_name="macAddress", flags={"read_only": True}, ) appliance_network_configuration_read.name = AAZStrType( flags={"read_only": True}, ) _schema.mac_address = cls._schema_appliance_network_configuration_read.mac_address _schema.name = cls._schema_appliance_network_configuration_read.name _schema_cloud_error_read = None @classmethod def _build_schema_cloud_error_read(cls, _schema): if cls._schema_cloud_error_read is not None: _schema.additional_info = cls._schema_cloud_error_read.additional_info _schema.code = cls._schema_cloud_error_read.code _schema.details = cls._schema_cloud_error_read.details _schema.message = cls._schema_cloud_error_read.message _schema.target = cls._schema_cloud_error_read.target return cls._schema_cloud_error_read = _schema_cloud_error_read = AAZObjectType() cloud_error_read = _schema_cloud_error_read cloud_error_read.additional_info = AAZListType( serialized_name="additionalInfo", flags={"read_only": True}, ) cloud_error_read.code = AAZStrType() cloud_error_read.details = AAZListType( flags={"read_only": True}, ) cloud_error_read.message = AAZStrType() cloud_error_read.target = AAZStrType() additional_info = _schema_cloud_error_read.additional_info additional_info.Element = AAZObjectType() _element = _schema_cloud_error_read.additional_info.Element _element.type = AAZStrType() details = _schema_cloud_error_read.details details.Element = AAZObjectType() cls._build_schema_cloud_error_read(details.Element) _schema.additional_info = cls._schema_cloud_error_read.additional_info _schema.code = cls._schema_cloud_error_read.code _schema.details = cls._schema_cloud_error_read.details _schema.message = cls._schema_cloud_error_read.message _schema.target = cls._schema_cloud_error_read.target _schema_disk_secret_read = None @classmethod def _build_schema_disk_secret_read(cls, _schema): if cls._schema_disk_secret_read is not None: _schema.bit_locker_key = cls._schema_disk_secret_read.bit_locker_key _schema.disk_serial_number = cls._schema_disk_secret_read.disk_serial_number return cls._schema_disk_secret_read = _schema_disk_secret_read = AAZObjectType() disk_secret_read = _schema_disk_secret_read disk_secret_read.bit_locker_key = AAZStrType( serialized_name="bitLockerKey", flags={"read_only": True}, ) disk_secret_read.disk_serial_number = AAZStrType( serialized_name="diskSerialNumber", flags={"read_only": True}, ) _schema.bit_locker_key = cls._schema_disk_secret_read.bit_locker_key _schema.disk_serial_number = cls._schema_disk_secret_read.disk_serial_number
class _ListCredentialHelper: '''Helper class for ListCredential''' @classmethod def _build_schema_account_credential_details_read(cls, _schema): pass @classmethod def _build_schema_appliance_network_configuration_read(cls, _schema): pass @classmethod def _build_schema_cloud_error_read(cls, _schema): pass @classmethod def _build_schema_disk_secret_read(cls, _schema): pass
9
1
34
5
30
0
2
0.01
0
0
0
0
0
0
4
4
154
26
127
27
118
1
81
19
76
2
0
1
8
8,387
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.AvailableRuntimeVersions
class AvailableRuntimeVersions(_serialization.Model): """AvailableRuntimeVersions. Variables are only populated by the server, and will be ignored when sending a request. :ivar value: A list of all supported runtime versions. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.SupportedRuntimeVersion] """ _validation = { "value": {"readonly": True}, } _attribute_map = { "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None
class AvailableRuntimeVersions(_serialization.Model): '''AvailableRuntimeVersions. Variables are only populated by the server, and will be ignored when sending a request. :ivar value: A list of all supported runtime versions. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.SupportedRuntimeVersion] ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
4
0
3
1
1
0.6
1
2
0
0
1
1
1
16
21
5
10
5
8
6
6
5
4
1
2
0
1
8,388
Azure/azure-cli-extensions
src/databox/azext_databox/aaz/latest/databox/job/_list_credential.py
azext_databox.aaz.latest.databox.job._list_credential.ListCredential
class ListCredential(AAZCommand): """This method gets the unencrypted secrets related to the job. :example: List credential az databox job list-credential -g rg -n job-name """ _aaz_info = { "version": "2022-12-01", "resources": [ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}/listcredentials", "2022-12-01"], ] } def _handler(self, command_args): super()._handler(command_args) self._execute_operations() return self._output() _args_schema = None @classmethod def _build_arguments_schema(cls, *args, **kwargs): if cls._args_schema is not None: return cls._args_schema cls._args_schema = super()._build_arguments_schema(*args, **kwargs) # define Arg Group "" _args_schema = cls._args_schema _args_schema.job_name = AAZStrArg( options=["-n", "--name", "--job-name"], help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", required=True, id_part="name", fmt=AAZStrArgFormat( pattern="^[-\w\.]+$", max_length=24, min_length=3, ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, ) return cls._args_schema def _execute_operations(self): self.pre_operations() self.JobsListCredentials(ctx=self.ctx)() self.post_operations() @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass def _output(self, *args, **kwargs): result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) return result class JobsListCredentials(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request(request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "jobName", self.ctx.args.job_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-12-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.job_name = AAZStrType( serialized_name="jobName", flags={"read_only": True}, ) _element.job_secrets = AAZObjectType( serialized_name="jobSecrets", ) job_secrets = cls._schema_on_200.value.Element.job_secrets job_secrets.dc_access_security_code = AAZObjectType( serialized_name="dcAccessSecurityCode", ) job_secrets.error = AAZObjectType() _ListCredentialHelper._build_schema_cloud_error_read(job_secrets.error) job_secrets.job_secrets_type = AAZStrType( serialized_name="jobSecretsType", flags={"required": True}, ) dc_access_security_code = cls._schema_on_200.value.Element.job_secrets.dc_access_security_code dc_access_security_code.forward_dc_access_code = AAZStrType( serialized_name="forwardDCAccessCode", ) dc_access_security_code.reverse_dc_access_code = AAZStrType( serialized_name="reverseDCAccessCode", ) disc_data_box = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBox") disc_data_box.pod_secrets = AAZListType( serialized_name="podSecrets", ) pod_secrets = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBox").pod_secrets pod_secrets.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBox").pod_secrets.Element _element.account_credential_details = AAZListType( serialized_name="accountCredentialDetails", flags={"read_only": True}, ) _element.device_password = AAZStrType( serialized_name="devicePassword", flags={"read_only": True}, ) _element.device_serial_number = AAZStrType( serialized_name="deviceSerialNumber", flags={"read_only": True}, ) _element.encoded_validation_cert_pub_key = AAZStrType( serialized_name="encodedValidationCertPubKey", flags={"read_only": True}, ) _element.network_configurations = AAZListType( serialized_name="networkConfigurations", flags={"read_only": True}, ) account_credential_details = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBox").pod_secrets.Element.account_credential_details account_credential_details.Element = AAZObjectType() _ListCredentialHelper._build_schema_account_credential_details_read(account_credential_details.Element) network_configurations = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBox").pod_secrets.Element.network_configurations network_configurations.Element = AAZObjectType() _ListCredentialHelper._build_schema_appliance_network_configuration_read(network_configurations.Element) disc_data_box_customer_disk = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxCustomerDisk") disc_data_box_customer_disk.carrier_account_number = AAZStrType( serialized_name="carrierAccountNumber", flags={"secret": True, "read_only": True}, ) disc_data_box_customer_disk.disk_secrets = AAZListType( serialized_name="diskSecrets", flags={"read_only": True}, ) disk_secrets = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxCustomerDisk").disk_secrets disk_secrets.Element = AAZObjectType() _ListCredentialHelper._build_schema_disk_secret_read(disk_secrets.Element) disc_data_box_disk = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxDisk") disc_data_box_disk.disk_secrets = AAZListType( serialized_name="diskSecrets", flags={"read_only": True}, ) disc_data_box_disk.is_passkey_user_defined = AAZBoolType( serialized_name="isPasskeyUserDefined", flags={"read_only": True}, ) disc_data_box_disk.pass_key = AAZStrType( serialized_name="passKey", flags={"read_only": True}, ) disk_secrets = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxDisk").disk_secrets disk_secrets.Element = AAZObjectType() _ListCredentialHelper._build_schema_disk_secret_read(disk_secrets.Element) disc_data_box_heavy = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxHeavy") disc_data_box_heavy.cabinet_pod_secrets = AAZListType( serialized_name="cabinetPodSecrets", flags={"read_only": True}, ) cabinet_pod_secrets = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxHeavy").cabinet_pod_secrets cabinet_pod_secrets.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxHeavy").cabinet_pod_secrets.Element _element.account_credential_details = AAZListType( serialized_name="accountCredentialDetails", flags={"read_only": True}, ) _element.device_password = AAZStrType( serialized_name="devicePassword", flags={"read_only": True}, ) _element.device_serial_number = AAZStrType( serialized_name="deviceSerialNumber", flags={"read_only": True}, ) _element.encoded_validation_cert_pub_key = AAZStrType( serialized_name="encodedValidationCertPubKey", flags={"read_only": True}, ) _element.network_configurations = AAZListType( serialized_name="networkConfigurations", flags={"read_only": True}, ) account_credential_details = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxHeavy").cabinet_pod_secrets.Element.account_credential_details account_credential_details.Element = AAZObjectType() _ListCredentialHelper._build_schema_account_credential_details_read(account_credential_details.Element) network_configurations = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxHeavy").cabinet_pod_secrets.Element.network_configurations network_configurations.Element = AAZObjectType() _ListCredentialHelper._build_schema_appliance_network_configuration_read(network_configurations.Element) return cls._schema_on_200
class ListCredential(AAZCommand): '''This method gets the unencrypted secrets related to the job. :example: List credential az databox job list-credential -g rg -n job-name ''' def _handler(self, command_args): pass @classmethod def _build_arguments_schema(cls, *args, **kwargs): pass def _execute_operations(self): pass @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass def _output(self, *args, **kwargs): pass class JobsListCredentials(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
27
1
16
2
15
0
1
0.02
1
2
1
0
5
0
6
6
290
44
241
53
214
5
119
43
102
2
1
1
18
8,389
Azure/azure-cli-extensions
src/databox/azext_databox/aaz/latest/databox/job/_list.py
azext_databox.aaz.latest.databox.job._list.List
class List(AAZCommand): """List all the jobs available under the subscription. :example: List job by resource group az databox job list -g rg """ _aaz_info = { "version": "2022-12-01", "resources": [ ["mgmt-plane", "/subscriptions/{}/providers/microsoft.databox/jobs", "2022-12-01"], ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs", "2022-12-01"], ] } def _handler(self, command_args): super()._handler(command_args) return self.build_paging(self._execute_operations, self._output) _args_schema = None @classmethod def _build_arguments_schema(cls, *args, **kwargs): if cls._args_schema is not None: return cls._args_schema cls._args_schema = super()._build_arguments_schema(*args, **kwargs) # define Arg Group "" _args_schema = cls._args_schema _args_schema.resource_group = AAZResourceGroupNameArg() return cls._args_schema def _execute_operations(self): self.pre_operations() condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True if condition_0: self.JobsListByResourceGroup(ctx=self.ctx)() if condition_1: self.JobsList(ctx=self.ctx)() self.post_operations() @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass def _output(self, *args, **kwargs): result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) next_link = self.deserialize_output(self.ctx.vars.instance.next_link) return result, next_link class JobsListByResourceGroup(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request(request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-12-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.identity = AAZObjectType() _element.location = AAZStrType( flags={"required": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"required": True, "client_flatten": True}, ) _element.sku = AAZObjectType( flags={"required": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", ) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, ) identity = cls._schema_on_200.value.Element.identity identity.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, ) identity.tenant_id = AAZStrType( serialized_name="tenantId", flags={"read_only": True}, ) identity.type = AAZStrType() identity.user_assigned_identities = AAZDictType( serialized_name="userAssignedIdentities", ) user_assigned_identities = cls._schema_on_200.value.Element.identity.user_assigned_identities user_assigned_identities.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.identity.user_assigned_identities.Element _element.client_id = AAZStrType( serialized_name="clientId", flags={"read_only": True}, ) _element.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.cancellation_reason = AAZStrType( serialized_name="cancellationReason", flags={"read_only": True}, ) properties.delivery_info = AAZObjectType( serialized_name="deliveryInfo", ) properties.delivery_type = AAZStrType( serialized_name="deliveryType", ) properties.details = AAZObjectType() properties.error = AAZObjectType() _ListHelper._build_schema_cloud_error_read(properties.error) properties.is_cancellable = AAZBoolType( serialized_name="isCancellable", flags={"read_only": True}, ) properties.is_cancellable_without_fee = AAZBoolType( serialized_name="isCancellableWithoutFee", flags={"read_only": True}, ) properties.is_deletable = AAZBoolType( serialized_name="isDeletable", flags={"read_only": True}, ) properties.is_prepare_to_ship_enabled = AAZBoolType( serialized_name="isPrepareToShipEnabled", flags={"read_only": True}, ) properties.is_shipping_address_editable = AAZBoolType( serialized_name="isShippingAddressEditable", flags={"read_only": True}, ) properties.reverse_shipping_details_update = AAZStrType( serialized_name="reverseShippingDetailsUpdate", flags={"read_only": True}, ) properties.reverse_transport_preference_update = AAZStrType( serialized_name="reverseTransportPreferenceUpdate", flags={"read_only": True}, ) properties.start_time = AAZStrType( serialized_name="startTime", flags={"read_only": True}, ) properties.status = AAZStrType( flags={"read_only": True}, ) properties.transfer_type = AAZStrType( serialized_name="transferType", flags={"required": True}, ) delivery_info = cls._schema_on_200.value.Element.properties.delivery_info delivery_info.scheduled_date_time = AAZStrType( serialized_name="scheduledDateTime", ) details = cls._schema_on_200.value.Element.properties.details details.actions = AAZListType( flags={"read_only": True}, ) details.chain_of_custody_sas_key = AAZStrType( serialized_name="chainOfCustodySasKey", flags={"read_only": True}, ) details.contact_details = AAZObjectType( serialized_name="contactDetails", flags={"required": True}, ) details.copy_log_details = AAZListType( serialized_name="copyLogDetails", flags={"read_only": True}, ) details.data_center_code = AAZStrType( serialized_name="dataCenterCode", flags={"read_only": True}, ) details.data_export_details = AAZListType( serialized_name="dataExportDetails", ) details.data_import_details = AAZListType( serialized_name="dataImportDetails", ) details.datacenter_address = AAZObjectType( serialized_name="datacenterAddress", ) details.delivery_package = AAZObjectType( serialized_name="deliveryPackage", ) _ListHelper._build_schema_package_shipping_details_read(details.delivery_package) details.device_erasure_details = AAZObjectType( serialized_name="deviceErasureDetails", ) details.expected_data_size_in_tera_bytes = AAZIntType( serialized_name="expectedDataSizeInTeraBytes", ) details.job_details_type = AAZStrType( serialized_name="jobDetailsType", flags={"required": True}, ) details.job_stages = AAZListType( serialized_name="jobStages", flags={"read_only": True}, ) details.key_encryption_key = AAZObjectType( serialized_name="keyEncryptionKey", ) details.last_mitigation_action_on_job = AAZObjectType( serialized_name="lastMitigationActionOnJob", ) details.preferences = AAZObjectType() details.return_package = AAZObjectType( serialized_name="returnPackage", ) _ListHelper._build_schema_package_shipping_details_read(details.return_package) details.reverse_shipment_label_sas_key = AAZStrType( serialized_name="reverseShipmentLabelSasKey", flags={"read_only": True}, ) details.reverse_shipping_details = AAZObjectType( serialized_name="reverseShippingDetails", ) details.shipping_address = AAZObjectType( serialized_name="shippingAddress", ) _ListHelper._build_schema_shipping_address_read(details.shipping_address) actions = cls._schema_on_200.value.Element.properties.details.actions actions.Element = AAZStrType() contact_details = cls._schema_on_200.value.Element.properties.details.contact_details contact_details.contact_name = AAZStrType( serialized_name="contactName", flags={"required": True}, ) contact_details.email_list = AAZListType( serialized_name="emailList", flags={"required": True}, ) contact_details.mobile = AAZStrType() contact_details.notification_preference = AAZListType( serialized_name="notificationPreference", ) contact_details.phone = AAZStrType( flags={"required": True}, ) contact_details.phone_extension = AAZStrType( serialized_name="phoneExtension", ) email_list = cls._schema_on_200.value.Element.properties.details.contact_details.email_list email_list.Element = AAZStrType() notification_preference = cls._schema_on_200.value.Element.properties.details.contact_details.notification_preference notification_preference.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.contact_details.notification_preference.Element _element.send_notification = AAZBoolType( serialized_name="sendNotification", flags={"required": True}, ) _element.stage_name = AAZStrType( serialized_name="stageName", flags={"required": True}, ) copy_log_details = cls._schema_on_200.value.Element.properties.details.copy_log_details copy_log_details.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element _element.copy_log_details_type = AAZStrType( serialized_name="copyLogDetailsType", flags={"required": True}, ) disc_data_box = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBox") disc_data_box.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) disc_data_box.copy_log_link = AAZStrType( serialized_name="copyLogLink", flags={"read_only": True}, ) disc_data_box.copy_verbose_log_link = AAZStrType( serialized_name="copyVerboseLogLink", flags={"read_only": True}, ) disc_data_box_customer_disk = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxCustomerDisk") disc_data_box_customer_disk.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) disc_data_box_customer_disk.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) disc_data_box_customer_disk.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) disc_data_box_disk = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxDisk") disc_data_box_disk.disk_serial_number = AAZStrType( serialized_name="diskSerialNumber", flags={"read_only": True}, ) disc_data_box_disk.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) disc_data_box_disk.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) disc_data_box_heavy = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy") disc_data_box_heavy.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) disc_data_box_heavy.copy_log_link = AAZListType( serialized_name="copyLogLink", flags={"read_only": True}, ) disc_data_box_heavy.copy_verbose_log_link = AAZListType( serialized_name="copyVerboseLogLink", flags={"read_only": True}, ) copy_log_link = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_log_link copy_log_link.Element = AAZStrType() copy_verbose_log_link = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_verbose_log_link copy_verbose_log_link.Element = AAZStrType() data_export_details = cls._schema_on_200.value.Element.properties.details.data_export_details data_export_details.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.data_export_details.Element _element.account_details = AAZObjectType( serialized_name="accountDetails", flags={"required": True}, ) _ListHelper._build_schema_data_account_details_read(_element.account_details) _element.log_collection_level = AAZStrType( serialized_name="logCollectionLevel", ) _element.transfer_configuration = AAZObjectType( serialized_name="transferConfiguration", flags={"required": True}, ) transfer_configuration = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration transfer_configuration.transfer_all_details = AAZObjectType( serialized_name="transferAllDetails", ) transfer_configuration.transfer_configuration_type = AAZStrType( serialized_name="transferConfigurationType", flags={"required": True}, ) transfer_configuration.transfer_filter_details = AAZObjectType( serialized_name="transferFilterDetails", ) transfer_all_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details transfer_all_details.include = AAZObjectType() include = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details.include include.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"required": True}, ) include.transfer_all_blobs = AAZBoolType( serialized_name="transferAllBlobs", ) include.transfer_all_files = AAZBoolType( serialized_name="transferAllFiles", ) transfer_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details transfer_filter_details.include = AAZObjectType() include = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include include.azure_file_filter_details = AAZObjectType( serialized_name="azureFileFilterDetails", ) include.blob_filter_details = AAZObjectType( serialized_name="blobFilterDetails", ) include.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"required": True}, ) include.filter_file_details = AAZListType( serialized_name="filterFileDetails", ) azure_file_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details azure_file_filter_details.file_path_list = AAZListType( serialized_name="filePathList", ) azure_file_filter_details.file_prefix_list = AAZListType( serialized_name="filePrefixList", ) azure_file_filter_details.file_share_list = AAZListType( serialized_name="fileShareList", ) file_path_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_path_list file_path_list.Element = AAZStrType() file_prefix_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_prefix_list file_prefix_list.Element = AAZStrType() file_share_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_share_list file_share_list.Element = AAZStrType() blob_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details blob_filter_details.blob_path_list = AAZListType( serialized_name="blobPathList", ) blob_filter_details.blob_prefix_list = AAZListType( serialized_name="blobPrefixList", ) blob_filter_details.container_list = AAZListType( serialized_name="containerList", ) blob_path_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_path_list blob_path_list.Element = AAZStrType() blob_prefix_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_prefix_list blob_prefix_list.Element = AAZStrType() container_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.container_list container_list.Element = AAZStrType() filter_file_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details filter_file_details.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details.Element _element.filter_file_path = AAZStrType( serialized_name="filterFilePath", flags={"required": True}, ) _element.filter_file_type = AAZStrType( serialized_name="filterFileType", flags={"required": True}, ) data_import_details = cls._schema_on_200.value.Element.properties.details.data_import_details data_import_details.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.data_import_details.Element _element.account_details = AAZObjectType( serialized_name="accountDetails", flags={"required": True}, ) _ListHelper._build_schema_data_account_details_read(_element.account_details) _element.log_collection_level = AAZStrType( serialized_name="logCollectionLevel", ) datacenter_address = cls._schema_on_200.value.Element.properties.details.datacenter_address datacenter_address.data_center_azure_location = AAZStrType( serialized_name="dataCenterAzureLocation", flags={"read_only": True}, ) datacenter_address.datacenter_address_type = AAZStrType( serialized_name="datacenterAddressType", flags={"required": True}, ) datacenter_address.supported_carriers_for_return_shipment = AAZListType( serialized_name="supportedCarriersForReturnShipment", flags={"read_only": True}, ) supported_carriers_for_return_shipment = cls._schema_on_200.value.Element.properties.details.datacenter_address.supported_carriers_for_return_shipment supported_carriers_for_return_shipment.Element = AAZStrType() disc_datacenter_address_instruction = cls._schema_on_200.value.Element.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressInstruction") disc_datacenter_address_instruction.communication_instruction = AAZStrType( serialized_name="communicationInstruction", flags={"read_only": True}, ) disc_datacenter_address_location = cls._schema_on_200.value.Element.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressLocation") disc_datacenter_address_location.additional_shipping_information = AAZStrType( serialized_name="additionalShippingInformation", flags={"read_only": True}, ) disc_datacenter_address_location.address_type = AAZStrType( serialized_name="addressType", flags={"read_only": True}, ) disc_datacenter_address_location.city = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.company = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.contact_person_name = AAZStrType( serialized_name="contactPersonName", flags={"read_only": True}, ) disc_datacenter_address_location.country = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.phone = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.phone_extension = AAZStrType( serialized_name="phoneExtension", flags={"read_only": True}, ) disc_datacenter_address_location.state = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street1 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street2 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street3 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.zip = AAZStrType( flags={"read_only": True}, ) device_erasure_details = cls._schema_on_200.value.Element.properties.details.device_erasure_details device_erasure_details.device_erasure_status = AAZStrType( serialized_name="deviceErasureStatus", flags={"read_only": True}, ) device_erasure_details.erasure_or_destruction_certificate_sas_key = AAZStrType( serialized_name="erasureOrDestructionCertificateSasKey", flags={"read_only": True}, ) job_stages = cls._schema_on_200.value.Element.properties.details.job_stages job_stages.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.job_stages.Element _element.display_name = AAZStrType( serialized_name="displayName", flags={"read_only": True}, ) _element.stage_name = AAZStrType( serialized_name="stageName", flags={"read_only": True}, ) _element.stage_status = AAZStrType( serialized_name="stageStatus", flags={"read_only": True}, ) _element.stage_time = AAZStrType( serialized_name="stageTime", flags={"read_only": True}, ) key_encryption_key = cls._schema_on_200.value.Element.properties.details.key_encryption_key key_encryption_key.identity_properties = AAZObjectType( serialized_name="identityProperties", ) key_encryption_key.kek_type = AAZStrType( serialized_name="kekType", flags={"required": True}, ) key_encryption_key.kek_url = AAZStrType( serialized_name="kekUrl", ) key_encryption_key.kek_vault_resource_id = AAZStrType( serialized_name="kekVaultResourceID", ) identity_properties = cls._schema_on_200.value.Element.properties.details.key_encryption_key.identity_properties identity_properties.type = AAZStrType() identity_properties.user_assigned = AAZObjectType( serialized_name="userAssigned", ) user_assigned = cls._schema_on_200.value.Element.properties.details.key_encryption_key.identity_properties.user_assigned user_assigned.resource_id = AAZStrType( serialized_name="resourceId", ) last_mitigation_action_on_job = cls._schema_on_200.value.Element.properties.details.last_mitigation_action_on_job last_mitigation_action_on_job.action_date_time_in_utc = AAZStrType( serialized_name="actionDateTimeInUtc", ) last_mitigation_action_on_job.customer_resolution = AAZStrType( serialized_name="customerResolution", ) last_mitigation_action_on_job.is_performed_by_customer = AAZBoolType( serialized_name="isPerformedByCustomer", ) preferences = cls._schema_on_200.value.Element.properties.details.preferences preferences.encryption_preferences = AAZObjectType( serialized_name="encryptionPreferences", ) preferences.preferred_data_center_region = AAZListType( serialized_name="preferredDataCenterRegion", ) preferences.reverse_transport_preferences = AAZObjectType( serialized_name="reverseTransportPreferences", ) _ListHelper._build_schema_transport_preferences_read(preferences.reverse_transport_preferences) preferences.storage_account_access_tier_preferences = AAZListType( serialized_name="storageAccountAccessTierPreferences", ) preferences.transport_preferences = AAZObjectType( serialized_name="transportPreferences", ) _ListHelper._build_schema_transport_preferences_read(preferences.transport_preferences) encryption_preferences = cls._schema_on_200.value.Element.properties.details.preferences.encryption_preferences encryption_preferences.double_encryption = AAZStrType( serialized_name="doubleEncryption", ) encryption_preferences.hardware_encryption = AAZStrType( serialized_name="hardwareEncryption", ) preferred_data_center_region = cls._schema_on_200.value.Element.properties.details.preferences.preferred_data_center_region preferred_data_center_region.Element = AAZStrType() storage_account_access_tier_preferences = cls._schema_on_200.value.Element.properties.details.preferences.storage_account_access_tier_preferences storage_account_access_tier_preferences.Element = AAZStrType() reverse_shipping_details = cls._schema_on_200.value.Element.properties.details.reverse_shipping_details reverse_shipping_details.contact_details = AAZObjectType( serialized_name="contactDetails", ) reverse_shipping_details.is_updated = AAZBoolType( serialized_name="isUpdated", flags={"read_only": True}, ) reverse_shipping_details.shipping_address = AAZObjectType( serialized_name="shippingAddress", ) _ListHelper._build_schema_shipping_address_read(reverse_shipping_details.shipping_address) contact_details = cls._schema_on_200.value.Element.properties.details.reverse_shipping_details.contact_details contact_details.contact_name = AAZStrType( serialized_name="contactName", flags={"required": True}, ) contact_details.mobile = AAZStrType() contact_details.phone = AAZStrType( flags={"required": True}, ) contact_details.phone_extension = AAZStrType( serialized_name="phoneExtension", ) disc_data_box = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBox") disc_data_box.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box.device_password = AAZStrType( serialized_name="devicePassword", ) copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBox").copy_progress copy_progress.Element = AAZObjectType() _ListHelper._build_schema_copy_progress_read(copy_progress.Element) disc_data_box_customer_disk = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk") disc_data_box_customer_disk.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_customer_disk.deliver_to_dc_package_details = AAZObjectType( serialized_name="deliverToDcPackageDetails", ) disc_data_box_customer_disk.enable_manifest_backup = AAZBoolType( serialized_name="enableManifestBackup", ) disc_data_box_customer_disk.export_disk_details_collection = AAZDictType( serialized_name="exportDiskDetailsCollection", flags={"read_only": True}, ) disc_data_box_customer_disk.import_disk_details_collection = AAZDictType( serialized_name="importDiskDetailsCollection", ) disc_data_box_customer_disk.return_to_customer_package_details = AAZObjectType( serialized_name="returnToCustomerPackageDetails", flags={"required": True}, ) copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_processed = AAZIntType( serialized_name="bytesProcessed", flags={"read_only": True}, ) _element.copy_status = AAZStrType( serialized_name="copyStatus", flags={"read_only": True}, ) _element.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) _element.directories_errored_out = AAZIntType( serialized_name="directoriesErroredOut", flags={"read_only": True}, ) _element.error = AAZObjectType() _ListHelper._build_schema_cloud_error_read(_element.error) _element.files_errored_out = AAZIntType( serialized_name="filesErroredOut", flags={"read_only": True}, ) _element.files_processed = AAZIntType( serialized_name="filesProcessed", flags={"read_only": True}, ) _element.invalid_directories_processed = AAZIntType( serialized_name="invalidDirectoriesProcessed", flags={"read_only": True}, ) _element.invalid_file_bytes_uploaded = AAZIntType( serialized_name="invalidFileBytesUploaded", flags={"read_only": True}, ) _element.invalid_files_processed = AAZIntType( serialized_name="invalidFilesProcessed", flags={"read_only": True}, ) _element.is_enumeration_in_progress = AAZBoolType( serialized_name="isEnumerationInProgress", flags={"read_only": True}, ) _element.renamed_container_count = AAZIntType( serialized_name="renamedContainerCount", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.storage_account_name = AAZStrType( serialized_name="storageAccountName", flags={"read_only": True}, ) _element.total_bytes_to_process = AAZIntType( serialized_name="totalBytesToProcess", flags={"read_only": True}, ) _element.total_files_to_process = AAZIntType( serialized_name="totalFilesToProcess", flags={"read_only": True}, ) _element.transfer_type = AAZStrType( serialized_name="transferType", flags={"read_only": True}, ) actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element.actions actions.Element = AAZStrType() deliver_to_dc_package_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").deliver_to_dc_package_details deliver_to_dc_package_details.carrier_name = AAZStrType( serialized_name="carrierName", ) deliver_to_dc_package_details.tracking_id = AAZStrType( serialized_name="trackingId", ) export_disk_details_collection = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection export_disk_details_collection.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection.Element _element.backup_manifest_cloud_path = AAZStrType( serialized_name="backupManifestCloudPath", flags={"read_only": True}, ) _element.manifest_file = AAZStrType( serialized_name="manifestFile", flags={"read_only": True}, ) _element.manifest_hash = AAZStrType( serialized_name="manifestHash", flags={"read_only": True}, ) import_disk_details_collection = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection import_disk_details_collection.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection.Element _element.backup_manifest_cloud_path = AAZStrType( serialized_name="backupManifestCloudPath", flags={"read_only": True}, ) _element.bit_locker_key = AAZStrType( serialized_name="bitLockerKey", flags={"required": True, "secret": True}, ) _element.manifest_file = AAZStrType( serialized_name="manifestFile", flags={"required": True}, ) _element.manifest_hash = AAZStrType( serialized_name="manifestHash", flags={"required": True}, ) return_to_customer_package_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").return_to_customer_package_details return_to_customer_package_details.carrier_account_number = AAZStrType( serialized_name="carrierAccountNumber", flags={"secret": True}, ) return_to_customer_package_details.carrier_name = AAZStrType( serialized_name="carrierName", ) return_to_customer_package_details.tracking_id = AAZStrType( serialized_name="trackingId", ) disc_data_box_disk = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk") disc_data_box_disk.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_disk.disks_and_size_details = AAZDictType( serialized_name="disksAndSizeDetails", flags={"read_only": True}, ) disc_data_box_disk.granular_copy_log_details = AAZListType( serialized_name="granularCopyLogDetails", flags={"read_only": True}, ) disc_data_box_disk.granular_copy_progress = AAZListType( serialized_name="granularCopyProgress", flags={"read_only": True}, ) disc_data_box_disk.passkey = AAZStrType() disc_data_box_disk.preferred_disks = AAZDictType( serialized_name="preferredDisks", ) copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_copied = AAZIntType( serialized_name="bytesCopied", flags={"read_only": True}, ) _element.error = AAZObjectType() _ListHelper._build_schema_cloud_error_read(_element.error) _element.percent_complete = AAZIntType( serialized_name="percentComplete", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.status = AAZStrType( flags={"read_only": True}, ) actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element.actions actions.Element = AAZStrType() disks_and_size_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").disks_and_size_details disks_and_size_details.Element = AAZIntType() granular_copy_log_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details granular_copy_log_details.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.copy_log_details_type = AAZStrType( serialized_name="copyLogDetailsType", flags={"required": True}, ) _element.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) granular_copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress granular_copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_processed = AAZIntType( serialized_name="bytesProcessed", flags={"read_only": True}, ) _element.copy_status = AAZStrType( serialized_name="copyStatus", flags={"read_only": True}, ) _element.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) _element.directories_errored_out = AAZIntType( serialized_name="directoriesErroredOut", flags={"read_only": True}, ) _element.error = AAZObjectType() _ListHelper._build_schema_cloud_error_read(_element.error) _element.files_errored_out = AAZIntType( serialized_name="filesErroredOut", flags={"read_only": True}, ) _element.files_processed = AAZIntType( serialized_name="filesProcessed", flags={"read_only": True}, ) _element.invalid_directories_processed = AAZIntType( serialized_name="invalidDirectoriesProcessed", flags={"read_only": True}, ) _element.invalid_file_bytes_uploaded = AAZIntType( serialized_name="invalidFileBytesUploaded", flags={"read_only": True}, ) _element.invalid_files_processed = AAZIntType( serialized_name="invalidFilesProcessed", flags={"read_only": True}, ) _element.is_enumeration_in_progress = AAZBoolType( serialized_name="isEnumerationInProgress", flags={"read_only": True}, ) _element.renamed_container_count = AAZIntType( serialized_name="renamedContainerCount", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.storage_account_name = AAZStrType( serialized_name="storageAccountName", flags={"read_only": True}, ) _element.total_bytes_to_process = AAZIntType( serialized_name="totalBytesToProcess", flags={"read_only": True}, ) _element.total_files_to_process = AAZIntType( serialized_name="totalFilesToProcess", flags={"read_only": True}, ) _element.transfer_type = AAZStrType( serialized_name="transferType", flags={"read_only": True}, ) actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element.actions actions.Element = AAZStrType() preferred_disks = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").preferred_disks preferred_disks.Element = AAZIntType() disc_data_box_heavy = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxHeavy") disc_data_box_heavy.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_heavy.device_password = AAZStrType( serialized_name="devicePassword", ) copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxHeavy").copy_progress copy_progress.Element = AAZObjectType() _ListHelper._build_schema_copy_progress_read(copy_progress.Element) sku = cls._schema_on_200.value.Element.sku sku.display_name = AAZStrType( serialized_name="displayName", ) sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) tags = cls._schema_on_200.value.Element.tags tags.Element = AAZStrType() return cls._schema_on_200 class JobsList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request(request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-12-01", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.identity = AAZObjectType() _element.location = AAZStrType( flags={"required": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"required": True, "client_flatten": True}, ) _element.sku = AAZObjectType( flags={"required": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", ) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, ) identity = cls._schema_on_200.value.Element.identity identity.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, ) identity.tenant_id = AAZStrType( serialized_name="tenantId", flags={"read_only": True}, ) identity.type = AAZStrType() identity.user_assigned_identities = AAZDictType( serialized_name="userAssignedIdentities", ) user_assigned_identities = cls._schema_on_200.value.Element.identity.user_assigned_identities user_assigned_identities.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.identity.user_assigned_identities.Element _element.client_id = AAZStrType( serialized_name="clientId", flags={"read_only": True}, ) _element.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.cancellation_reason = AAZStrType( serialized_name="cancellationReason", flags={"read_only": True}, ) properties.delivery_info = AAZObjectType( serialized_name="deliveryInfo", ) properties.delivery_type = AAZStrType( serialized_name="deliveryType", ) properties.details = AAZObjectType() properties.error = AAZObjectType() _ListHelper._build_schema_cloud_error_read(properties.error) properties.is_cancellable = AAZBoolType( serialized_name="isCancellable", flags={"read_only": True}, ) properties.is_cancellable_without_fee = AAZBoolType( serialized_name="isCancellableWithoutFee", flags={"read_only": True}, ) properties.is_deletable = AAZBoolType( serialized_name="isDeletable", flags={"read_only": True}, ) properties.is_prepare_to_ship_enabled = AAZBoolType( serialized_name="isPrepareToShipEnabled", flags={"read_only": True}, ) properties.is_shipping_address_editable = AAZBoolType( serialized_name="isShippingAddressEditable", flags={"read_only": True}, ) properties.reverse_shipping_details_update = AAZStrType( serialized_name="reverseShippingDetailsUpdate", flags={"read_only": True}, ) properties.reverse_transport_preference_update = AAZStrType( serialized_name="reverseTransportPreferenceUpdate", flags={"read_only": True}, ) properties.start_time = AAZStrType( serialized_name="startTime", flags={"read_only": True}, ) properties.status = AAZStrType( flags={"read_only": True}, ) properties.transfer_type = AAZStrType( serialized_name="transferType", flags={"required": True}, ) delivery_info = cls._schema_on_200.value.Element.properties.delivery_info delivery_info.scheduled_date_time = AAZStrType( serialized_name="scheduledDateTime", ) details = cls._schema_on_200.value.Element.properties.details details.actions = AAZListType( flags={"read_only": True}, ) details.chain_of_custody_sas_key = AAZStrType( serialized_name="chainOfCustodySasKey", flags={"read_only": True}, ) details.contact_details = AAZObjectType( serialized_name="contactDetails", flags={"required": True}, ) details.copy_log_details = AAZListType( serialized_name="copyLogDetails", flags={"read_only": True}, ) details.data_center_code = AAZStrType( serialized_name="dataCenterCode", flags={"read_only": True}, ) details.data_export_details = AAZListType( serialized_name="dataExportDetails", ) details.data_import_details = AAZListType( serialized_name="dataImportDetails", ) details.datacenter_address = AAZObjectType( serialized_name="datacenterAddress", ) details.delivery_package = AAZObjectType( serialized_name="deliveryPackage", ) _ListHelper._build_schema_package_shipping_details_read(details.delivery_package) details.device_erasure_details = AAZObjectType( serialized_name="deviceErasureDetails", ) details.expected_data_size_in_tera_bytes = AAZIntType( serialized_name="expectedDataSizeInTeraBytes", ) details.job_details_type = AAZStrType( serialized_name="jobDetailsType", flags={"required": True}, ) details.job_stages = AAZListType( serialized_name="jobStages", flags={"read_only": True}, ) details.key_encryption_key = AAZObjectType( serialized_name="keyEncryptionKey", ) details.last_mitigation_action_on_job = AAZObjectType( serialized_name="lastMitigationActionOnJob", ) details.preferences = AAZObjectType() details.return_package = AAZObjectType( serialized_name="returnPackage", ) _ListHelper._build_schema_package_shipping_details_read(details.return_package) details.reverse_shipment_label_sas_key = AAZStrType( serialized_name="reverseShipmentLabelSasKey", flags={"read_only": True}, ) details.reverse_shipping_details = AAZObjectType( serialized_name="reverseShippingDetails", ) details.shipping_address = AAZObjectType( serialized_name="shippingAddress", ) _ListHelper._build_schema_shipping_address_read(details.shipping_address) actions = cls._schema_on_200.value.Element.properties.details.actions actions.Element = AAZStrType() contact_details = cls._schema_on_200.value.Element.properties.details.contact_details contact_details.contact_name = AAZStrType( serialized_name="contactName", flags={"required": True}, ) contact_details.email_list = AAZListType( serialized_name="emailList", flags={"required": True}, ) contact_details.mobile = AAZStrType() contact_details.notification_preference = AAZListType( serialized_name="notificationPreference", ) contact_details.phone = AAZStrType( flags={"required": True}, ) contact_details.phone_extension = AAZStrType( serialized_name="phoneExtension", ) email_list = cls._schema_on_200.value.Element.properties.details.contact_details.email_list email_list.Element = AAZStrType() notification_preference = cls._schema_on_200.value.Element.properties.details.contact_details.notification_preference notification_preference.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.contact_details.notification_preference.Element _element.send_notification = AAZBoolType( serialized_name="sendNotification", flags={"required": True}, ) _element.stage_name = AAZStrType( serialized_name="stageName", flags={"required": True}, ) copy_log_details = cls._schema_on_200.value.Element.properties.details.copy_log_details copy_log_details.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element _element.copy_log_details_type = AAZStrType( serialized_name="copyLogDetailsType", flags={"required": True}, ) disc_data_box = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBox") disc_data_box.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) disc_data_box.copy_log_link = AAZStrType( serialized_name="copyLogLink", flags={"read_only": True}, ) disc_data_box.copy_verbose_log_link = AAZStrType( serialized_name="copyVerboseLogLink", flags={"read_only": True}, ) disc_data_box_customer_disk = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxCustomerDisk") disc_data_box_customer_disk.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) disc_data_box_customer_disk.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) disc_data_box_customer_disk.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) disc_data_box_disk = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxDisk") disc_data_box_disk.disk_serial_number = AAZStrType( serialized_name="diskSerialNumber", flags={"read_only": True}, ) disc_data_box_disk.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) disc_data_box_disk.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) disc_data_box_heavy = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy") disc_data_box_heavy.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) disc_data_box_heavy.copy_log_link = AAZListType( serialized_name="copyLogLink", flags={"read_only": True}, ) disc_data_box_heavy.copy_verbose_log_link = AAZListType( serialized_name="copyVerboseLogLink", flags={"read_only": True}, ) copy_log_link = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_log_link copy_log_link.Element = AAZStrType() copy_verbose_log_link = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_verbose_log_link copy_verbose_log_link.Element = AAZStrType() data_export_details = cls._schema_on_200.value.Element.properties.details.data_export_details data_export_details.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.data_export_details.Element _element.account_details = AAZObjectType( serialized_name="accountDetails", flags={"required": True}, ) _ListHelper._build_schema_data_account_details_read(_element.account_details) _element.log_collection_level = AAZStrType( serialized_name="logCollectionLevel", ) _element.transfer_configuration = AAZObjectType( serialized_name="transferConfiguration", flags={"required": True}, ) transfer_configuration = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration transfer_configuration.transfer_all_details = AAZObjectType( serialized_name="transferAllDetails", ) transfer_configuration.transfer_configuration_type = AAZStrType( serialized_name="transferConfigurationType", flags={"required": True}, ) transfer_configuration.transfer_filter_details = AAZObjectType( serialized_name="transferFilterDetails", ) transfer_all_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details transfer_all_details.include = AAZObjectType() include = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details.include include.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"required": True}, ) include.transfer_all_blobs = AAZBoolType( serialized_name="transferAllBlobs", ) include.transfer_all_files = AAZBoolType( serialized_name="transferAllFiles", ) transfer_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details transfer_filter_details.include = AAZObjectType() include = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include include.azure_file_filter_details = AAZObjectType( serialized_name="azureFileFilterDetails", ) include.blob_filter_details = AAZObjectType( serialized_name="blobFilterDetails", ) include.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"required": True}, ) include.filter_file_details = AAZListType( serialized_name="filterFileDetails", ) azure_file_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details azure_file_filter_details.file_path_list = AAZListType( serialized_name="filePathList", ) azure_file_filter_details.file_prefix_list = AAZListType( serialized_name="filePrefixList", ) azure_file_filter_details.file_share_list = AAZListType( serialized_name="fileShareList", ) file_path_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_path_list file_path_list.Element = AAZStrType() file_prefix_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_prefix_list file_prefix_list.Element = AAZStrType() file_share_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_share_list file_share_list.Element = AAZStrType() blob_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details blob_filter_details.blob_path_list = AAZListType( serialized_name="blobPathList", ) blob_filter_details.blob_prefix_list = AAZListType( serialized_name="blobPrefixList", ) blob_filter_details.container_list = AAZListType( serialized_name="containerList", ) blob_path_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_path_list blob_path_list.Element = AAZStrType() blob_prefix_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_prefix_list blob_prefix_list.Element = AAZStrType() container_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.container_list container_list.Element = AAZStrType() filter_file_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details filter_file_details.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details.Element _element.filter_file_path = AAZStrType( serialized_name="filterFilePath", flags={"required": True}, ) _element.filter_file_type = AAZStrType( serialized_name="filterFileType", flags={"required": True}, ) data_import_details = cls._schema_on_200.value.Element.properties.details.data_import_details data_import_details.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.data_import_details.Element _element.account_details = AAZObjectType( serialized_name="accountDetails", flags={"required": True}, ) _ListHelper._build_schema_data_account_details_read(_element.account_details) _element.log_collection_level = AAZStrType( serialized_name="logCollectionLevel", ) datacenter_address = cls._schema_on_200.value.Element.properties.details.datacenter_address datacenter_address.data_center_azure_location = AAZStrType( serialized_name="dataCenterAzureLocation", flags={"read_only": True}, ) datacenter_address.datacenter_address_type = AAZStrType( serialized_name="datacenterAddressType", flags={"required": True}, ) datacenter_address.supported_carriers_for_return_shipment = AAZListType( serialized_name="supportedCarriersForReturnShipment", flags={"read_only": True}, ) supported_carriers_for_return_shipment = cls._schema_on_200.value.Element.properties.details.datacenter_address.supported_carriers_for_return_shipment supported_carriers_for_return_shipment.Element = AAZStrType() disc_datacenter_address_instruction = cls._schema_on_200.value.Element.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressInstruction") disc_datacenter_address_instruction.communication_instruction = AAZStrType( serialized_name="communicationInstruction", flags={"read_only": True}, ) disc_datacenter_address_location = cls._schema_on_200.value.Element.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressLocation") disc_datacenter_address_location.additional_shipping_information = AAZStrType( serialized_name="additionalShippingInformation", flags={"read_only": True}, ) disc_datacenter_address_location.address_type = AAZStrType( serialized_name="addressType", flags={"read_only": True}, ) disc_datacenter_address_location.city = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.company = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.contact_person_name = AAZStrType( serialized_name="contactPersonName", flags={"read_only": True}, ) disc_datacenter_address_location.country = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.phone = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.phone_extension = AAZStrType( serialized_name="phoneExtension", flags={"read_only": True}, ) disc_datacenter_address_location.state = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street1 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street2 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.street3 = AAZStrType( flags={"read_only": True}, ) disc_datacenter_address_location.zip = AAZStrType( flags={"read_only": True}, ) device_erasure_details = cls._schema_on_200.value.Element.properties.details.device_erasure_details device_erasure_details.device_erasure_status = AAZStrType( serialized_name="deviceErasureStatus", flags={"read_only": True}, ) device_erasure_details.erasure_or_destruction_certificate_sas_key = AAZStrType( serialized_name="erasureOrDestructionCertificateSasKey", flags={"read_only": True}, ) job_stages = cls._schema_on_200.value.Element.properties.details.job_stages job_stages.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.job_stages.Element _element.display_name = AAZStrType( serialized_name="displayName", flags={"read_only": True}, ) _element.stage_name = AAZStrType( serialized_name="stageName", flags={"read_only": True}, ) _element.stage_status = AAZStrType( serialized_name="stageStatus", flags={"read_only": True}, ) _element.stage_time = AAZStrType( serialized_name="stageTime", flags={"read_only": True}, ) key_encryption_key = cls._schema_on_200.value.Element.properties.details.key_encryption_key key_encryption_key.identity_properties = AAZObjectType( serialized_name="identityProperties", ) key_encryption_key.kek_type = AAZStrType( serialized_name="kekType", flags={"required": True}, ) key_encryption_key.kek_url = AAZStrType( serialized_name="kekUrl", ) key_encryption_key.kek_vault_resource_id = AAZStrType( serialized_name="kekVaultResourceID", ) identity_properties = cls._schema_on_200.value.Element.properties.details.key_encryption_key.identity_properties identity_properties.type = AAZStrType() identity_properties.user_assigned = AAZObjectType( serialized_name="userAssigned", ) user_assigned = cls._schema_on_200.value.Element.properties.details.key_encryption_key.identity_properties.user_assigned user_assigned.resource_id = AAZStrType( serialized_name="resourceId", ) last_mitigation_action_on_job = cls._schema_on_200.value.Element.properties.details.last_mitigation_action_on_job last_mitigation_action_on_job.action_date_time_in_utc = AAZStrType( serialized_name="actionDateTimeInUtc", ) last_mitigation_action_on_job.customer_resolution = AAZStrType( serialized_name="customerResolution", ) last_mitigation_action_on_job.is_performed_by_customer = AAZBoolType( serialized_name="isPerformedByCustomer", ) preferences = cls._schema_on_200.value.Element.properties.details.preferences preferences.encryption_preferences = AAZObjectType( serialized_name="encryptionPreferences", ) preferences.preferred_data_center_region = AAZListType( serialized_name="preferredDataCenterRegion", ) preferences.reverse_transport_preferences = AAZObjectType( serialized_name="reverseTransportPreferences", ) _ListHelper._build_schema_transport_preferences_read(preferences.reverse_transport_preferences) preferences.storage_account_access_tier_preferences = AAZListType( serialized_name="storageAccountAccessTierPreferences", ) preferences.transport_preferences = AAZObjectType( serialized_name="transportPreferences", ) _ListHelper._build_schema_transport_preferences_read(preferences.transport_preferences) encryption_preferences = cls._schema_on_200.value.Element.properties.details.preferences.encryption_preferences encryption_preferences.double_encryption = AAZStrType( serialized_name="doubleEncryption", ) encryption_preferences.hardware_encryption = AAZStrType( serialized_name="hardwareEncryption", ) preferred_data_center_region = cls._schema_on_200.value.Element.properties.details.preferences.preferred_data_center_region preferred_data_center_region.Element = AAZStrType() storage_account_access_tier_preferences = cls._schema_on_200.value.Element.properties.details.preferences.storage_account_access_tier_preferences storage_account_access_tier_preferences.Element = AAZStrType() reverse_shipping_details = cls._schema_on_200.value.Element.properties.details.reverse_shipping_details reverse_shipping_details.contact_details = AAZObjectType( serialized_name="contactDetails", ) reverse_shipping_details.is_updated = AAZBoolType( serialized_name="isUpdated", flags={"read_only": True}, ) reverse_shipping_details.shipping_address = AAZObjectType( serialized_name="shippingAddress", ) _ListHelper._build_schema_shipping_address_read(reverse_shipping_details.shipping_address) contact_details = cls._schema_on_200.value.Element.properties.details.reverse_shipping_details.contact_details contact_details.contact_name = AAZStrType( serialized_name="contactName", flags={"required": True}, ) contact_details.mobile = AAZStrType() contact_details.phone = AAZStrType( flags={"required": True}, ) contact_details.phone_extension = AAZStrType( serialized_name="phoneExtension", ) disc_data_box = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBox") disc_data_box.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box.device_password = AAZStrType( serialized_name="devicePassword", ) copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBox").copy_progress copy_progress.Element = AAZObjectType() _ListHelper._build_schema_copy_progress_read(copy_progress.Element) disc_data_box_customer_disk = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk") disc_data_box_customer_disk.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_customer_disk.deliver_to_dc_package_details = AAZObjectType( serialized_name="deliverToDcPackageDetails", ) disc_data_box_customer_disk.enable_manifest_backup = AAZBoolType( serialized_name="enableManifestBackup", ) disc_data_box_customer_disk.export_disk_details_collection = AAZDictType( serialized_name="exportDiskDetailsCollection", flags={"read_only": True}, ) disc_data_box_customer_disk.import_disk_details_collection = AAZDictType( serialized_name="importDiskDetailsCollection", ) disc_data_box_customer_disk.return_to_customer_package_details = AAZObjectType( serialized_name="returnToCustomerPackageDetails", flags={"required": True}, ) copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_processed = AAZIntType( serialized_name="bytesProcessed", flags={"read_only": True}, ) _element.copy_status = AAZStrType( serialized_name="copyStatus", flags={"read_only": True}, ) _element.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) _element.directories_errored_out = AAZIntType( serialized_name="directoriesErroredOut", flags={"read_only": True}, ) _element.error = AAZObjectType() _ListHelper._build_schema_cloud_error_read(_element.error) _element.files_errored_out = AAZIntType( serialized_name="filesErroredOut", flags={"read_only": True}, ) _element.files_processed = AAZIntType( serialized_name="filesProcessed", flags={"read_only": True}, ) _element.invalid_directories_processed = AAZIntType( serialized_name="invalidDirectoriesProcessed", flags={"read_only": True}, ) _element.invalid_file_bytes_uploaded = AAZIntType( serialized_name="invalidFileBytesUploaded", flags={"read_only": True}, ) _element.invalid_files_processed = AAZIntType( serialized_name="invalidFilesProcessed", flags={"read_only": True}, ) _element.is_enumeration_in_progress = AAZBoolType( serialized_name="isEnumerationInProgress", flags={"read_only": True}, ) _element.renamed_container_count = AAZIntType( serialized_name="renamedContainerCount", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.storage_account_name = AAZStrType( serialized_name="storageAccountName", flags={"read_only": True}, ) _element.total_bytes_to_process = AAZIntType( serialized_name="totalBytesToProcess", flags={"read_only": True}, ) _element.total_files_to_process = AAZIntType( serialized_name="totalFilesToProcess", flags={"read_only": True}, ) _element.transfer_type = AAZStrType( serialized_name="transferType", flags={"read_only": True}, ) actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element.actions actions.Element = AAZStrType() deliver_to_dc_package_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").deliver_to_dc_package_details deliver_to_dc_package_details.carrier_name = AAZStrType( serialized_name="carrierName", ) deliver_to_dc_package_details.tracking_id = AAZStrType( serialized_name="trackingId", ) export_disk_details_collection = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection export_disk_details_collection.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection.Element _element.backup_manifest_cloud_path = AAZStrType( serialized_name="backupManifestCloudPath", flags={"read_only": True}, ) _element.manifest_file = AAZStrType( serialized_name="manifestFile", flags={"read_only": True}, ) _element.manifest_hash = AAZStrType( serialized_name="manifestHash", flags={"read_only": True}, ) import_disk_details_collection = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection import_disk_details_collection.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection.Element _element.backup_manifest_cloud_path = AAZStrType( serialized_name="backupManifestCloudPath", flags={"read_only": True}, ) _element.bit_locker_key = AAZStrType( serialized_name="bitLockerKey", flags={"required": True, "secret": True}, ) _element.manifest_file = AAZStrType( serialized_name="manifestFile", flags={"required": True}, ) _element.manifest_hash = AAZStrType( serialized_name="manifestHash", flags={"required": True}, ) return_to_customer_package_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").return_to_customer_package_details return_to_customer_package_details.carrier_account_number = AAZStrType( serialized_name="carrierAccountNumber", flags={"secret": True}, ) return_to_customer_package_details.carrier_name = AAZStrType( serialized_name="carrierName", ) return_to_customer_package_details.tracking_id = AAZStrType( serialized_name="trackingId", ) disc_data_box_disk = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk") disc_data_box_disk.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_disk.disks_and_size_details = AAZDictType( serialized_name="disksAndSizeDetails", flags={"read_only": True}, ) disc_data_box_disk.granular_copy_log_details = AAZListType( serialized_name="granularCopyLogDetails", flags={"read_only": True}, ) disc_data_box_disk.granular_copy_progress = AAZListType( serialized_name="granularCopyProgress", flags={"read_only": True}, ) disc_data_box_disk.passkey = AAZStrType() disc_data_box_disk.preferred_disks = AAZDictType( serialized_name="preferredDisks", ) copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_copied = AAZIntType( serialized_name="bytesCopied", flags={"read_only": True}, ) _element.error = AAZObjectType() _ListHelper._build_schema_cloud_error_read(_element.error) _element.percent_complete = AAZIntType( serialized_name="percentComplete", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.status = AAZStrType( flags={"read_only": True}, ) actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element.actions actions.Element = AAZStrType() disks_and_size_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").disks_and_size_details disks_and_size_details.Element = AAZIntType() granular_copy_log_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details granular_copy_log_details.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.copy_log_details_type = AAZStrType( serialized_name="copyLogDetailsType", flags={"required": True}, ) _element.error_log_link = AAZStrType( serialized_name="errorLogLink", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.verbose_log_link = AAZStrType( serialized_name="verboseLogLink", flags={"read_only": True}, ) granular_copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress granular_copy_progress.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element _element.account_id = AAZStrType( serialized_name="accountId", flags={"read_only": True}, ) _element.actions = AAZListType( flags={"read_only": True}, ) _element.bytes_processed = AAZIntType( serialized_name="bytesProcessed", flags={"read_only": True}, ) _element.copy_status = AAZStrType( serialized_name="copyStatus", flags={"read_only": True}, ) _element.data_account_type = AAZStrType( serialized_name="dataAccountType", flags={"read_only": True}, ) _element.directories_errored_out = AAZIntType( serialized_name="directoriesErroredOut", flags={"read_only": True}, ) _element.error = AAZObjectType() _ListHelper._build_schema_cloud_error_read(_element.error) _element.files_errored_out = AAZIntType( serialized_name="filesErroredOut", flags={"read_only": True}, ) _element.files_processed = AAZIntType( serialized_name="filesProcessed", flags={"read_only": True}, ) _element.invalid_directories_processed = AAZIntType( serialized_name="invalidDirectoriesProcessed", flags={"read_only": True}, ) _element.invalid_file_bytes_uploaded = AAZIntType( serialized_name="invalidFileBytesUploaded", flags={"read_only": True}, ) _element.invalid_files_processed = AAZIntType( serialized_name="invalidFilesProcessed", flags={"read_only": True}, ) _element.is_enumeration_in_progress = AAZBoolType( serialized_name="isEnumerationInProgress", flags={"read_only": True}, ) _element.renamed_container_count = AAZIntType( serialized_name="renamedContainerCount", flags={"read_only": True}, ) _element.serial_number = AAZStrType( serialized_name="serialNumber", flags={"read_only": True}, ) _element.storage_account_name = AAZStrType( serialized_name="storageAccountName", flags={"read_only": True}, ) _element.total_bytes_to_process = AAZIntType( serialized_name="totalBytesToProcess", flags={"read_only": True}, ) _element.total_files_to_process = AAZIntType( serialized_name="totalFilesToProcess", flags={"read_only": True}, ) _element.transfer_type = AAZStrType( serialized_name="transferType", flags={"read_only": True}, ) actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element.actions actions.Element = AAZStrType() preferred_disks = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").preferred_disks preferred_disks.Element = AAZIntType() disc_data_box_heavy = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxHeavy") disc_data_box_heavy.copy_progress = AAZListType( serialized_name="copyProgress", flags={"read_only": True}, ) disc_data_box_heavy.device_password = AAZStrType( serialized_name="devicePassword", ) copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxHeavy").copy_progress copy_progress.Element = AAZObjectType() _ListHelper._build_schema_copy_progress_read(copy_progress.Element) sku = cls._schema_on_200.value.Element.sku sku.display_name = AAZStrType( serialized_name="displayName", ) sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) tags = cls._schema_on_200.value.Element.tags tags.Element = AAZStrType() return cls._schema_on_200
class List(AAZCommand): '''List all the jobs available under the subscription. :example: List job by resource group az databox job list -g rg ''' def _handler(self, command_args): pass @classmethod def _build_arguments_schema(cls, *args, **kwargs): pass def _execute_operations(self): pass @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass def _output(self, *args, **kwargs): pass class JobsListByResourceGroup(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass class JobsListByResourceGroup(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
44
1
90
8
83
0
1
0
1
3
2
0
5
0
6
6
2,229
211
2,013
189
1,969
5
828
172
801
3
1
1
31
8,390
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/models/_models_py3.py
azext_custom_providers.vendored_sdks.customproviders.models._models_py3.ErrorResponse
class ErrorResponse(msrest.serialization.Model): """Error response. :param error: The error details. :type error: ~azure.mgmt.customproviders.models.ErrorDefinition """ _attribute_map = { 'error': {'key': 'error', 'type': 'ErrorDefinition'}, } def __init__( self, *, error: Optional["ErrorDefinition"] = None, **kwargs ): super(ErrorResponse, self).__init__(**kwargs) self.error = error
class ErrorResponse(msrest.serialization.Model): '''Error response. :param error: The error details. :type error: ~azure.mgmt.customproviders.models.ErrorDefinition ''' def __init__( self, *, error: Optional["ErrorDefinition"] = None, **kwargs ): pass
2
1
8
0
8
0
1
0.33
1
1
0
0
1
1
1
1
19
3
12
9
5
4
5
4
3
1
1
0
1
8,391
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/models/_models_py3.py
azext_custom_providers.vendored_sdks.customproviders.models._models_py3.ListByCustomRPManifest
class ListByCustomRPManifest(msrest.serialization.Model): """List of custom resource providers. :param value: The array of custom resource provider manifests. :type value: list[~azure.mgmt.customproviders.models.CustomRPManifest] :param next_link: The URL to use for getting the next set of results. :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[CustomRPManifest]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, value: Optional[List["CustomRPManifest"]] = None, next_link: Optional[str] = None, **kwargs ): super(ListByCustomRPManifest, self).__init__(**kwargs) self.value = value self.next_link = next_link
class ListByCustomRPManifest(msrest.serialization.Model): '''List of custom resource providers. :param value: The array of custom resource provider manifests. :type value: list[~azure.mgmt.customproviders.models.CustomRPManifest] :param next_link: The URL to use for getting the next set of results. :type next_link: str ''' def __init__( self, *, value: Optional[List["CustomRPManifest"]] = None, next_link: Optional[str] = None, **kwargs ): pass
2
1
10
0
10
0
1
0.4
1
2
0
0
1
2
1
1
24
3
15
11
7
6
6
5
4
1
1
0
1
8,392
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/models/_models_py3.py
azext_custom_providers.vendored_sdks.customproviders.models._models_py3.Resource
class Resource(msrest.serialization.Model): """The resource definition. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar id: Resource Id. :vartype id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, } def __init__( self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs ): super(Resource, self).__init__(**kwargs) self.id = None self.name = None self.type = None self.location = location self.tags = tags
class Resource(msrest.serialization.Model): '''The resource definition. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar id: Resource Id. :vartype id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] ''' def __init__( self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs ): pass
2
1
13
0
13
0
1
0.52
1
2
0
1
1
5
1
1
47
6
27
15
19
14
10
9
8
1
1
0
1
8,393
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/models/_models_py3.py
azext_custom_providers.vendored_sdks.customproviders.models._models_py3.ResourceProviderOperation
class ResourceProviderOperation(msrest.serialization.Model): """Supported operations of this resource provider. :param name: Operation name, in format of {provider}/{resource}/{operation}. :type name: str :param display: Display metadata associated with the operation. :type display: ~azure.mgmt.customproviders.models.ResourceProviderOperationDisplay """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'ResourceProviderOperationDisplay'}, } def __init__( self, *, name: Optional[str] = None, display: Optional["ResourceProviderOperationDisplay"] = None, **kwargs ): super(ResourceProviderOperation, self).__init__(**kwargs) self.name = name self.display = display
class ResourceProviderOperation(msrest.serialization.Model): '''Supported operations of this resource provider. :param name: Operation name, in format of {provider}/{resource}/{operation}. :type name: str :param display: Display metadata associated with the operation. :type display: ~azure.mgmt.customproviders.models.ResourceProviderOperationDisplay ''' def __init__( self, *, name: Optional[str] = None, display: Optional["ResourceProviderOperationDisplay"] = None, **kwargs ): pass
2
1
10
0
10
0
1
0.4
1
2
0
0
1
2
1
1
24
3
15
11
7
6
6
5
4
1
1
0
1
8,394
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/models/_models_py3.py
azext_custom_providers.vendored_sdks.customproviders.models._models_py3.ResourceProviderOperationDisplay
class ResourceProviderOperationDisplay(msrest.serialization.Model): """Display metadata associated with the operation. :param provider: Resource provider: Microsoft Custom Providers. :type provider: str :param resource: Resource on which the operation is performed. :type resource: str :param operation: Type of operation: get, read, delete, etc. :type operation: str :param description: Description of this operation. :type description: str """ _attribute_map = { 'provider': {'key': 'provider', 'type': 'str'}, 'resource': {'key': 'resource', 'type': 'str'}, 'operation': {'key': 'operation', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, } def __init__( self, *, provider: Optional[str] = None, resource: Optional[str] = None, operation: Optional[str] = None, description: Optional[str] = None, **kwargs ): super(ResourceProviderOperationDisplay, self).__init__(**kwargs) self.provider = provider self.resource = resource self.operation = operation self.description = description
class ResourceProviderOperationDisplay(msrest.serialization.Model): '''Display metadata associated with the operation. :param provider: Resource provider: Microsoft Custom Providers. :type provider: str :param resource: Resource on which the operation is performed. :type resource: str :param operation: Type of operation: get, read, delete, etc. :type operation: str :param description: Description of this operation. :type description: str ''' def __init__( self, *, provider: Optional[str] = None, resource: Optional[str] = None, operation: Optional[str] = None, description: Optional[str] = None, **kwargs ): pass
2
1
14
0
14
0
1
0.48
1
2
0
0
1
4
1
1
34
3
21
15
11
10
8
7
6
1
1
0
1
8,395
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/models/_models_py3.py
azext_custom_providers.vendored_sdks.customproviders.models._models_py3.ResourceProviderOperationList
class ResourceProviderOperationList(msrest.serialization.Model): """Results of the request to list operations. :param value: List of operations supported by this resource provider. :type value: list[~azure.mgmt.customproviders.models.ResourceProviderOperation] :param next_link: The URL to use for getting the next set of results. :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[ResourceProviderOperation]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, value: Optional[List["ResourceProviderOperation"]] = None, next_link: Optional[str] = None, **kwargs ): super(ResourceProviderOperationList, self).__init__(**kwargs) self.value = value self.next_link = next_link
class ResourceProviderOperationList(msrest.serialization.Model): '''Results of the request to list operations. :param value: List of operations supported by this resource provider. :type value: list[~azure.mgmt.customproviders.models.ResourceProviderOperation] :param next_link: The URL to use for getting the next set of results. :type next_link: str ''' def __init__( self, *, value: Optional[List["ResourceProviderOperation"]] = None, next_link: Optional[str] = None, **kwargs ): pass
2
1
10
0
10
0
1
0.4
1
2
0
0
1
2
1
1
24
3
15
11
7
6
6
5
4
1
1
0
1
8,396
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/models/_models_py3.py
azext_custom_providers.vendored_sdks.customproviders.models._models_py3.ResourceProvidersUpdate
class ResourceProvidersUpdate(msrest.serialization.Model): """custom resource provider update information. :param tags: A set of tags. Resource tags. :type tags: dict[str, str] """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, } def __init__( self, *, tags: Optional[Dict[str, str]] = None, **kwargs ): super(ResourceProvidersUpdate, self).__init__(**kwargs) self.tags = tags
class ResourceProvidersUpdate(msrest.serialization.Model): '''custom resource provider update information. :param tags: A set of tags. Resource tags. :type tags: dict[str, str] ''' def __init__( self, *, tags: Optional[Dict[str, str]] = None, **kwargs ): pass
2
1
8
0
8
0
1
0.33
1
2
0
0
1
1
1
1
19
3
12
9
5
4
5
4
3
1
1
0
1
8,397
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/operations/_associations_operations.py
azext_custom_providers.vendored_sdks.customproviders.operations._associations_operations.AssociationsOperations
class AssociationsOperations(object): """AssociationsOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.customproviders.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ models = _models def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config def _create_or_update_initial( self, scope, # type: str association_name, # type: str association, # type: "_models.Association" **kwargs # type: Any ): # type: (...) -> "_models.Association" cls = kwargs.pop('cls', None) # type: ClsType["_models.Association"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'associationName': self._serialize.url("association_name", association_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(association, 'Association') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize('Association', pipeline_response) if response.status_code == 201: deserialized = self._deserialize('Association', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _create_or_update_initial.metadata = {'url': '/{scope}/providers/Microsoft.CustomProviders/associations/{associationName}'} # type: ignore def begin_create_or_update( self, scope, # type: str association_name, # type: str association, # type: "_models.Association" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Association"] """Create or update an association. :param scope: The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group- name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource. :type scope: str :param association_name: The name of the association. :type association_name: str :param association: The parameters required to create or update an association. :type association: ~azure.mgmt.customproviders.models.Association :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the ARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Association or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.customproviders.models.Association] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Association"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = self._create_or_update_initial( scope=scope, association_name=association_name, association=association, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('Association', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'associationName': self._serialize.url("association_name", association_name, 'str'), } if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: return LROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_create_or_update.metadata = {'url': '/{scope}/providers/Microsoft.CustomProviders/associations/{associationName}'} # type: ignore def _delete_initial( self, scope, # type: str association_name, # type: str **kwargs # type: Any ): # type: (...) -> None cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'associationName': self._serialize.url("association_name", association_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) _delete_initial.metadata = {'url': '/{scope}/providers/Microsoft.CustomProviders/associations/{associationName}'} # type: ignore def begin_delete( self, scope, # type: str association_name, # type: str **kwargs # type: Any ): # type: (...) -> LROPoller[None] """Delete an association. :param scope: The scope of the association. :type scope: str :param association_name: The name of the association. :type association_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the ARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = self._delete_initial( scope=scope, association_name=association_name, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'associationName': self._serialize.url("association_name", association_name, 'str'), } if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: return LROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete.metadata = {'url': '/{scope}/providers/Microsoft.CustomProviders/associations/{associationName}'} # type: ignore def get( self, scope, # type: str association_name, # type: str **kwargs # type: Any ): # type: (...) -> "_models.Association" """Get an association. :param scope: The scope of the association. :type scope: str :param association_name: The name of the association. :type association_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Association, or the result of cls(response) :rtype: ~azure.mgmt.customproviders.models.Association :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Association"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'associationName': self._serialize.url("association_name", association_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Association', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/{scope}/providers/Microsoft.CustomProviders/associations/{associationName}'} # type: ignore def list_all( self, scope, # type: str **kwargs # type: Any ): # type: (...) -> Iterable["_models.AssociationsList"] """Gets all association for the given scope. :param scope: The scope of the association. :type scope: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either AssociationsList or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.customproviders.models.AssociationsList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.AssociationsList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list_all.metadata['url'] # type: ignore path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): deserialized = self._deserialize('AssociationsList', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return ItemPaged( get_next, extract_data ) list_all.metadata = {'url': '/{scope}/providers/Microsoft.CustomProviders/associations'}
class AssociationsOperations(object): '''AssociationsOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.customproviders.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. ''' def __init__(self, client, config, serializer, deserializer): pass def _create_or_update_initial( self, scope, # type: str association_name, # type: str association, # type: "_models.Association" **kwargs # type: Any ): pass def begin_create_or_update( self, scope, # type: str association_name, # type: str association, # type: "_models.Association" **kwargs # type: Any ): '''Create or update an association. :param scope: The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group- name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource. :type scope: str :param association_name: The name of the association. :type association_name: str :param association: The parameters required to create or update an association. :type association: ~azure.mgmt.customproviders.models.Association :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the ARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Association or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.customproviders.models.Association] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _delete_initial( self, scope, # type: str association_name, # type: str **kwargs # type: Any ): pass def begin_delete( self, scope, # type: str association_name, # type: str **kwargs # type: Any ): '''Delete an association. :param scope: The scope of the association. :type scope: str :param association_name: The name of the association. :type association_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the ARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def get_long_running_output(pipeline_response): '''Get an association. :param scope: The scope of the association. :type scope: str :param association_name: The name of the association. :type association_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Association, or the result of cls(response) :rtype: ~azure.mgmt.customproviders.models.Association :raises: ~azure.core.exceptions.HttpResponseError ''' pass def list_all( self, scope, # type: str **kwargs # type: Any ): '''Gets all association for the given scope. :param scope: The scope of the association. :type scope: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either AssociationsList or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.customproviders.models.AssociationsList] :raises: ~azure.core.exceptions.HttpResponseError ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass
13
5
34
4
24
10
3
0.51
1
0
0
0
7
4
7
7
391
56
255
120
211
129
169
89
156
5
1
1
33
8,398
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/operations/_custom_resource_provider_operations.py
azext_custom_providers.vendored_sdks.customproviders.operations._custom_resource_provider_operations.CustomResourceProviderOperations
class CustomResourceProviderOperations(object): """CustomResourceProviderOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.customproviders.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ models = _models def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config def _create_or_update_initial( self, resource_group_name, # type: str resource_provider_name, # type: str resource_provider, # type: "_models.CustomRPManifest" **kwargs # type: Any ): # type: (...) -> "_models.CustomRPManifest" cls = kwargs.pop('cls', None) # type: ClsType["_models.CustomRPManifest"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceProviderName': self._serialize.url("resource_provider_name", resource_provider_name, 'str', max_length=64, min_length=3), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(resource_provider, 'CustomRPManifest') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize('CustomRPManifest', pipeline_response) if response.status_code == 201: deserialized = self._deserialize('CustomRPManifest', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}'} # type: ignore def begin_create_or_update( self, resource_group_name, # type: str resource_provider_name, # type: str resource_provider, # type: "_models.CustomRPManifest" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.CustomRPManifest"] """Creates or updates the custom resource provider. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_name: The name of the resource provider. :type resource_provider_name: str :param resource_provider: The parameters required to create or update a custom resource provider definition. :type resource_provider: ~azure.mgmt.customproviders.models.CustomRPManifest :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the ARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either CustomRPManifest or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.customproviders.models.CustomRPManifest] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.CustomRPManifest"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, resource_provider_name=resource_provider_name, resource_provider=resource_provider, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('CustomRPManifest', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceProviderName': self._serialize.url("resource_provider_name", resource_provider_name, 'str', max_length=64, min_length=3), } if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: return LROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}'} # type: ignore def _delete_initial( self, resource_group_name, # type: str resource_provider_name, # type: str **kwargs # type: Any ): # type: (...) -> None cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceProviderName': self._serialize.url("resource_provider_name", resource_provider_name, 'str', max_length=64, min_length=3), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}'} # type: ignore def begin_delete( self, resource_group_name, # type: str resource_provider_name, # type: str **kwargs # type: Any ): # type: (...) -> LROPoller[None] """Deletes the custom resource provider. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_name: The name of the resource provider. :type resource_provider_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the ARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = self._delete_initial( resource_group_name=resource_group_name, resource_provider_name=resource_provider_name, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceProviderName': self._serialize.url("resource_provider_name", resource_provider_name, 'str', max_length=64, min_length=3), } if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: return LROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}'} # type: ignore def get( self, resource_group_name, # type: str resource_provider_name, # type: str **kwargs # type: Any ): # type: (...) -> "_models.CustomRPManifest" """Gets the custom resource provider manifest. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_name: The name of the resource provider. :type resource_provider_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CustomRPManifest, or the result of cls(response) :rtype: ~azure.mgmt.customproviders.models.CustomRPManifest :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.CustomRPManifest"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceProviderName': self._serialize.url("resource_provider_name", resource_provider_name, 'str', max_length=64, min_length=3), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CustomRPManifest', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}'} # type: ignore def update( self, resource_group_name, # type: str resource_provider_name, # type: str patchable_resource, # type: "_models.ResourceProvidersUpdate" **kwargs # type: Any ): # type: (...) -> "_models.CustomRPManifest" """Updates an existing custom resource provider. The only value that can be updated via PATCH currently is the tags. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_name: The name of the resource provider. :type resource_provider_name: str :param patchable_resource: The updatable fields of a custom resource provider. :type patchable_resource: ~azure.mgmt.customproviders.models.ResourceProvidersUpdate :keyword callable cls: A custom type or function that will be passed the direct response :return: CustomRPManifest, or the result of cls(response) :rtype: ~azure.mgmt.customproviders.models.CustomRPManifest :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.CustomRPManifest"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL url = self.update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceProviderName': self._serialize.url("resource_provider_name", resource_provider_name, 'str', max_length=64, min_length=3), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(patchable_resource, 'ResourceProvidersUpdate') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CustomRPManifest', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}'} # type: ignore def list_by_resource_group( self, resource_group_name, # type: str **kwargs # type: Any ): # type: (...) -> Iterable["_models.ListByCustomRPManifest"] """Gets all the custom resource providers within a resource group. :param resource_group_name: The name of the resource group. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListByCustomRPManifest or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.customproviders.models.ListByCustomRPManifest] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ListByCustomRPManifest"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): deserialized = self._deserialize('ListByCustomRPManifest', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return ItemPaged( get_next, extract_data ) list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders'} # type: ignore def list_by_subscription( self, **kwargs # type: Any ): # type: (...) -> Iterable["_models.ListByCustomRPManifest"] """Gets all the custom resource providers within a subscription. :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListByCustomRPManifest or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.customproviders.models.ListByCustomRPManifest] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ListByCustomRPManifest"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list_by_subscription.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): deserialized = self._deserialize('ListByCustomRPManifest', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return ItemPaged( get_next, extract_data ) list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.CustomProviders/resourceProviders'}
class CustomResourceProviderOperations(object): '''CustomResourceProviderOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.customproviders.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. ''' def __init__(self, client, config, serializer, deserializer): pass def _create_or_update_initial( self, resource_group_name, # type: str resource_provider_name, # type: str resource_provider, # type: "_models.CustomRPManifest" **kwargs # type: Any ): pass def begin_create_or_update( self, resource_group_name, # type: str resource_provider_name, # type: str resource_provider, # type: "_models.CustomRPManifest" **kwargs # type: Any ): '''Creates or updates the custom resource provider. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_name: The name of the resource provider. :type resource_provider_name: str :param resource_provider: The parameters required to create or update a custom resource provider definition. :type resource_provider: ~azure.mgmt.customproviders.models.CustomRPManifest :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the ARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either CustomRPManifest or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.customproviders.models.CustomRPManifest] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _delete_initial( self, resource_group_name, # type: str resource_provider_name, # type: str **kwargs # type: Any ): pass def begin_delete( self, resource_group_name, # type: str resource_provider_name, # type: str **kwargs # type: Any ): '''Deletes the custom resource provider. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_name: The name of the resource provider. :type resource_provider_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the ARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def get_long_running_output(pipeline_response): '''Gets the custom resource provider manifest. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_name: The name of the resource provider. :type resource_provider_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CustomRPManifest, or the result of cls(response) :rtype: ~azure.mgmt.customproviders.models.CustomRPManifest :raises: ~azure.core.exceptions.HttpResponseError ''' pass def update( self, resource_group_name, # type: str resource_provider_name, # type: str patchable_resource, # type: "_models.ResourceProvidersUpdate" **kwargs # type: Any ): '''Updates an existing custom resource provider. The only value that can be updated via PATCH currently is the tags. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_name: The name of the resource provider. :type resource_provider_name: str :param patchable_resource: The updatable fields of a custom resource provider. :type patchable_resource: ~azure.mgmt.customproviders.models.ResourceProvidersUpdate :keyword callable cls: A custom type or function that will be passed the direct response :return: CustomRPManifest, or the result of cls(response) :rtype: ~azure.mgmt.customproviders.models.CustomRPManifest :raises: ~azure.core.exceptions.HttpResponseError ''' pass def list_by_resource_group( self, resource_group_name, # type: str **kwargs # type: Any ): '''Gets all the custom resource providers within a resource group. :param resource_group_name: The name of the resource group. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListByCustomRPManifest or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.customproviders.models.ListByCustomRPManifest] :raises: ~azure.core.exceptions.HttpResponseError ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass def list_by_subscription( self, **kwargs # type: Any ): '''Gets all the custom resource providers within a subscription. :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListByCustomRPManifest or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.customproviders.models.ListByCustomRPManifest] :raises: ~azure.core.exceptions.HttpResponseError ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass
18
7
35
4
24
10
3
0.49
1
0
0
0
9
4
9
9
533
77
350
165
292
172
236
125
218
5
1
1
43
8,399
Azure/azure-cli-extensions
src/custom-providers/azext_custom_providers/vendored_sdks/customproviders/operations/_operations.py
azext_custom_providers.vendored_sdks.customproviders.operations._operations.Operations
class Operations(object): """Operations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.customproviders.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ models = _models def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config def list( self, **kwargs # type: Any ): # type: (...) -> Iterable["_models.ResourceProviderOperationList"] """The list of operations provided by Microsoft CustomProviders. :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ResourceProviderOperationList or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.customproviders.models.ResourceProviderOperationList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourceProviderOperationList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2018-09-01-preview" accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): deserialized = self._deserialize('ResourceProviderOperationList', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return ItemPaged( get_next, extract_data ) list.metadata = {'url': '/providers/Microsoft.CustomProviders/operations'}
class Operations(object): '''Operations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.customproviders.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. ''' def __init__(self, client, config, serializer, deserializer): pass def list( self, **kwargs # type: Any ): '''The list of operations provided by Microsoft CustomProviders. :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ResourceProviderOperationList or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.customproviders.models.ResourceProviderOperationList] :raises: ~azure.core.exceptions.HttpResponseError ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass
6
2
21
3
15
5
2
0.54
1
0
0
0
2
4
2
2
85
15
50
28
41
27
42
25
36
2
1
1
8