Skip to content

Commit

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

GitOrigin-RevId: 0cc6515df4c8f91b2ec1880687f428ed087996b2
  • Loading branch information
DCL Team authored and copybara-github committed Jul 20, 2022
1 parent 807f0b0 commit 10d12a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/google/run/alpha/service_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -3547,7 +3547,7 @@ func compareServiceTemplateNewStyle(d, a interface{}, fn dcl.FieldName) ([]*dcl.
diffs = append(diffs, ds...)
}

if ds, err := dcl.Diff(desired.ContainerConcurrency, actual.ContainerConcurrency, dcl.DiffInfo{OperationSelector: dcl.TriggersOperation("updateServiceUpdateServiceOperation")}, fn.AddNest("ContainerConcurrency")); len(ds) != 0 || err != nil {
if ds, err := dcl.Diff(desired.ContainerConcurrency, actual.ContainerConcurrency, dcl.DiffInfo{OperationSelector: dcl.TriggersOperation("updateServiceUpdateServiceOperation")}, fn.AddNest("MaxInstanceRequestConcurrency")); len(ds) != 0 || err != nil {
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -4695,7 +4695,7 @@ func expandServiceTemplate(c *Client, f *ServiceTemplate, res *Service) (map[str
m["vpcAccess"] = v
}
if v := f.ContainerConcurrency; !dcl.IsEmptyValueIndirect(v) {
m["containerConcurrency"] = v
m["maxInstanceRequestConcurrency"] = v
}
if v := f.Timeout; !dcl.IsEmptyValueIndirect(v) {
m["timeout"] = v
Expand Down Expand Up @@ -4738,7 +4738,7 @@ func flattenServiceTemplate(c *Client, i interface{}, res *Service) *ServiceTemp
r.Annotations = dcl.FlattenKeyValuePairs(m["annotations"])
r.Scaling = flattenServiceTemplateScaling(c, m["scaling"], res)
r.VPCAccess = flattenServiceTemplateVPCAccess(c, m["vpcAccess"], res)
r.ContainerConcurrency = dcl.FlattenInteger(m["containerConcurrency"])
r.ContainerConcurrency = dcl.FlattenInteger(m["maxInstanceRequestConcurrency"])
r.Timeout = dcl.FlattenString(m["timeout"])
r.ServiceAccount = dcl.FlattenString(m["serviceAccount"])
r.Containers = flattenServiceTemplateContainersSlice(c, m["containers"], res)
Expand Down

0 comments on commit 10d12a0

Please sign in to comment.