diff --git a/client/v3/v3_service_test.go b/client/v3/v3_service_test.go index 1585bb80e..277e0c0f1 100644 --- a/client/v3/v3_service_test.go +++ b/client/v3/v3_service_test.go @@ -41,7 +41,8 @@ func TestOperations_CreateVM(t *testing.T) { expected := map[string]interface{}{ "api_version": "3.1", "metadata": map[string]interface{}{ - "kind": "vm", + "kind": "vm", + "should_force_translate": false, }, "spec": map[string]interface{}{ "cluster_reference": map[string]interface{}{ @@ -66,7 +67,8 @@ func TestOperations_CreateVM(t *testing.T) { "api_version": "3.1", "metadata": { "kind": "vm", - "uuid": "cfde831a-4e87-4a75-960f-89b0148aa2cc" + "uuid": "cfde831a-4e87-4a75-960f-89b0148aa2cc", + "should_force_translate" : false } }`) }) @@ -95,7 +97,8 @@ func TestOperations_CreateVM(t *testing.T) { &VMIntentInput{ APIVersion: utils.StringPtr("3.1"), Metadata: &Metadata{ - Kind: utils.StringPtr("vm"), + Kind: utils.StringPtr("vm"), + ShouldForceTranslate: utils.BoolPtr(false), }, Spec: &VM{ ClusterReference: &Reference{ @@ -109,8 +112,9 @@ func TestOperations_CreateVM(t *testing.T) { &VMIntentResponse{ APIVersion: utils.StringPtr("3.1"), Metadata: &Metadata{ - Kind: utils.StringPtr("vm"), - UUID: utils.StringPtr("cfde831a-4e87-4a75-960f-89b0148aa2cc"), + Kind: utils.StringPtr("vm"), + UUID: utils.StringPtr("cfde831a-4e87-4a75-960f-89b0148aa2cc"), + ShouldForceTranslate: utils.BoolPtr(false), }, }, false, @@ -847,6 +851,10 @@ func TestOperations_CreateImage(t *testing.T) { "spec": map[string]interface{}{ "resources": map[string]interface{}{ "image_type": "DISK_IMAGE", + "data_source_reference": map[string]interface{}{ + "kind": "vm_disk", + "uuid": "0005a238-f165-08ba-317e-ac1f6b6e5442", + }, }, "name": "image.create", }, @@ -901,6 +909,10 @@ func TestOperations_CreateImage(t *testing.T) { Name: utils.StringPtr("image.create"), Resources: &ImageResources{ ImageType: utils.StringPtr("DISK_IMAGE"), + DataSourceReference: &Reference{ + Kind: utils.StringPtr("vm_disk"), + UUID: utils.StringPtr("0005a238-f165-08ba-317e-ac1f6b6e5442"), + }, }, }, }, diff --git a/website/docs/d/cluster.html.markdown b/website/docs/d/cluster.html.markdown index 8e58198ef..5b9d758ad 100644 --- a/website/docs/d/cluster.html.markdown +++ b/website/docs/d/cluster.html.markdown @@ -34,6 +34,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - image name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Categories diff --git a/website/docs/d/clusters.html.markdown b/website/docs/d/clusters.html.markdown index b0865a059..e16460edf 100644 --- a/website/docs/d/clusters.html.markdown +++ b/website/docs/d/clusters.html.markdown @@ -30,6 +30,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - image name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Categories diff --git a/website/docs/d/image.html.markdown b/website/docs/d/image.html.markdown index 7a3a1050c..03416b320 100644 --- a/website/docs/d/image.html.markdown +++ b/website/docs/d/image.html.markdown @@ -56,6 +56,7 @@ The following attributes are exported: * `retrieval_uri_list`: - List of URIs where the raw image data can be accessed. * `size_bytes`: - The size of the image in bytes. * `state`: - The state of the image. +* `data_source_reference`: - Reference to a data source. ### Metadata diff --git a/website/docs/d/network_security_rule.html.markdown b/website/docs/d/network_security_rule.html.markdown index 04e58a54d..819a7e451 100644 --- a/website/docs/d/network_security_rule.html.markdown +++ b/website/docs/d/network_security_rule.html.markdown @@ -92,6 +92,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - image name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Categories diff --git a/website/docs/d/project.html.markdown b/website/docs/d/project.html.markdown index 9921f084e..f44afb234 100644 --- a/website/docs/d/project.html.markdown +++ b/website/docs/d/project.html.markdown @@ -136,6 +136,7 @@ The metadata attribute exports the following: * `spec_version` - Version number of the latest spec. * `spec_hash` - Hash of the spec. This will be returned from server. * `name` - vm name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Categories The categories attribute supports the following: diff --git a/website/docs/d/projects.html.markdown b/website/docs/d/projects.html.markdown index b42cc4cfd..168254c67 100644 --- a/website/docs/d/projects.html.markdown +++ b/website/docs/d/projects.html.markdown @@ -93,6 +93,7 @@ The metadata attribute exports the following: * `spec_version` - Version number of the latest spec. * `spec_hash` - Hash of the spec. This will be returned from server. * `name` - vm name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Categories The categories attribute supports the following: diff --git a/website/docs/d/subnet.html.markdown b/website/docs/d/subnet.html.markdown index 10fcb9462..376f43d67 100644 --- a/website/docs/d/subnet.html.markdown +++ b/website/docs/d/subnet.html.markdown @@ -101,6 +101,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - subnet name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Categories diff --git a/website/docs/d/virtual_machine.html.markdown b/website/docs/d/virtual_machine.html.markdown index d9c4caefc..8c6acc11f 100644 --- a/website/docs/d/virtual_machine.html.markdown +++ b/website/docs/d/virtual_machine.html.markdown @@ -194,6 +194,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - vm name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Categories diff --git a/website/docs/d/volume_group.html.markdown b/website/docs/d/volume_group.html.markdown index 00425d46b..103230883 100644 --- a/website/docs/d/volume_group.html.markdown +++ b/website/docs/d/volume_group.html.markdown @@ -76,6 +76,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - volume_group name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Reference diff --git a/website/docs/r/image.html.markdown b/website/docs/r/image.html.markdown index f018409ad..e659ec2fd 100644 --- a/website/docs/r/image.html.markdown +++ b/website/docs/r/image.html.markdown @@ -36,6 +36,7 @@ The following arguments are supported: * `source_uri`: - (Optional) The source URI points at the location of the source image which is used to create/update image. * `source_path`: - (Optional) A local path to upload an image. * `version`: - (Optional) The image version. +* `data_source_reference` - (Optional) Reference to a data source. ### Version @@ -64,6 +65,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - image name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Reference diff --git a/website/docs/r/network_security_rule.html.markdown b/website/docs/r/network_security_rule.html.markdown index 8143d8b1e..829500470 100644 --- a/website/docs/r/network_security_rule.html.markdown +++ b/website/docs/r/network_security_rule.html.markdown @@ -316,6 +316,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - image name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Reference diff --git a/website/docs/r/project.markdown b/website/docs/r/project.markdown index 93c5b7a0b..610f14640 100644 --- a/website/docs/r/project.markdown +++ b/website/docs/r/project.markdown @@ -128,6 +128,7 @@ The metadata attribute exports the following: * `spec_version` - Version number of the latest spec. * `spec_hash` - Hash of the spec. This will be returned from server. * `name` - vm name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Categories The categories attribute supports the following: diff --git a/website/docs/r/subnet.html.markdown b/website/docs/r/subnet.html.markdown index 01d993dc4..0b1c425c2 100644 --- a/website/docs/r/subnet.html.markdown +++ b/website/docs/r/subnet.html.markdown @@ -84,6 +84,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - subnet name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Categories diff --git a/website/docs/r/virtual_machine.html.markdown b/website/docs/r/virtual_machine.html.markdown index 4a41fd123..d99079f23 100644 --- a/website/docs/r/virtual_machine.html.markdown +++ b/website/docs/r/virtual_machine.html.markdown @@ -71,6 +71,7 @@ The following arguments are supported: * `vga_console_enabled`: - (Optional) Indicates whether VGA console should be enabled or not. * `disk_list` Disks attached to the VM. * `use_hot_add`: - (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is `true`. +* `num_threads_per_core`: - (Optional) Number of threads per core. ### Disk List @@ -189,6 +190,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - vm name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Categories diff --git a/website/docs/r/volume_group.html.markdown b/website/docs/r/volume_group.html.markdown index ce3342655..e0179b6fe 100644 --- a/website/docs/r/volume_group.html.markdown +++ b/website/docs/r/volume_group.html.markdown @@ -70,6 +70,7 @@ The metadata attribute exports the following: * `spec_version`: - Version number of the latest spec. * `spec_hash`: - Hash of the spec. This will be returned from server. * `name`: - volume_group name. +* `should_force_translate`: - Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema. ### Reference