Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor deprecated fields and messages #18

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ibm/service/power/data_source_ibm_pi_dhcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func DataSourceIBMPIDhcp() *schema.Resource {
Attr_DhcpNetworkDeprecated: {
Type: schema.TypeString,
Computed: true,
Description: "The ID of the DHCP Server private network (deprecated - replaced by network_id)",
Description: "The ID of the DHCP Server private network",
Deprecated: "This field is deprecated, use network_id instead",
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
},
Attr_DhcpNetworkID: {
Type: schema.TypeString,
Expand Down
3 changes: 2 additions & 1 deletion ibm/service/power/data_source_ibm_pi_dhcps.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ func DataSourceIBMPIDhcps() *schema.Resource {
Attr_DhcpNetworkDeprecated: {
Type: schema.TypeString,
Computed: true,
Description: "The ID of the DHCP Server private network (deprecated - replaced by network_id)",
Description: "The ID of the DHCP Server private network",
Deprecated: "This field is deprecated, use network_id instead",
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
},
Attr_DhcpNetworkID: {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion ibm/service/power/data_source_ibm_pi_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func DataSourceIBMPINetwork() *schema.Resource {
"name": {
Type: schema.TypeString,
Computed: true,
Deprecated: "This value is deprecated in favor of" + helpers.PINetworkName,
Deprecated: "This field is deprecated, use pi_network_name instead",
},
"dns": {
Type: schema.TypeSet,
Expand Down
3 changes: 2 additions & 1 deletion ibm/service/power/resource_ibm_pi_dhcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ func ResourceIBMPIDhcp() *schema.Resource {
Attr_DhcpNetworkDeprecated: {
Type: schema.TypeString,
Computed: true,
Description: "The ID of the DHCP Server private network (deprecated - replaced by network_id)",
Description: "The ID of the DHCP Server private network",
Deprecated: "This field is deprecated, use network_id instead",
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
},
Attr_DhcpNetworkID: {
Type: schema.TypeString,
Expand Down
7 changes: 1 addition & 6 deletions ibm/service/power/resource_ibm_pi_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func ResourceIBMPIInstance() *schema.Resource {
Optional: true,
Computed: true,
Description: "set to true to enable migration of the PI instance",
Deprecated: "This field is deprecated, use pin_policy instead",
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
},
"min_processors": {
Type: schema.TypeFloat,
Expand Down Expand Up @@ -313,12 +314,6 @@ func ResourceIBMPIInstance() *schema.Resource {
Default: "none",
ValidateFunc: validate.ValidateAllowedStringValues([]string{"none", "soft", "hard"}),
},

// "reboot_for_resource_change": {
// Type: schema.TypeString,
// Optional: true,
// Description: "Flag to be passed for CPU/Memory changes that require a reboot to take effect",
// },
"operating_system": {
Type: schema.TypeString,
Computed: true,
Expand Down
7 changes: 4 additions & 3 deletions ibm/service/power/resource_ibm_pi_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ func ResourceIBMPIKey() *schema.Resource {
Description: "Date of SSH Key creation",
},
Attr_KeyID: {
Type: schema.TypeString,
Computed: true,
Deprecated: "User defined name for the SSH key (deprecated - replaced by name)",
Type: schema.TypeString,
Computed: true,
Description: "User defined name for the SSH key",
Deprecated: "This field is deprecated, use pi_key_name instead",
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
},
Attr_KeyName: {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion ibm/service/power/resource_ibm_pi_network_port_attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func ResourceIBMPINetworkPortAttach() *schema.Resource {
"port_id": {
Type: schema.TypeString,
Computed: true,
Deprecated: "port_id attribute is deprecated, use network_port_id instead.",
Deprecated: "This field is deprecated, use network_port_id instead",
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
},
"network_port_id": {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/pi_dhcp.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ In addition to all argument reference list, you can access the following attribu
Nested scheme for `leases`:
- `instance_ip` - (String) The IP of the PVM Instance.
- `instance_mac` - (String) The MAC Address of the PVM Instance.
- `network` - (String) The ID of the DHCP Server private network (deprecated - replaced by `network_id`).
- `network` - (Deprecated, String) The ID of the DHCP Server private network.
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
- `network_id`- (String) The ID of the DHCP Server private network.
- `network_name` - The name of the DHCP Server private network.
- `status` - (String) The status of the DHCP Server.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/pi_dhcps.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to all argument reference list, you can access the following attribu

Nested scheme for `servers`:
- `dhcp_id` - (String) The ID of the DHCP Server.
- `network` - (String) The ID of the DHCP Server private network (deprecated - replaced by `network_id`).
- `network` - (Deprecated, String) The ID of the DHCP Server private network.
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
- `network_id`- (String) The ID of the DHCP Server private network.
- `network_name` - The name of the DHCP Server private network.
- `status` - (String) The status of the DHCP Server.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/pi_dhcp.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ In addition to all argument reference list, you can access the following attribu
Nested scheme for `leases`:
- `instance_ip` - (String) The IP of the PVM Instance.
- `instance_mac` - (String) The MAC Address of the PVM Instance.
- `network` - (String) The ID of the DHCP Server private network (deprecated - replaced by `network_id`).
- `network` - (Deprecated, String) The ID of the DHCP Server private network.
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
- `network_id`- (String) The ID of the DHCP Server private network.
- `network_name` - The name of the DHCP Server private network.
- `status` - (String) The status of the DHCP Server.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/pi_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Review the argument references that you can specify for your resource.
- **Note**: Provisioning VTL instances is temporarily disabled.
- `pi_memory` - (Optional, Float) The amount of memory that you want to assign to your instance in gigabytes.
- Required when not creating SAP instances. Conflicts with `pi_sap_profile_id`.
- `pi_migratable`- (Optional, Bool) Indicates the VM is migrated or not.
- `pi_migratable`- (Deprecated, Optional, Bool) Indicates the VM is migrated or not.
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
- `pi_network` - (Required, List of Map) List of one or more networks to attach to the instance.

The `pi_network` block supports:
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/pi_key.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Review the argument references that you can specify for your resource.
In addition to all argument reference list, you can access the following attribute reference after your resource is created.

- `id` - (String) The unique identifier of the key. The ID is composed of `<pi_cloud_instance_id>/<pi_key_name>`.
- `key_id` - (String) User defined name for the SSH key (deprecated - replaced by `name`).
- `key_id` - (Deprecated, String) User defined name for the SSH key.
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
- `name` - (String) User defined name for the SSH key
- `creation_date` - (String) Date of SSH Key creation.
- `ssh_key` - (String) SSH RSA key.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/pi_network_port_attach.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ In addition to all argument reference list, you can access the following attribu
- `id` - (String) The unique identifier of the instance. The ID is composed of `<pi_cloud_instance_id>/<power_network_port_id>/<id>`.
- `macaddress` - (String) The MAC address of the port.
- `network_port_id` - (String) The ID of the port.
- `portid` - (Deprecated, String) The ID of the port.
- `port_id` - (Deprecated, String) The ID of the port.
ismirlia marked this conversation as resolved.
Show resolved Hide resolved
- `public_ip` - (String) The public IP associated with the port.
- `status` - (String) The status of the port.

Expand Down
Loading