Skip to content

Conversation

maniraj342
Copy link

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

Type: schema.TypeString,
Computed: true,
},
"orch_standby_node_addition_status": &schema.Schema{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we have name like "orch_" when compare with others "orchestrator_"

Inconsistent naming convention?

Required: true,
Description: "instance id of instance to provision.",
},
"workspace_id": &schema.Schema{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All arguments are required to call ValidatePowerVsWorkspaceOptions ?

User need's to provide workspace id, CRN,location_url?

ForceNew: true,
Description: "instance id of instance to provision.",
},
"stand_by_redeploy": &schema.Schema{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This argument is n't boolean type?

serviceInstanceFetchManageDrOptions := &drautomationservicev1.ServiceInstanceFetchManageDrOptions{}

parts, err := flex.SepIdParts(d.Id(), "/")
if err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In resource can we handle the scenario if a resource is deleted outside Terraform context can we set the ID to empty so future plan/apply can find diff and create new

ValidateFunc: validate.InvokeValidator("ibm_pdr_managedr", "stand_by_redeploy"),
Description: "Flag to indicate if standby should be redeployed (must be \"true\" or \"false\").",
},
"accept_language": &schema.Schema{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any change like this arguments is Force new ?
We don't have destroy what it happens when we change these fields like "accept_language" & "if_none_match"

return flex.DiscriminatedTerraformErrorf(err, err.Error(), "ibm_pdr_managedr", "create", "parse-context").GetDiag()
}
serviceInstanceManageDrOptions.SetContext(contextModel)
serviceInstanceManageDrOptions.SetPlanID(d.Get("plan_id").(string))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have fields like "plan_id","service_id", "action", "parameters" in Schema
why we are doing d.Get?

serviceInstanceValidateKeyOptions := &drautomationservicev1.ServiceInstanceValidateKeyOptions{}

serviceInstanceValidateKeyOptions.SetInstanceID(d.Get("instance_id").(string))
serviceInstanceValidateKeyOptions.SetApiKey(d.Get("api_key").(string))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have this defined in Schema "api_key"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants