Skip to content

Commit a2226ac

Browse files
Revert "Adding self_link output to google_network_security profile group" (#10696) (#7365)
[upstream:1895c01bbac30a2dac074526aec30bcacc0589ea] Signed-off-by: Modular Magician <[email protected]>
1 parent a03576d commit a2226ac

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

google-beta/services/networksecurity/resource_network_security_security_profile_group.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ Format: organizations/{organization_id}.`,
113113
and may be sent on update and delete requests to ensure the client has an up-to-date
114114
value before proceeding.`,
115115
},
116-
"self_link": {
117-
Type: schema.TypeString,
118-
Computed: true,
119-
Description: `Server-defined URL of this resource.`,
120-
},
121116
"terraform_labels": {
122117
Type: schema.TypeMap,
123118
Computed: true,
@@ -245,9 +240,6 @@ func resourceNetworkSecuritySecurityProfileGroupRead(d *schema.ResourceData, met
245240
return transport_tpg.HandleNotFoundError(err, d, fmt.Sprintf("NetworkSecuritySecurityProfileGroup %q", d.Id()))
246241
}
247242

248-
if err := d.Set("self_link", flattenNetworkSecuritySecurityProfileGroupSelfLink(res["selfLink"], d, config)); err != nil {
249-
return fmt.Errorf("Error reading SecurityProfileGroup: %s", err)
250-
}
251243
if err := d.Set("create_time", flattenNetworkSecuritySecurityProfileGroupCreateTime(res["createTime"], d, config)); err != nil {
252244
return fmt.Errorf("Error reading SecurityProfileGroup: %s", err)
253245
}
@@ -438,10 +430,6 @@ func resourceNetworkSecuritySecurityProfileGroupImport(d *schema.ResourceData, m
438430
return []*schema.ResourceData{d}, nil
439431
}
440432

441-
func flattenNetworkSecuritySecurityProfileGroupSelfLink(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} {
442-
return v
443-
}
444-
445433
func flattenNetworkSecuritySecurityProfileGroupCreateTime(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} {
446434
return v
447435
}

website/docs/r/network_security_security_profile_group.html.markdown

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ In addition to the arguments listed above, the following computed attributes are
9797

9898
* `id` - an identifier for the resource with format `{{parent}}/locations/{{location}}/securityProfileGroups/{{name}}`
9999

100-
* `self_link` -
101-
Server-defined URL of this resource.
102-
103100
* `create_time` -
104101
Time the security profile group was created in UTC.
105102

0 commit comments

Comments
 (0)