sources
Creates, updates, deletes, gets or lists a sources
resource.
Overview
Name | sources |
Type | Resource |
Id | google.vmmigration.sources |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The Source name. |
aws | object | AWS type source details. (id: AwsSourceDetails) |
azure | object | Azure type source details. (id: AzureSourceDetails) |
createTime | string (google-datetime) | Output only. The create time timestamp. |
description | string | User-provided description of the source. |
encryption | object | Optional. Immutable. The encryption details of the source data stored by the service. (id: Encryption) |
labels | object | The labels of the source. |
updateTime | string (google-datetime) | Output only. The update time timestamp. |
vmware | object | Vmware type source details. (id: VmwareSourceDetails) |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The Source name. |
aws | object | AWS type source details. (id: AwsSourceDetails) |
azure | object | Azure type source details. (id: AzureSourceDetails) |
createTime | string (google-datetime) | Output only. The create time timestamp. |
description | string | User-provided description of the source. |
encryption | object | Optional. Immutable. The encryption details of the source data stored by the service. (id: Encryption) |
labels | object | The labels of the source. |
updateTime | string (google-datetime) | Output only. The update time timestamp. |
vmware | object | Vmware type source details. (id: VmwareSourceDetails) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , sourcesId | Gets details of a single Source. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | Lists Sources in a given project and location. |
create | insert | projectsId , locationsId | sourceId , requestId | Creates a new Source in a given project and location. |
patch | update | projectsId , locationsId , sourcesId | updateMask , requestId | Updates the parameters of a single Source. |
delete | delete | projectsId , locationsId , sourcesId | requestId | Deletes a single Source. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string | |
sourcesId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
sourceId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets details of a single Source.
SELECT
name,
aws,
azure,
createTime,
description,
encryption,
labels,
updateTime,
vmware
FROM google.vmmigration.sources
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND sourcesId = '{{ sourcesId }}' -- required;
Lists Sources in a given project and location.
SELECT
name,
aws,
azure,
createTime,
description,
encryption,
labels,
updateTime,
vmware
FROM google.vmmigration.sources
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- create
- Manifest
Creates a new Source in a given project and location.
INSERT INTO google.vmmigration.sources (
data__vmware,
data__aws,
data__azure,
data__labels,
data__description,
data__encryption,
projectsId,
locationsId,
sourceId,
requestId
)
SELECT
'{{ vmware }}',
'{{ aws }}',
'{{ azure }}',
'{{ labels }}',
'{{ description }}',
'{{ encryption }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ sourceId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: sources
props:
- name: projectsId
value: string
description: Required parameter for the sources resource.
- name: locationsId
value: string
description: Required parameter for the sources resource.
- name: vmware
value: object
description: >
Vmware type source details.
- name: aws
value: object
description: >
AWS type source details.
- name: azure
value: object
description: >
Azure type source details.
- name: labels
value: object
description: >
The labels of the source.
- name: description
value: string
description: >
User-provided description of the source.
- name: encryption
value: object
description: >
Optional. Immutable. The encryption details of the source data stored by the service.
- name: sourceId
value: string
- name: requestId
value: string
UPDATE
examples
- patch
Updates the parameters of a single Source.
UPDATE google.vmmigration.sources
SET
data__vmware = '{{ vmware }}',
data__aws = '{{ aws }}',
data__azure = '{{ azure }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__encryption = '{{ encryption }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND sourcesId = '{{ sourcesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- delete
Deletes a single Source.
DELETE FROM google.vmmigration.sources
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND sourcesId = '{{ sourcesId }}' --required
AND requestId = '{{ requestId }}';