Skip to content

Commit

Permalink
format as string: data_path '0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jabielecki committed Feb 9, 2024
1 parent 9a63071 commit f850d4e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions gen/definitions/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ attributes:
tf_name: family
type: String
description: Third party image family
data_path: 0
data_path: '0'
response_data_path: response.0.family
requires_replace: true
exclude_example: true
Expand All @@ -45,21 +45,21 @@ attributes:
id: true
query_param: true
response_data_path: response.0.name
data_path: 0
data_path: '0'
requires_replace: true
example: basename(\"../software.bin\")
- model_name: thirdPartyVendor
type: String
description: Third party Vendor
data_path: 0
data_path: '0'
response_data_path: response.0.vendor
requires_replace: true
exclude_example: true
- model_name: isThirdParty
type: Bool
default_value: false
description: Whether the software image is from a third party.
data_path: 0
data_path: '0'
write_only: true
requires_replace: true
exclude_example: true
10 changes: 5 additions & 5 deletions gen/definitions/image_activation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ skip_minimum_test: true
attributes:
- model_name: deviceUuid
type: String
data_path: 0
data_path: '0'
description: The UUID of the network device on which to active the software image. Changing it forces the entire resource to be re-created, so that the activation occurs as newly specified.
requires_replace: true
example: 138b3181-f9c5-4271-9292-cf3152ab4d3e
- model_name: imageUuidList
type: StringList
data_path: 0
data_path: '0'
description: The list of UUIDs of the software images to activate. The UUIDs could be obtained for example from `catalystcenter_image.id`. SMU images shouldn't be specified in this list. Changing/adding/removing any UUID causes the entire resource to be re-created, so that the entire activation occurs as newly specified.
requires_replace: true
- model_name: activateLowerImageVersion
type: Bool
data_path: 0
data_path: '0'
description: Allow to activate a lower version of an image. Updating this attribute later does not cause image to be re-activated.
example: 'true'
- model_name: deviceUpgradeMode
type: String
data_path: 0
data_path: '0'
description: Device upgrade mode. Updating this attribute later does not cause image to be re-activated.
exclude_example: true
- model_name: distributeIfNeeded
type: Bool
data_path: 0
data_path: '0'
description: Whether to distribute the image as needed, thus negating the need for a separate `catalystcenter_image_distribution`. Updating this attribute later does not cause image to be re-activated.
example: 'true'
4 changes: 2 additions & 2 deletions gen/definitions/image_distribution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ doc_category: Software Image Management (SWIM)
attributes:
- model_name: deviceUuid
type: String
data_path: 0
data_path: '0'
description: The UUID of the network device to which to copy the software image file.
requires_replace: true
example: 138b3181-f9c5-4271-9292-cf3152ab4d3e
- model_name: imageUuid
type: String
data_path: 0
data_path: '0'
description: The UUID of the software image to copy. It could be obtained for example from `catalystcenter_image.id`.
requires_replace: true
example: faa9c5f7-d093-459a-8164-cc555bbf3b80

0 comments on commit f850d4e

Please sign in to comment.