Skip to content

Commit

Permalink
Automated DCL import.
Browse files Browse the repository at this point in the history
  - 9a82ceb Automatic import from cloud_mmv2_dcl_20220429_1531_RC00 by DCL Team <[email protected]>

GitOrigin-RevId: 9a82ceb
  • Loading branch information
DCL Team authored and copybara-github committed Apr 29, 2022
1 parent a383a34 commit ef54811
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 ef54811

Please sign in to comment.