azureml-core 1.57.0.post1__py3-none-any.whl → 1.57.0.post3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- azureml/_restclient/jasmine_client.py +19 -1
- azureml/_restclient/models/__init__.py +4 -0
- azureml/_restclient/models/docker_build_context.py +37 -0
- azureml/_restclient/models/docker_section.py +7 -6
- azureml/_restclient/models/rest_client_enums.py +6 -0
- {azureml_core-1.57.0.post1.dist-info → azureml_core-1.57.0.post3.dist-info}/METADATA +1 -1
- {azureml_core-1.57.0.post1.dist-info → azureml_core-1.57.0.post3.dist-info}/RECORD +11 -10
- {azureml_core-1.57.0.post1.dist-info → azureml_core-1.57.0.post3.dist-info}/WHEEL +1 -1
- {azureml_core-1.57.0.post1.dist-info → azureml_core-1.57.0.post3.dist-info}/LICENSE.txt +0 -0
- {azureml_core-1.57.0.post1.dist-info → azureml_core-1.57.0.post3.dist-info}/entry_points.txt +0 -0
- {azureml_core-1.57.0.post1.dist-info → azureml_core-1.57.0.post3.dist-info}/top_level.txt +0 -0
@@ -43,8 +43,20 @@ class JasmineClient(ExperimentClient):
|
|
43
43
|
except Exception:
|
44
44
|
azureml_train_automl_runtime = None
|
45
45
|
|
46
|
+
# Indicate that registry environments are supported.
|
47
|
+
# This is a change just in the release/pypi/1.57.0 branch and should not be merged back to master.
|
48
|
+
# Before azureml-core 1.57.0.post2, it did not recognize the DockerBuildContext,
|
49
|
+
# which is return by registry environments.
|
50
|
+
# Setting the version to "1.57.0.3" allows the Jasmine service to distinguish between
|
51
|
+
# the original 1.57.0 (which doesn't support registry environments) and 1.57.0.post3
|
52
|
+
# (which does support registry environments).
|
53
|
+
# Note that the version cannot be "1.57.0.post3" because Jasmine needs the version to be numeric.
|
54
|
+
azureml_train_automl_version = azureml_train_automl
|
55
|
+
if azureml_train_automl_version == "1.57.0":
|
56
|
+
azureml_train_automl_version = "1.57.0.3"
|
57
|
+
|
46
58
|
self.automl_user_agent = "azureml.train.automl/{} azureml.train.automl.runtime/{}"\
|
47
|
-
.format(
|
59
|
+
.format(azureml_train_automl_version, azureml_train_automl_runtime)
|
48
60
|
|
49
61
|
super(JasmineClient, self).__init__(
|
50
62
|
service_context, experiment_name, experiment_id, **kwargs)
|
@@ -230,6 +242,9 @@ class JasmineClient(ExperimentClient):
|
|
230
242
|
# This is a workaround to convert EnvironmentDefinition => azureml.core.Environment
|
231
243
|
client_models = {"EnvironmentDefinition": EnvironmentDefinition}
|
232
244
|
serializer = Serializer(client_models)
|
245
|
+
docker = automl_curated_env_output.environment.docker
|
246
|
+
if docker and docker.build_context:
|
247
|
+
docker.build_context.location_type = self._init_lower_case(docker.build_context.location_type.value)
|
233
248
|
environment_json = serializer.body(automl_curated_env_output.environment, "EnvironmentDefinition")
|
234
249
|
environment = Environment._deserialize_and_add_to_object(environment_json)
|
235
250
|
|
@@ -253,3 +268,6 @@ class JasmineClient(ExperimentClient):
|
|
253
268
|
input)
|
254
269
|
|
255
270
|
return validation_output
|
271
|
+
|
272
|
+
def _init_lower_case(self, s: str):
|
273
|
+
return s[0].lower() + s[1:]
|
@@ -98,6 +98,7 @@ from .meta_api_version_response import MetaApiVersionResponse
|
|
98
98
|
from .auto_ml_curated_env_input import AutoMLCuratedEnvInput
|
99
99
|
from .python_section import PythonSection
|
100
100
|
from .docker_image_platform import DockerImagePlatform
|
101
|
+
from .docker_build_context import DockerBuildContext
|
101
102
|
from .registry_identity import RegistryIdentity
|
102
103
|
from .container_registry import ContainerRegistry
|
103
104
|
from .docker_section import DockerSection
|
@@ -481,6 +482,7 @@ from .rest_client_enums import (
|
|
481
482
|
ServiceDataAccessAuthIdentity,
|
482
483
|
SqlCredentialTypes,
|
483
484
|
HdfsCredentialType,
|
485
|
+
BuildContextLocationType,
|
484
486
|
Framework,
|
485
487
|
Communicator,
|
486
488
|
DataStoreMode,
|
@@ -631,6 +633,7 @@ __all__ = [
|
|
631
633
|
'AutoMLCuratedEnvInput',
|
632
634
|
'PythonSection',
|
633
635
|
'DockerImagePlatform',
|
636
|
+
'DockerBuildContext',
|
634
637
|
'RegistryIdentity',
|
635
638
|
'ContainerRegistry',
|
636
639
|
'DockerSection',
|
@@ -1013,6 +1016,7 @@ __all__ = [
|
|
1013
1016
|
'ServiceDataAccessAuthIdentity',
|
1014
1017
|
'SqlCredentialTypes',
|
1015
1018
|
'HdfsCredentialType',
|
1019
|
+
'BuildContextLocationType',
|
1016
1020
|
'Framework',
|
1017
1021
|
'Communicator',
|
1018
1022
|
'DataStoreMode',
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# --------------------------------------------------------------------------
|
3
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
+
# Licensed under the MIT License. See License.txt in the project root for
|
5
|
+
# license information.
|
6
|
+
#
|
7
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 2.3.33.0
|
8
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
9
|
+
# regenerated.
|
10
|
+
# --------------------------------------------------------------------------
|
11
|
+
|
12
|
+
from msrest.serialization import Model
|
13
|
+
|
14
|
+
|
15
|
+
class DockerBuildContext(Model):
|
16
|
+
"""DockerBuildContext.
|
17
|
+
|
18
|
+
:param location_type: Possible values include: 'Git', 'StorageAccount'
|
19
|
+
:type location_type: str or ~_restclient.models.BuildContextLocationType
|
20
|
+
:param location: Location of Docker build context.
|
21
|
+
:type location: str
|
22
|
+
:param dockerfile_path: Relative path of the Dockerfile to use during
|
23
|
+
image build. Default value: "Dockerfile" .
|
24
|
+
:type dockerfile_path: str
|
25
|
+
"""
|
26
|
+
|
27
|
+
_attribute_map = {
|
28
|
+
'location_type': {'key': 'locationType', 'type': 'BuildContextLocationType'},
|
29
|
+
'location': {'key': 'location', 'type': 'str'},
|
30
|
+
'dockerfile_path': {'key': 'dockerfilePath', 'type': 'str'},
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, location_type=None, location=None, dockerfile_path="Dockerfile"):
|
34
|
+
super(DockerBuildContext, self).__init__()
|
35
|
+
self.location_type = location_type
|
36
|
+
self.location = location
|
37
|
+
self.dockerfile_path = dockerfile_path
|
@@ -24,27 +24,28 @@ class DockerSection(Model):
|
|
24
24
|
:param base_dockerfile: Base Dockerfile used for Docker-based runs.
|
25
25
|
Mutually exclusive with BaseImage and DockerContext.
|
26
26
|
:type base_dockerfile: str
|
27
|
-
:param
|
28
|
-
|
29
|
-
:type docker_context: str
|
27
|
+
:param build_context:
|
28
|
+
:type build_context: ~_restclient.models.DockerBuildContext
|
30
29
|
:param base_image_registry: Image registry that contains the base image.
|
31
30
|
:type base_image_registry: ~_restclient.models.ContainerRegistry
|
31
|
+
:param enabled:
|
32
|
+
:type enabled: bool
|
32
33
|
"""
|
33
34
|
|
34
35
|
_attribute_map = {
|
35
36
|
'base_image': {'key': 'baseImage', 'type': 'str'},
|
36
37
|
'platform': {'key': 'platform', 'type': 'DockerImagePlatform'},
|
37
38
|
'base_dockerfile': {'key': 'baseDockerfile', 'type': 'str'},
|
38
|
-
'
|
39
|
+
'build_context': {'key': 'buildContext', 'type': 'DockerBuildContext'},
|
39
40
|
'base_image_registry': {'key': 'baseImageRegistry', 'type': 'ContainerRegistry'},
|
40
41
|
'enabled': {'key': 'enabled', 'type': 'bool'},
|
41
42
|
}
|
42
43
|
|
43
|
-
def __init__(self, base_image=None, platform=None, base_dockerfile=None,
|
44
|
+
def __init__(self, base_image=None, platform=None, base_dockerfile=None, build_context=None, base_image_registry=None, enabled=None):
|
44
45
|
super(DockerSection, self).__init__()
|
45
46
|
self.base_image = base_image
|
46
47
|
self.platform = platform
|
47
48
|
self.base_dockerfile = base_dockerfile
|
48
|
-
self.
|
49
|
+
self.build_context = build_context
|
49
50
|
self.base_image_registry = base_image_registry
|
50
51
|
self.enabled = enabled
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: azureml-core
|
3
|
-
Version: 1.57.0.
|
3
|
+
Version: 1.57.0.post3
|
4
4
|
Summary: Azure Machine Learning core packages, modules, and classes
|
5
5
|
Home-page: https://docs.microsoft.com/python/api/overview/azure/ml/?view=azure-ml-py
|
6
6
|
Author: Microsoft Corp
|
@@ -269,7 +269,7 @@ azureml/_restclient/constants.py,sha256=cG5T8xtrgPBPwckSmDLo-cXlxWx502xNzRdweNeh
|
|
269
269
|
azureml/_restclient/environment_client.py,sha256=zKHAs2PhYW1xuau7aqyQzBVDPSnSJKBvkFvlnzmRCgE,10593
|
270
270
|
azureml/_restclient/exceptions.py,sha256=LszbL91f9p3P5QdbVdu8BZDa-AusvGtuvMw9iGsVjxw,3105
|
271
271
|
azureml/_restclient/experiment_client.py,sha256=tTrw3uTBNttHEeENO5_oLkNd9wrB_-60tRERyDubrpA,19719
|
272
|
-
azureml/_restclient/jasmine_client.py,sha256=
|
272
|
+
azureml/_restclient/jasmine_client.py,sha256=ANlQQNt7U2oiiEWMmJV7MJRMODceszEVr37wrc8PEVU,11433
|
273
273
|
azureml/_restclient/metrics_client.py,sha256=HmS7CWDDlQGfB823SUMuoUxAdvoyhlkdNy_o6zUSXCc,29055
|
274
274
|
azureml/_restclient/models_client.py,sha256=hc7o6zmjIPSLd8oLdoiVKPeWlszBT3js_LE3jlJWVEc,5884
|
275
275
|
azureml/_restclient/polling.py,sha256=RgfUkBcZwb-GRmwdVnvh2H4fuEOz_29Yo930vO0V5sA,741
|
@@ -296,7 +296,7 @@ azureml/_restclient/contracts/__init__.py,sha256=DG3ntUPILtNSJGUT5gJdEu_1v8g3_gT
|
|
296
296
|
azureml/_restclient/contracts/events.py,sha256=q30GtxbyNdnZ7ewTg-tDK3U4zIiEqY-KMnxToVMXL8c,4186
|
297
297
|
azureml/_restclient/contracts/query_params.py,sha256=0v2a6WijXXLR4OjKl0NxCxbxQFA05oT7tQP9U_bljYs,889
|
298
298
|
azureml/_restclient/contracts/utils.py,sha256=zp2l1yHowEFmRewZfBEqvyQMM0lAAGqp0FLsat0i5Ck,1010
|
299
|
-
azureml/_restclient/models/__init__.py,sha256=
|
299
|
+
azureml/_restclient/models/__init__.py,sha256=OGjuu3pRlwAbRjqJEnqhWQSLa77iDcC52TSpi1YW9I4,45277
|
300
300
|
azureml/_restclient/models/aci_service_create_request.py,sha256=Xd_vnjLuN2_RnNmL-2mCCtt3yLSyQ0L7XYk_zBb4mT4,6503
|
301
301
|
azureml/_restclient/models/aci_service_create_request_container_resource_requirements.py,sha256=KN460jC4NwcYkEWc2IT6KlAFSPqHejRSxOuh9fzoEIQ,1326
|
302
302
|
azureml/_restclient/models/aci_service_create_request_data_collection.py,sha256=TbEbHdGub0qhHw8O1oRSX2yzkAYIE-PYJ393e7nD74Y,1109
|
@@ -494,13 +494,14 @@ azureml/_restclient/models/diagnose_response_result_value.py,sha256=Kv7kWfa0gb5T
|
|
494
494
|
azureml/_restclient/models/diagnose_result.py,sha256=nqufMnrGX_ZA8DrllWIhL9w_3y118rUMr2TsR9ol8Qo,1512
|
495
495
|
azureml/_restclient/models/diagnose_workspace_parameters.py,sha256=CZ4BwAwtKYLUA2wvmxEW9zNng-3qGiNzIydoSZpEUQo,945
|
496
496
|
azureml/_restclient/models/dir_tree_node.py,sha256=mOfUOYhJT8WlfwvPDSbDiTrHKU7N1WMISrA2OOh4MdQ,1761
|
497
|
+
azureml/_restclient/models/docker_build_context.py,sha256=KgE9Lc5IgarHqP3GH_ONNkjJk5vVLOmaQCenCYCYzuM,1518
|
497
498
|
azureml/_restclient/models/docker_configuration.py,sha256=QFzbK6c7dzv2XFbiC8CM5D6Hasw-VVVK0KLDydGdRzA,1790
|
498
499
|
azureml/_restclient/models/docker_image.py,sha256=m8i9lCsYhm_DtUOlwIaXMCCgjQ_ZGizv8GsArQOut2E,4577
|
499
500
|
azureml/_restclient/models/docker_image_platform.py,sha256=x60-4uWVItBRcfpcNwtOCwcZIHSYkJhAFBQeUq3d1ic,1017
|
500
501
|
azureml/_restclient/models/docker_image_request.py,sha256=TsdRkDCxQrWXSUs6lkKdSaZlu-Y1MbS7UDO4BZGdnvI,3266
|
501
502
|
azureml/_restclient/models/docker_image_response.py,sha256=lmuB2TK4XR-4M-p7d2nbW9-aHnBXwGHmCe6g-ZqKOos,6240
|
502
503
|
azureml/_restclient/models/docker_image_response_target_runtime.py,sha256=iRjChCb4ykBscCtv96Uq6NOGyChkL_ejj3Osl0qBmA0,1672
|
503
|
-
azureml/_restclient/models/docker_section.py,sha256=
|
504
|
+
azureml/_restclient/models/docker_section.py,sha256=HIFhOSpymfLNw3aP-q3QXmj5a60owB510B6KQzoDtrQ,2267
|
504
505
|
azureml/_restclient/models/dynamic_whitelist_settings.py,sha256=FdeTYG8PZG4qkjY6huGCv6QOV9kshpzCrI7zv-pX1KQ,2542
|
505
506
|
azureml/_restclient/models/dynamic_whitelist_settings_dto.py,sha256=IzgaIAuDbkH-ES6YMZG8DrWkUa8UTbq13vx3xI0oxQk,2447
|
506
507
|
azureml/_restclient/models/encryption_properties.py,sha256=SyXgxConCcFWOLX5dRK9NXa_WlBwGy2FIsyYymbiACw,1304
|
@@ -722,7 +723,7 @@ azureml/_restclient/models/resource_name.py,sha256=4mUiiv2PuXVtP4WTuPj98Ao5Y0QK4
|
|
722
723
|
azureml/_restclient/models/resource_quota.py,sha256=_gRJMAPEvz1zYNASDV4eWIJVD_VhcrOGRcZl162Dj48,1907
|
723
724
|
azureml/_restclient/models/resource_sku_location_info.py,sha256=2ud80_A7g6QSx7DalLdt2124qYXrRzUDs9nv-Dkz_us,1620
|
724
725
|
azureml/_restclient/models/resource_sku_zone_details.py,sha256=9SyeNU7mqbjXLvxlQrA8Dw5IYaZEnWYN9YVSjQhiFkY,1470
|
725
|
-
azureml/_restclient/models/rest_client_enums.py,sha256=
|
726
|
+
azureml/_restclient/models/rest_client_enums.py,sha256=UpOXcicV6jHpagby3L_gfMI28ICqSMg-zuW3Ml28314,10659
|
726
727
|
azureml/_restclient/models/restriction.py,sha256=VUM11ogA26v1jAMQxws5H7BkxKLrKeZIX7TDZfH0AlU,1768
|
727
728
|
azureml/_restclient/models/retrieve_full_fidelity_metric_request_dto.py,sha256=kS2sg3wtGnizzW--2j6y89oWreC_1K-D0eiUnrnbGZQ,1509
|
728
729
|
azureml/_restclient/models/rgit_hub_package.py,sha256=7iw-4KE55r4KVlF29uOei6LB2L04ehepzd5fUDlaHUw,1171
|
@@ -1322,9 +1323,9 @@ azureml/exceptions/__init__.py,sha256=wAB_C_TNpL8FK6GXeygupED6mG5IfSrLx_moV7NHIp
|
|
1322
1323
|
azureml/exceptions/_azureml_exception.py,sha256=XxvMTrADJiTIHSn8DHj2fmyDUhYyBuVUqxYR3cuibz4,18989
|
1323
1324
|
azureml/history/__init__.py,sha256=8U_yD6fMdk8Ok3Z-GO_ibddTgQEB-aY6BTT8t9aYGZw,274
|
1324
1325
|
azureml/history/_tracking.py,sha256=IcZoVbHsOA01eQ3Ealnxe1YbNNnQi4LA5ccINB1cTrU,18541
|
1325
|
-
azureml_core-1.57.0.
|
1326
|
-
azureml_core-1.57.0.
|
1327
|
-
azureml_core-1.57.0.
|
1328
|
-
azureml_core-1.57.0.
|
1329
|
-
azureml_core-1.57.0.
|
1330
|
-
azureml_core-1.57.0.
|
1326
|
+
azureml_core-1.57.0.post3.dist-info/LICENSE.txt,sha256=GBoIyZ-6vJ4xjRc8U3wTw4EfkuaEdVTm_gbr1Nm8uDI,859
|
1327
|
+
azureml_core-1.57.0.post3.dist-info/METADATA,sha256=KHDItTZouZ8-mEVKe7-n55VbILT7glqlie4TnJrymIo,3119
|
1328
|
+
azureml_core-1.57.0.post3.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
1329
|
+
azureml_core-1.57.0.post3.dist-info/entry_points.txt,sha256=EKn4UdjSeleaw9lk1z12dZ7YK6tX4Ig6FYqaC2Uk8b8,154
|
1330
|
+
azureml_core-1.57.0.post3.dist-info/top_level.txt,sha256=ZOeEa0TAXo6i5wOjwBoqfIGEuxOcKuscGgNSpizqREY,8
|
1331
|
+
azureml_core-1.57.0.post3.dist-info/RECORD,,
|
File without changes
|
{azureml_core-1.57.0.post1.dist-info → azureml_core-1.57.0.post3.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|