Skip to content

Commit

Permalink
upgraded dcl (#6124) (#11892)
Browse files Browse the repository at this point in the history
Co-authored-by: avinash84 <avikuma@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: avinash84 <avikuma@google.com>
  • Loading branch information
modular-magician and avinash84 authored Jun 16, 2022
1 parent edef073 commit 02ec2b2
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changelog/6124.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```release-note:enhancement
compute: added `psc_connection_id` and `psc_connection_status` output fields to `google_compute_forwarding_rule` and `google_compute_global_forwarding_rule` resources
```
```release-note:enhancement
containeraws: made `config.instance_type` field updatable in `google_container_aws_node_pool`
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/hashicorp/terraform-provider-google
require (
cloud.google.com/go/bigtable v1.13.0
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.10.0
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.10.3
github.com/apparentlymart/go-cidr v1.1.0
github.com/client9/misspell v0.3.4
github.com/davecgh/go-spew v1.1.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1511,3 +1511,5 @@ rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.10.3 h1:DsRf9bbXlHZVSWosvXwFLvtWdNTvIK/Ssbf8JWnrb/o=
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.10.3/go.mod h1:UJoDYx6t3+xCOd+dZX8+NrEB+Y/eW1pQlvxh2Gt7y5E=
18 changes: 18 additions & 0 deletions google/resource_compute_forwarding_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,18 @@ func resourceComputeForwardingRule() *schema.Resource {
Description: "Used internally during label updates.",
},

"psc_connection_id": {
Type: schema.TypeString,
Computed: true,
Description: "The PSC connection id of the PSC Forwarding Rule.",
},

"psc_connection_status": {
Type: schema.TypeString,
Computed: true,
Description: "The PSC connection status of the PSC Forwarding Rule. Possible values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED",
},

"self_link": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -447,6 +459,12 @@ func resourceComputeForwardingRuleRead(d *schema.ResourceData, meta interface{})
if err = d.Set("label_fingerprint", res.LabelFingerprint); err != nil {
return fmt.Errorf("error setting label_fingerprint in state: %s", err)
}
if err = d.Set("psc_connection_id", res.PscConnectionId); err != nil {
return fmt.Errorf("error setting psc_connection_id in state: %s", err)
}
if err = d.Set("psc_connection_status", res.PscConnectionStatus); err != nil {
return fmt.Errorf("error setting psc_connection_status in state: %s", err)
}
if err = d.Set("self_link", res.SelfLink); err != nil {
return fmt.Errorf("error setting self_link in state: %s", err)
}
Expand Down
18 changes: 18 additions & 0 deletions google/resource_compute_global_forwarding_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ func resourceComputeGlobalForwardingRule() *schema.Resource {
Description: "Used internally during label updates.",
},

"psc_connection_id": {
Type: schema.TypeString,
Computed: true,
Description: "The PSC connection id of the PSC Forwarding Rule.",
},

"psc_connection_status": {
Type: schema.TypeString,
Computed: true,
Description: "The PSC connection status of the PSC Forwarding Rule. Possible values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED",
},

"self_link": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -340,6 +352,12 @@ func resourceComputeGlobalForwardingRuleRead(d *schema.ResourceData, meta interf
if err = d.Set("label_fingerprint", res.LabelFingerprint); err != nil {
return fmt.Errorf("error setting label_fingerprint in state: %s", err)
}
if err = d.Set("psc_connection_id", res.PscConnectionId); err != nil {
return fmt.Errorf("error setting psc_connection_id in state: %s", err)
}
if err = d.Set("psc_connection_status", res.PscConnectionStatus); err != nil {
return fmt.Errorf("error setting psc_connection_status in state: %s", err)
}
if err = d.Set("self_link", res.SelfLink); err != nil {
return fmt.Errorf("error setting self_link in state: %s", err)
}
Expand Down
1 change: 0 additions & 1 deletion google/resource_container_aws_node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ func ContainerAwsNodePoolConfigSchema() *schema.Resource {
Type: schema.TypeString,
Computed: true,
Optional: true,
ForceNew: true,
Description: "Optional. The AWS instance type. When unspecified, it defaults to `m5.large`.",
},

Expand Down
2 changes: 1 addition & 1 deletion google/resource_container_aws_node_pool_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ resource "google_container_aws_node_pool" "primary" {
}
iam_instance_profile = "%{byo_prefix}-1p-dev-nodepool"
instance_type = "t3.medium"
instance_type = "t3.large"
labels = {
label-one = "value-one"
Expand Down
6 changes: 6 additions & 0 deletions website/docs/r/compute_forwarding_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,12 @@ In addition to the arguments listed above, the following computed attributes are
* `creation_timestamp` -
Creation timestamp in RFC3339 text format.

* `psc_connection_id` -
The PSC connection id of the PSC Forwarding Rule.

* `psc_connection_status` -
The PSC connection status of the PSC Forwarding Rule. Possible values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED

* `label_fingerprint` -
([Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
The fingerprint used for optimistic locking of this resource. Used
Expand Down

0 comments on commit 02ec2b2

Please sign in to comment.