Skip to content

Commit

Permalink
Automatic import from cloud_mmv2_dcl_20220429_1531_RC00
Browse files Browse the repository at this point in the history
https://rapid.corp.google.com/#candidate/cloud_mmv2_dcl/cloud_mmv2_dcl_20220429_1531/cloud_mmv2_dcl_20220429_1531_RC00

Automated DCL push via Rapid
This build IS suitable for public release.

Bug:

Change-Id: I9a8fc8838e4e9e105c9cf7bb423605e63cc5fc75
  • Loading branch information
DCL Releaser committed Apr 29, 2022
1 parent 0f82a35 commit 9a82ceb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions services/google/filestore/alpha/instance_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1674,9 +1674,7 @@ func expandInstanceNetworks(c *Client, f *InstanceNetworks, res *Instance) (map[
}

m := make(map[string]interface{})
if v, err := dcl.SelfLinkToNameExpander(f.Network); err != nil {
return nil, fmt.Errorf("error expanding Network into network: %w", err)
} else if !dcl.IsEmptyValueIndirect(v) {
if v := f.Network; !dcl.IsEmptyValueIndirect(v) {
m["network"] = v
}
if v := f.Modes; v != nil {
Expand Down
4 changes: 1 addition & 3 deletions services/google/filestore/beta/instance_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1674,9 +1674,7 @@ func expandInstanceNetworks(c *Client, f *InstanceNetworks, res *Instance) (map[
}

m := make(map[string]interface{})
if v, err := dcl.SelfLinkToNameExpander(f.Network); err != nil {
return nil, fmt.Errorf("error expanding Network into network: %w", err)
} else if !dcl.IsEmptyValueIndirect(v) {
if v := f.Network; !dcl.IsEmptyValueIndirect(v) {
m["network"] = v
}
if v := f.Modes; v != nil {
Expand Down
4 changes: 1 addition & 3 deletions services/google/filestore/instance_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1674,9 +1674,7 @@ func expandInstanceNetworks(c *Client, f *InstanceNetworks, res *Instance) (map[
}

m := make(map[string]interface{})
if v, err := dcl.SelfLinkToNameExpander(f.Network); err != nil {
return nil, fmt.Errorf("error expanding Network into network: %w", err)
} else if !dcl.IsEmptyValueIndirect(v) {
if v := f.Network; !dcl.IsEmptyValueIndirect(v) {
m["network"] = v
}
if v := f.Modes; v != nil {
Expand Down
2 changes: 1 addition & 1 deletion services/google/filestore/samples/basic.instance.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"networks": [
{
"network": "default",
"network": "projects/{{project}}/global/networks/default",
"modes": ["MODE_IPV4"],
"reservedIPRange": "10.{{random_int}}.{{random_int}}.0/29"
}
Expand Down

0 comments on commit 9a82ceb

Please sign in to comment.