Skip to content

Commit bb65f30

Browse files
authored
[Datasource] Deprecate CRN attribute from ibm_pi_volume_snapshot(s) (IBM-Cloud#6168)
* Deprecate CRN attribute from volume snapshots This field was mistakenly added and is not and has never been filled out by the service broker. It currently only applies to the instance_snapshot data source and resource. * Update documentation
1 parent 8f1219d commit bb65f30

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

ibm/service/power/data_source_ibm_pi_volume_snapshot.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func DataSourceIBMPIVolumeSnapshot() *schema.Resource {
4040
},
4141
Attr_CRN: {
4242
Computed: true,
43+
Deprecated: "This field is deprecated.",
4344
Description: "The CRN of the volume snapshot.",
4445
Type: schema.TypeString,
4546
},

ibm/service/power/data_source_ibm_pi_volume_snapshots.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func DataSourceIBMPIVolumeSnapshots() *schema.Resource {
4141
},
4242
Attr_CRN: {
4343
Computed: true,
44+
Deprecated: "This field is deprecated.",
4445
Description: "The CRN of the volume snapshot.",
4546
Type: schema.TypeString,
4647
},

website/docs/d/pi_volume_snapshot.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You can specify the following arguments for this data source.
4747
In addition to all argument reference list, you can access the following attribute references after your data source is created.
4848

4949
- `creation_date` - (String) The date and time when the volume snapshot was created.
50-
- `crn` - (String) The CRN for this resource.
50+
- `crn` - (Deprecated, String) The CRN for this resource.
5151
- `id` - (String) The unique identifier of the volume snapshot.
5252
- `name` - (String) The volume snapshot name.
5353
- `size` - (Float) The size of the volume snapshot, in gibibytes (GiB).

website/docs/d/pi_volume_snapshots.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ In addition to all argument reference list, you can access the following attribu
4848

4949
Nested schema for `volume_snapshots`:
5050
- `creation_date` - (String) The date and time when the volume snapshot was created.
51-
- `crn` - (String) The CRN of the volume snapshot.
51+
- `crn` - (Deprecated, String) The CRN of the volume snapshot.
5252
- `id` - (String) The volume snapshot UUID.
5353
- `name` - (String) The volume snapshot name.
5454
- `size` - (Float) The size of the volume snapshot, in gibibytes (GiB).

0 commit comments

Comments
 (0)