diff --git a/services/google/compute/alpha/route.go b/services/google/compute/alpha/route.go index b6b2f35e26..b72f26b34a 100755 --- a/services/google/compute/alpha/route.go +++ b/services/google/compute/alpha/route.go @@ -1,11 +1,11 @@ // Copyright 2023 Google LLC. All Rights Reserved. -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// +// +// http://www.apache.org/licenses/LICENSE-2.0 +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,8 +20,8 @@ import ( "fmt" "time" - "google.golang.org/api/googleapi" "github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl" + "google.golang.org/api/googleapi" ) type Route struct { @@ -123,7 +123,7 @@ func (r *RouteWarning) String() string { func (r *RouteWarning) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } diff --git a/services/google/compute/beta/route.go b/services/google/compute/beta/route.go index 680152299e..95212d3814 100755 --- a/services/google/compute/beta/route.go +++ b/services/google/compute/beta/route.go @@ -1,11 +1,11 @@ // Copyright 2023 Google LLC. All Rights Reserved. -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// +// +// http://www.apache.org/licenses/LICENSE-2.0 +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,8 +20,8 @@ import ( "fmt" "time" - "google.golang.org/api/googleapi" "github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl" + "google.golang.org/api/googleapi" ) type Route struct { @@ -123,7 +123,7 @@ func (r *RouteWarning) String() string { func (r *RouteWarning) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } diff --git a/services/google/compute/route.go b/services/google/compute/route.go index 1d46420fb0..27a442a56b 100755 --- a/services/google/compute/route.go +++ b/services/google/compute/route.go @@ -1,11 +1,11 @@ // Copyright 2023 Google LLC. All Rights Reserved. -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// +// +// http://www.apache.org/licenses/LICENSE-2.0 +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,8 +20,8 @@ import ( "fmt" "time" - "google.golang.org/api/googleapi" "github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl" + "google.golang.org/api/googleapi" ) type Route struct { @@ -123,7 +123,7 @@ func (r *RouteWarning) String() string { func (r *RouteWarning) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } diff --git a/services/google/run/alpha/job.go b/services/google/run/alpha/job.go index 20b15b7b61..010fb101ee 100755 --- a/services/google/run/alpha/job.go +++ b/services/google/run/alpha/job.go @@ -1,11 +1,11 @@ // Copyright 2023 Google LLC. All Rights Reserved. -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// +// +// http://www.apache.org/licenses/LICENSE-2.0 +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -21,8 +21,8 @@ import ( "fmt" "time" - "google.golang.org/api/googleapi" "github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl" + "google.golang.org/api/googleapi" ) type Job struct { @@ -508,7 +508,7 @@ func (r *JobBinaryAuthorization) String() string { func (r *JobBinaryAuthorization) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -566,7 +566,7 @@ func (r *JobTemplate) String() string { func (r *JobTemplate) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -633,7 +633,7 @@ func (r *JobTemplateTemplate) String() string { func (r *JobTemplateTemplate) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -700,7 +700,7 @@ func (r *JobTemplateTemplateContainers) String() string { func (r *JobTemplateTemplateContainers) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -752,7 +752,7 @@ func (r *JobTemplateTemplateContainersEnv) String() string { func (r *JobTemplateTemplateContainersEnv) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -798,7 +798,7 @@ func (r *JobTemplateTemplateContainersEnvValueSource) String() string { func (r *JobTemplateTemplateContainersEnvValueSource) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -847,7 +847,7 @@ func (r *JobTemplateTemplateContainersEnvValueSourceSecretKeyRef) String() strin func (r *JobTemplateTemplateContainersEnvValueSourceSecretKeyRef) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -896,7 +896,7 @@ func (r *JobTemplateTemplateContainersResources) String() string { func (r *JobTemplateTemplateContainersResources) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -945,7 +945,7 @@ func (r *JobTemplateTemplateContainersPorts) String() string { func (r *JobTemplateTemplateContainersPorts) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -994,7 +994,7 @@ func (r *JobTemplateTemplateContainersVolumeMounts) String() string { func (r *JobTemplateTemplateContainersVolumeMounts) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -1046,7 +1046,7 @@ func (r *JobTemplateTemplateVolumes) String() string { func (r *JobTemplateTemplateVolumes) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -1098,7 +1098,7 @@ func (r *JobTemplateTemplateVolumesSecret) String() string { func (r *JobTemplateTemplateVolumesSecret) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -1150,7 +1150,7 @@ func (r *JobTemplateTemplateVolumesSecretItems) String() string { func (r *JobTemplateTemplateVolumesSecretItems) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -1196,7 +1196,7 @@ func (r *JobTemplateTemplateVolumesCloudSqlInstance) String() string { func (r *JobTemplateTemplateVolumesCloudSqlInstance) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -1245,7 +1245,7 @@ func (r *JobTemplateTemplateVPCAccess) String() string { func (r *JobTemplateTemplateVPCAccess) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -1318,7 +1318,7 @@ func (r *JobTerminalCondition) String() string { func (r *JobTerminalCondition) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -1385,7 +1385,7 @@ func (r *JobConditions) String() string { func (r *JobConditions) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -1434,7 +1434,7 @@ func (r *JobLatestSucceededExecution) String() string { func (r *JobLatestSucceededExecution) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -1483,7 +1483,7 @@ func (r *JobLatestCreatedExecution) String() string { func (r *JobLatestCreatedExecution) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } diff --git a/services/google/vmware/alpha/private_cloud.go b/services/google/vmware/alpha/private_cloud.go index a509256f6d..43368aee19 100755 --- a/services/google/vmware/alpha/private_cloud.go +++ b/services/google/vmware/alpha/private_cloud.go @@ -1,11 +1,11 @@ // Copyright 2023 Google LLC. All Rights Reserved. -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// +// +// http://www.apache.org/licenses/LICENSE-2.0 +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -21,8 +21,8 @@ import ( "fmt" "time" - "google.golang.org/api/googleapi" "github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl" + "google.golang.org/api/googleapi" ) type PrivateCloud struct { @@ -206,7 +206,7 @@ func (r *PrivateCloudNetworkConfig) String() string { func (r *PrivateCloudNetworkConfig) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -252,7 +252,7 @@ func (r *PrivateCloudManagementCluster) String() string { func (r *PrivateCloudManagementCluster) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -307,7 +307,7 @@ func (r *PrivateCloudHcx) String() string { func (r *PrivateCloudHcx) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -362,7 +362,7 @@ func (r *PrivateCloudNsx) String() string { func (r *PrivateCloudNsx) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } @@ -417,7 +417,7 @@ func (r *PrivateCloudVcenter) String() string { func (r *PrivateCloudVcenter) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) } diff --git a/services/google/vmware/alpha/vmware_engine_network.go b/services/google/vmware/alpha/vmware_engine_network.go index eacb9769df..e527b343ab 100755 --- a/services/google/vmware/alpha/vmware_engine_network.go +++ b/services/google/vmware/alpha/vmware_engine_network.go @@ -1,11 +1,11 @@ // Copyright 2023 Google LLC. All Rights Reserved. -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// +// +// http://www.apache.org/licenses/LICENSE-2.0 +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,8 +20,8 @@ import ( "fmt" "time" - "google.golang.org/api/googleapi" "github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl" + "google.golang.org/api/googleapi" ) type VmwareEngineNetwork struct { @@ -168,7 +168,7 @@ func (r *VmwareEngineNetworkVPCNetworks) String() string { func (r *VmwareEngineNetworkVPCNetworks) HashCode() string { // Placeholder for a more complex hash method that handles ordering, etc // Hash resource body for easy comparison later - hash := sha256.New().Sum([]byte(r.String())) + hash := sha256.Sum256([]byte(r.String())) return fmt.Sprintf("%x", hash) }