code_versions
Creates, updates, deletes, gets or lists a code_versions
resource.
Overview
Name | code_versions |
Type | Resource |
Id | azure.ml_services.code_versions |
Fields
- vw_code_versions
- code_versions
Name | Datatype | Description |
---|---|---|
name | text | field from the properties object |
code_uri | text | field from the properties object |
is_anonymous | text | field from the properties object |
is_archived | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
version | text | field from the properties object |
workspaceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Code asset version details. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | name, resourceGroupName, subscriptionId, version, workspaceName | |
list | SELECT | name, resourceGroupName, subscriptionId, workspaceName | |
create_or_get_start_pending_upload | INSERT | name, resourceGroupName, subscriptionId, version, workspaceName | |
create_or_update | INSERT | name, resourceGroupName, subscriptionId, version, workspaceName, data__properties | |
delete | DELETE | name, resourceGroupName, subscriptionId, version, workspaceName | |
publish | EXEC | name, resourceGroupName, subscriptionId, version, workspaceName |
SELECT
examples
- vw_code_versions
- code_versions
SELECT
name,
code_uri,
is_anonymous,
is_archived,
provisioning_state,
resourceGroupName,
subscriptionId,
version,
workspaceName
FROM azure.ml_services.vw_code_versions
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
SELECT
properties
FROM azure.ml_services.code_versions
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new code_versions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.ml_services.code_versions (
name,
resourceGroupName,
subscriptionId,
version,
workspaceName,
pendingUploadId,
pendingUploadType
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ version }}',
'{{ workspaceName }}',
'{{ pendingUploadId }}',
'{{ pendingUploadType }}'
;
- name: your_resource_model_name
props:
- name: pendingUploadId
value: string
- name: pendingUploadType
value: []
DELETE
example
Deletes the specified code_versions
resource.
/*+ delete */
DELETE FROM azure.ml_services.code_versions
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND version = '{{ version }}'
AND workspaceName = '{{ workspaceName }}';