component_versions
Creates, updates, deletes, gets or lists a component_versions
resource.
Overview
Name | component_versions |
Type | Resource |
Id | azure.ml_services.component_versions |
Fields
- vw_component_versions
- component_versions
Name | Datatype | Description |
---|---|---|
name | text | field from the properties object |
component_spec | 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 | Definition of a component version: defines resources that span component types. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | name, resourceGroupName, subscriptionId, version, workspaceName | |
list | SELECT | name, resourceGroupName, subscriptionId, 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_component_versions
- component_versions
SELECT
name,
component_spec,
is_anonymous,
is_archived,
provisioning_state,
resourceGroupName,
subscriptionId,
version,
workspaceName
FROM azure.ml_services.vw_component_versions
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
SELECT
properties
FROM azure.ml_services.component_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 component_versions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.ml_services.component_versions (
name,
resourceGroupName,
subscriptionId,
version,
workspaceName,
data__properties,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ version }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: isAnonymous
value: boolean
- name: isArchived
value: boolean
- name: componentSpec
value: object
- name: provisioningState
value: []
DELETE
example
Deletes the specified component_versions
resource.
/*+ delete */
DELETE FROM azure.ml_services.component_versions
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND version = '{{ version }}'
AND workspaceName = '{{ workspaceName }}';