Skip to content

Commit

Permalink
Deprecating alias and bindings APIs and schema items (IBM-Cloud#5612)
Browse files Browse the repository at this point in the history
* Deprecating alias and bindings APIs and schema items

Signed-off-by: arshabbir <arshabbir@gmail.com>

* Deprecating alias and bindings APIs and schema items

---------

Signed-off-by: arshabbir <arshabbir@gmail.com>
  • Loading branch information
arshabbir authored and Ramya-c4 committed Sep 26, 2024
1 parent d618416 commit 2a7b02b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,14 @@ func ResourceIBMResourceInstance() *schema.Resource {
"resource_aliases_url": {
Description: "The relative path to the resource aliases for the instance.",
Type: schema.TypeString,
Deprecated: "Remove this attribute's configuration as it's no longer in use and the attribute will be removed in the upcoming major version of the provider 1.71.0.",
Computed: true,
},

"resource_bindings_url": {
Description: "The relative path to the resource bindings for the instance.",
Type: schema.TypeString,
Deprecated: "Remove this attribute's configuration as it's no longer in use and the attribute will be removed in the upcoming major version of the provider 1.71.0.",
Computed: true,
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func ResourceIBMResourceKey() *schema.Resource {
Optional: true,
ForceNew: true,
Description: "The id of the resource alias for which to create resource key",
Deprecated: "Remove this attribute's configuration as it's no longer in use and the attribute will be removed in the upcoming major version of the provider 1.71.0.",
ConflictsWith: []string{"resource_instance_id"},
},

Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/resource_key.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Review the argument references that you can specify for your data source.
- `most_recent` - (Optional, Bool) If there are multiple resource keys, you can set this argument to `true` to import only the most recently created key.
- `name` - (Required, String) The name of the resource key. You can retrieve the value by executing the `ibmcloud resource service-keys` command in the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cloud-cli-getting-started).
- `resource_instance_id` - (Optional, string) The ID of the resource instance that the resource key is associated with. You can retrieve the value by executing the `ibmcloud resource service-instances` command in the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cloud-cli-getting-started). **Note**: Conflicts with `resource_alias_id`.
- `resource_alias_id` - (Optional, String) The ID of the resource alias that the resource key is associated with. You can retrieve the value by executing the `ibmcloud resource service-alias` command in the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cloud-cli-getting-started). **Note** Conflicts with `resource_instance_id`.
- `resource_alias_id` - (Optional, String, Deprecated) The ID of the resource alias that the resource key is associated with. You can retrieve the value by executing the `ibmcloud resource service-alias` command in the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cloud-cli-getting-started). **Note** Conflicts with `resource_instance_id`.

## Attribute reference
In addition to all argument reference list, you can access the following attribute references after your data source is created.
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/resource_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ In addition to all argument reference list, you can access the following attribu
- `resource_group_crn` - (String) The long ID (full CRN) of the resource group.
- `resource_id` - (String) The unique ID of the offering. This value is provided by and stored in the global catalog.
- `resource_plan_id` - (String) The unique ID of the plan associated with the offering. This value is provided by and stored in the global catalog.
- `resource_aliases_url` - (String) The relative path to the resource aliases for the instance.
- `resource_bindings_url` - (String) The relative path to the resource bindings for the instance.
- `resource_aliases_url` - (String, Deprecated) The relative path to the resource aliases for the instance.
- `resource_bindings_url` - (String, Deprecated) The relative path to the resource bindings for the instance.
- `resource_keys_url` - (String) The relative path to the resource keys for the instance.
- `restored_at` - (Timestamp) The date when the instance under reclamation restored.
- `restored_by` - (String) The subject who restored the instance back from reclamation.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/resource_key.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Review the argument references that you can specify for your resource.
- `parameters` (Optional, Map) Arbitrary parameters to pass to the resource in JSON format. If you want to create service credentials by using the private service endpoint, include the `service-endpoints = "private"` parameter.
- `role` - (Optional, Forces new resource, String) The name of the user role. Valid roles are `NONE`,`Writer`, `Reader`, `Manager`, `Administrator`, `Operator`, `Viewer`, and `Editor`. This argument is Optional only during creation of service credentials for Cloud Databases and other non-IAM-enabled services and is Required for all other IAM-enabled services.
- `resource_instance_id` - (Optional, Forces new resource, String) The ID of the resource instance associated with the resource key. **Note** Conflicts with `resource_alias_id`.
- `resource_alias_id` - (Optional, Forces new resource, String) The ID of the resource alias associated with the resource key. **Note** Conflicts with `resource_instance_id`.
- `resource_alias_id` - (Optional, Forces new resource, String, Deprecated) The ID of the resource alias associated with the resource key. **Note** Conflicts with `resource_instance_id`.
- `tags` (Optional, Array of strings) Tags associated with the resource key instance. **Note** Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.


Expand Down

0 comments on commit 2a7b02b

Please sign in to comment.