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

Add cloud identity group #6681

Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 6 additions & 0 deletions .changelog/3696.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```release-note:new-resource
`google_cloud_identity_group` (TPGB-only)
```
```release-note:note
added the `https://www.googleapis.com/auth/cloud-identity` scope to the provider by default
```
1 change: 1 addition & 0 deletions google/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ var VPCAccessDefaultBasePath = "https://vpcaccess.googleapis.com/v1/"
var defaultClientScopes = []string{
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-identity",
"https://www.googleapis.com/auth/ndev.clouddns.readwrite",
"https://www.googleapis.com/auth/devstorage.full_control",
"https://www.googleapis.com/auth/userinfo.email",
Expand Down
10 changes: 9 additions & 1 deletion google/resource_bigquery_data_transfer_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,15 @@ func resourceBigqueryDataTransferConfigCreate(d *schema.ResourceData, meta inter
// `name` is autogenerated from the api so needs to be set post-create
name, ok := res["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
respBody, ok := res["response"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}

name, ok = respBody.(map[string]interface{})["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}
}
d.Set("name", name.(string))
d.SetId(name.(string))
Expand Down
1 change: 1 addition & 0 deletions google/resource_cloud_identity_group_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package google
10 changes: 9 additions & 1 deletion google/resource_dialogflow_entity_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,15 @@ func resourceDialogflowEntityTypeCreate(d *schema.ResourceData, meta interface{}
// `name` is autogenerated from the api so needs to be set post-create
name, ok := res["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
respBody, ok := res["response"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}

name, ok = respBody.(map[string]interface{})["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}
}
d.Set("name", name.(string))
d.SetId(name.(string))
Expand Down
10 changes: 9 additions & 1 deletion google/resource_dialogflow_intent.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,15 @@ func resourceDialogflowIntentCreate(d *schema.ResourceData, meta interface{}) er
// `name` is autogenerated from the api so needs to be set post-create
name, ok := res["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
respBody, ok := res["response"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}

name, ok = respBody.(map[string]interface{})["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}
}
d.Set("name", name.(string))
d.SetId(name.(string))
Expand Down
10 changes: 9 additions & 1 deletion google/resource_iap_brand.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,15 @@ func resourceIapBrandCreate(d *schema.ResourceData, meta interface{}) error {
// `name` is autogenerated from the api so needs to be set post-create
name, ok := res["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
respBody, ok := res["response"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}

name, ok = respBody.(map[string]interface{})["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}
}
d.Set("name", name.(string))
d.SetId(name.(string))
Expand Down
10 changes: 9 additions & 1 deletion google/resource_logging_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,15 @@ func resourceLoggingMetricCreate(d *schema.ResourceData, meta interface{}) error
// `name` is autogenerated from the api so needs to be set post-create
name, ok := res["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
respBody, ok := res["response"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}

name, ok = respBody.(map[string]interface{})["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}
}
d.Set("name", name.(string))
d.SetId(name.(string))
Expand Down
10 changes: 9 additions & 1 deletion google/resource_monitoring_alert_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,15 @@ func resourceMonitoringAlertPolicyCreate(d *schema.ResourceData, meta interface{
// `name` is autogenerated from the api so needs to be set post-create
name, ok := res["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
respBody, ok := res["response"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}

name, ok = respBody.(map[string]interface{})["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}
}
d.Set("name", name.(string))
d.SetId(name.(string))
Expand Down
10 changes: 9 additions & 1 deletion google/resource_monitoring_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,15 @@ func resourceMonitoringGroupCreate(d *schema.ResourceData, meta interface{}) err
// `name` is autogenerated from the api so needs to be set post-create
name, ok := res["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
respBody, ok := res["response"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}

name, ok = respBody.(map[string]interface{})["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}
}
d.Set("name", name.(string))
d.SetId(name.(string))
Expand Down
10 changes: 9 additions & 1 deletion google/resource_monitoring_notification_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,15 @@ func resourceMonitoringNotificationChannelCreate(d *schema.ResourceData, meta in
// `name` is autogenerated from the api so needs to be set post-create
name, ok := res["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
respBody, ok := res["response"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}

name, ok = respBody.(map[string]interface{})["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}
}
d.Set("name", name.(string))
d.SetId(name.(string))
Expand Down
10 changes: 9 additions & 1 deletion google/resource_monitoring_uptime_check_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,15 @@ func resourceMonitoringUptimeCheckConfigCreate(d *schema.ResourceData, meta inte
// `name` is autogenerated from the api so needs to be set post-create
name, ok := res["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
respBody, ok := res["response"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}

name, ok = respBody.(map[string]interface{})["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}
}
d.Set("name", name.(string))
d.SetId(name.(string))
Expand Down
10 changes: 9 additions & 1 deletion google/resource_security_center_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,15 @@ func resourceSecurityCenterSourceCreate(d *schema.ResourceData, meta interface{}
// `name` is autogenerated from the api so needs to be set post-create
name, ok := res["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
respBody, ok := res["response"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}

name, ok = respBody.(map[string]interface{})["name"]
if !ok {
return fmt.Errorf("Create response didn't contain critical fields. Create may not have succeeded.")
}
}
d.Set("name", name.(string))
d.SetId(name.(string))
Expand Down