From 652d7c277da2f6774729064ab65d557875c81567 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 8 Jul 2021 07:56:23 -0700 Subject: [PATCH] chore(all): auto-regenerate gapics (#4393) This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: https://github.com/googleapis/go-genproto/pull/634 Changes: feat(pubsub): Add method signature for Subscriber.Pull without the deprecated return_immediately field. PiperOrigin-RevId: 383459959 Source-Link: https://github.com/googleapis/googleapis/commit/fe3cc5e650b8e52537f02549fe5fb49fc386f3a9 feat(monitoring/dashboard): added validation only mode when writing dashboards feat: added alert chart widget PiperOrigin-RevId: 383440655 Source-Link: https://github.com/googleapis/googleapis/commit/b5532bb5023faa22f8b44f6e14608646178a2ee7 build(vpcaccess): update package name PiperOrigin-RevId: 383434153 Source-Link: https://github.com/googleapis/googleapis/commit/a9d8182ce540d418af825e3b21558e8413f29e66 --- compute/apiv1/addresses_client.go | 2 +- compute/apiv1/autoscalers_client.go | 6 +-- compute/apiv1/backend_buckets_client.go | 8 ++-- compute/apiv1/backend_services_client.go | 12 ++--- compute/apiv1/disks_client.go | 16 +++---- compute/apiv1/doc.go | 2 +- compute/apiv1/external_vpn_gateways_client.go | 6 +-- compute/apiv1/firewall_policies_client.go | 14 +++--- compute/apiv1/firewalls_client.go | 6 +-- compute/apiv1/forwarding_rules_client.go | 8 ++-- compute/apiv1/global_addresses_client.go | 2 +- .../apiv1/global_forwarding_rules_client.go | 8 ++-- .../global_network_endpoint_groups_client.go | 6 +-- ...global_public_delegated_prefixes_client.go | 4 +- compute/apiv1/health_checks_client.go | 6 +-- compute/apiv1/images_client.go | 12 ++--- .../apiv1/instance_group_managers_client.go | 24 +++++----- compute/apiv1/instance_groups_client.go | 10 ++-- compute/apiv1/instance_templates_client.go | 6 +-- compute/apiv1/instances_client.go | 46 +++++++++---------- .../apiv1/interconnect_attachments_client.go | 4 +- compute/apiv1/interconnects_client.go | 4 +- compute/apiv1/license_codes_client.go | 2 +- compute/apiv1/licenses_client.go | 6 +-- .../apiv1/network_endpoint_groups_client.go | 10 ++-- compute/apiv1/networks_client.go | 10 ++-- compute/apiv1/node_groups_client.go | 14 +++--- compute/apiv1/node_templates_client.go | 6 +-- compute/apiv1/packet_mirrorings_client.go | 6 +-- compute/apiv1/projects_client.go | 16 +++---- .../public_advertised_prefixes_client.go | 4 +- .../apiv1/public_delegated_prefixes_client.go | 4 +- compute/apiv1/region_autoscalers_client.go | 6 +-- .../apiv1/region_backend_services_client.go | 8 ++-- compute/apiv1/region_commitments_client.go | 2 +- compute/apiv1/region_disks_client.go | 16 +++---- .../region_health_check_services_client.go | 4 +- compute/apiv1/region_health_checks_client.go | 6 +-- .../region_instance_group_managers_client.go | 24 +++++----- .../apiv1/region_instance_groups_client.go | 4 +- compute/apiv1/region_instances_client.go | 2 +- .../region_network_endpoint_groups_client.go | 2 +- .../region_notification_endpoints_client.go | 2 +- .../apiv1/region_ssl_certificates_client.go | 2 +- .../region_target_http_proxies_client.go | 4 +- .../region_target_https_proxies_client.go | 6 +-- compute/apiv1/region_url_maps_client.go | 8 ++-- compute/apiv1/reservations_client.go | 8 ++-- compute/apiv1/resource_policies_client.go | 6 +-- compute/apiv1/routers_client.go | 8 ++-- compute/apiv1/routes_client.go | 2 +- compute/apiv1/security_policies_client.go | 8 ++-- compute/apiv1/snapshots_client.go | 6 +-- compute/apiv1/ssl_certificates_client.go | 2 +- compute/apiv1/ssl_policies_client.go | 4 +- compute/apiv1/subnetworks_client.go | 12 ++--- compute/apiv1/target_grpc_proxies_client.go | 4 +- compute/apiv1/target_http_proxies_client.go | 6 +-- compute/apiv1/target_https_proxies_client.go | 12 ++--- compute/apiv1/target_instances_client.go | 2 +- compute/apiv1/target_pools_client.go | 14 +++--- compute/apiv1/target_ssl_proxies_client.go | 10 ++-- compute/apiv1/target_tcp_proxies_client.go | 6 +-- compute/apiv1/target_vpn_gateways_client.go | 2 +- compute/apiv1/url_maps_client.go | 10 ++-- compute/apiv1/vpn_gateways_client.go | 6 +-- compute/apiv1/vpn_tunnels_client.go | 2 +- .../dashboard/apiv1/dashboards_client.go | 8 +--- monitoring/dashboard/apiv1/doc.go | 2 +- pubsub/apiv1/doc.go | 2 +- pubsub/go.mod | 2 +- pubsub/go.sum | 4 +- vpcaccess/apiv1/doc.go | 2 +- 73 files changed, 266 insertions(+), 270 deletions(-) diff --git a/compute/apiv1/addresses_client.go b/compute/apiv1/addresses_client.go index dee8551455f..6764aff272d 100644 --- a/compute/apiv1/addresses_client.go +++ b/compute/apiv1/addresses_client.go @@ -322,7 +322,7 @@ func (c *addressesRESTClient) Get(ctx context.Context, req *computepb.GetAddress // Insert creates an address resource in the specified project by using the data included in the request. func (c *addressesRESTClient) Insert(ctx context.Context, req *computepb.InsertAddressRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAddressResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/autoscalers_client.go b/compute/apiv1/autoscalers_client.go index 393a79fe905..4c1dcb8bba4 100644 --- a/compute/apiv1/autoscalers_client.go +++ b/compute/apiv1/autoscalers_client.go @@ -336,7 +336,7 @@ func (c *autoscalersRESTClient) Get(ctx context.Context, req *computepb.GetAutos // Insert creates an autoscaler in the specified project using the data included in the request. func (c *autoscalersRESTClient) Insert(ctx context.Context, req *computepb.InsertAutoscalerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAutoscalerResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -443,7 +443,7 @@ func (c *autoscalersRESTClient) List(ctx context.Context, req *computepb.ListAut // Patch updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *autoscalersRESTClient) Patch(ctx context.Context, req *computepb.PatchAutoscalerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAutoscalerResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -497,7 +497,7 @@ func (c *autoscalersRESTClient) Patch(ctx context.Context, req *computepb.PatchA // Update updates an autoscaler in the specified project using the data included in the request. func (c *autoscalersRESTClient) Update(ctx context.Context, req *computepb.UpdateAutoscalerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAutoscalerResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/backend_buckets_client.go b/compute/apiv1/backend_buckets_client.go index 3e24c920372..b7b1ff8bf8d 100644 --- a/compute/apiv1/backend_buckets_client.go +++ b/compute/apiv1/backend_buckets_client.go @@ -203,7 +203,7 @@ func (c *backendBucketsRESTClient) Connection() *grpc.ClientConn { // AddSignedUrlKey adds a key for validating requests with signed URLs for this backend bucket. func (c *backendBucketsRESTClient) AddSignedUrlKey(ctx context.Context, req *computepb.AddSignedUrlKeyBackendBucketRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSignedUrlKeyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -382,7 +382,7 @@ func (c *backendBucketsRESTClient) Get(ctx context.Context, req *computepb.GetBa // Insert creates a BackendBucket resource in the specified project using the data included in the request. func (c *backendBucketsRESTClient) Insert(ctx context.Context, req *computepb.InsertBackendBucketRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBackendBucketResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -489,7 +489,7 @@ func (c *backendBucketsRESTClient) List(ctx context.Context, req *computepb.List // Patch updates the specified BackendBucket resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *backendBucketsRESTClient) Patch(ctx context.Context, req *computepb.PatchBackendBucketRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBackendBucketResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -540,7 +540,7 @@ func (c *backendBucketsRESTClient) Patch(ctx context.Context, req *computepb.Pat // Update updates the specified BackendBucket resource with the data included in the request. func (c *backendBucketsRESTClient) Update(ctx context.Context, req *computepb.UpdateBackendBucketRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBackendBucketResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/backend_services_client.go b/compute/apiv1/backend_services_client.go index 6dfc04caf21..903600d167b 100644 --- a/compute/apiv1/backend_services_client.go +++ b/compute/apiv1/backend_services_client.go @@ -228,7 +228,7 @@ func (c *backendServicesRESTClient) Connection() *grpc.ClientConn { // AddSignedUrlKey adds a key for validating requests with signed URLs for this backend service. func (c *backendServicesRESTClient) AddSignedUrlKey(ctx context.Context, req *computepb.AddSignedUrlKeyBackendServiceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSignedUrlKeyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -470,7 +470,7 @@ func (c *backendServicesRESTClient) Get(ctx context.Context, req *computepb.GetB // // { “group”: “/zones/us-east1-b/instanceGroups/lb-backend-example” } func (c *backendServicesRESTClient) GetHealth(ctx context.Context, req *computepb.GetHealthBackendServiceRequest, opts ...gax.CallOption) (*computepb.BackendServiceGroupHealth, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetResourceGroupReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -514,7 +514,7 @@ func (c *backendServicesRESTClient) GetHealth(ctx context.Context, req *computep // Insert creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview. func (c *backendServicesRESTClient) Insert(ctx context.Context, req *computepb.InsertBackendServiceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBackendServiceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -621,7 +621,7 @@ func (c *backendServicesRESTClient) List(ctx context.Context, req *computepb.Lis // Patch patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *backendServicesRESTClient) Patch(ctx context.Context, req *computepb.PatchBackendServiceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBackendServiceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -672,7 +672,7 @@ func (c *backendServicesRESTClient) Patch(ctx context.Context, req *computepb.Pa // SetSecurityPolicy sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview func (c *backendServicesRESTClient) SetSecurityPolicy(ctx context.Context, req *computepb.SetSecurityPolicyBackendServiceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSecurityPolicyReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -723,7 +723,7 @@ func (c *backendServicesRESTClient) SetSecurityPolicy(ctx context.Context, req * // Update updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview. func (c *backendServicesRESTClient) Update(ctx context.Context, req *computepb.UpdateBackendServiceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBackendServiceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/disks_client.go b/compute/apiv1/disks_client.go index 37dea8eaf61..d5545baf4ee 100644 --- a/compute/apiv1/disks_client.go +++ b/compute/apiv1/disks_client.go @@ -238,7 +238,7 @@ func (c *disksRESTClient) Connection() *grpc.ClientConn { // AddResourcePolicies adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation. func (c *disksRESTClient) AddResourcePolicies(ctx context.Context, req *computepb.AddResourcePoliciesDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetDisksAddResourcePoliciesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -348,7 +348,7 @@ func (c *disksRESTClient) AggregatedList(ctx context.Context, req *computepb.Agg // CreateSnapshot creates a snapshot of a specified persistent disk. func (c *disksRESTClient) CreateSnapshot(ctx context.Context, req *computepb.CreateSnapshotDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSnapshotResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -527,7 +527,7 @@ func (c *disksRESTClient) GetIamPolicy(ctx context.Context, req *computepb.GetIa // Insert creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, or sourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property. func (c *disksRESTClient) Insert(ctx context.Context, req *computepb.InsertDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetDiskResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -637,7 +637,7 @@ func (c *disksRESTClient) List(ctx context.Context, req *computepb.ListDisksRequ // RemoveResourcePolicies removes resource policies from a disk. func (c *disksRESTClient) RemoveResourcePolicies(ctx context.Context, req *computepb.RemoveResourcePoliciesDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetDisksRemoveResourcePoliciesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -688,7 +688,7 @@ func (c *disksRESTClient) RemoveResourcePolicies(ctx context.Context, req *compu // Resize resizes the specified persistent disk. You can only increase the size of the disk. func (c *disksRESTClient) Resize(ctx context.Context, req *computepb.ResizeDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetDisksResizeRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -739,7 +739,7 @@ func (c *disksRESTClient) Resize(ctx context.Context, req *computepb.ResizeDiskR // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *disksRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyDiskRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetZoneSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -783,7 +783,7 @@ func (c *disksRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIa // SetLabels sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation. func (c *disksRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabelsDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetZoneSetLabelsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -834,7 +834,7 @@ func (c *disksRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabel // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *disksRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsDiskRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/doc.go b/compute/apiv1/doc.go index fab61754dbf..9557b455fe7 100644 --- a/compute/apiv1/doc.go +++ b/compute/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210707" +const versionClient = "20210708" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/compute/apiv1/external_vpn_gateways_client.go b/compute/apiv1/external_vpn_gateways_client.go index fc1a32cebe6..26e5de09e62 100644 --- a/compute/apiv1/external_vpn_gateways_client.go +++ b/compute/apiv1/external_vpn_gateways_client.go @@ -270,7 +270,7 @@ func (c *externalVpnGatewaysRESTClient) Get(ctx context.Context, req *computepb. // Insert creates a ExternalVpnGateway in the specified project using the data included in the request. func (c *externalVpnGatewaysRESTClient) Insert(ctx context.Context, req *computepb.InsertExternalVpnGatewayRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetExternalVpnGatewayResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -377,7 +377,7 @@ func (c *externalVpnGatewaysRESTClient) List(ctx context.Context, req *computepb // SetLabels sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation. func (c *externalVpnGatewaysRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabelsExternalVpnGatewayRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalSetLabelsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -421,7 +421,7 @@ func (c *externalVpnGatewaysRESTClient) SetLabels(ctx context.Context, req *comp // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *externalVpnGatewaysRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsExternalVpnGatewayRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/firewall_policies_client.go b/compute/apiv1/firewall_policies_client.go index 628cbd02c9d..700113b615d 100644 --- a/compute/apiv1/firewall_policies_client.go +++ b/compute/apiv1/firewall_policies_client.go @@ -273,7 +273,7 @@ func (c *firewallPoliciesRESTClient) Connection() *grpc.ClientConn { // AddAssociation inserts an association for the specified firewall policy. func (c *firewallPoliciesRESTClient) AddAssociation(ctx context.Context, req *computepb.AddAssociationFirewallPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetFirewallPolicyAssociationResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -327,7 +327,7 @@ func (c *firewallPoliciesRESTClient) AddAssociation(ctx context.Context, req *co // AddRule inserts a rule into a firewall policy. func (c *firewallPoliciesRESTClient) AddRule(ctx context.Context, req *computepb.AddRuleFirewallPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetFirewallPolicyRuleResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -638,7 +638,7 @@ func (c *firewallPoliciesRESTClient) GetRule(ctx context.Context, req *computepb // Insert creates a new policy in the specified project using the data included in the request. func (c *firewallPoliciesRESTClient) Insert(ctx context.Context, req *computepb.InsertFirewallPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetFirewallPolicyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -842,7 +842,7 @@ func (c *firewallPoliciesRESTClient) Move(ctx context.Context, req *computepb.Mo // Patch patches the specified policy with the data included in the request. func (c *firewallPoliciesRESTClient) Patch(ctx context.Context, req *computepb.PatchFirewallPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetFirewallPolicyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -893,7 +893,7 @@ func (c *firewallPoliciesRESTClient) Patch(ctx context.Context, req *computepb.P // PatchRule patches a rule of the specified priority. func (c *firewallPoliciesRESTClient) PatchRule(ctx context.Context, req *computepb.PatchRuleFirewallPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetFirewallPolicyRuleResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1041,7 +1041,7 @@ func (c *firewallPoliciesRESTClient) RemoveRule(ctx context.Context, req *comput // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *firewallPoliciesRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyFirewallPolicyRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalOrganizationSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1085,7 +1085,7 @@ func (c *firewallPoliciesRESTClient) SetIamPolicy(ctx context.Context, req *comp // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *firewallPoliciesRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsFirewallPolicyRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/firewalls_client.go b/compute/apiv1/firewalls_client.go index ab79288e262..45f85cd2d41 100644 --- a/compute/apiv1/firewalls_client.go +++ b/compute/apiv1/firewalls_client.go @@ -270,7 +270,7 @@ func (c *firewallsRESTClient) Get(ctx context.Context, req *computepb.GetFirewal // Insert creates a firewall rule in the specified project using the data included in the request. func (c *firewallsRESTClient) Insert(ctx context.Context, req *computepb.InsertFirewallRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetFirewallResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -377,7 +377,7 @@ func (c *firewallsRESTClient) List(ctx context.Context, req *computepb.ListFirew // Patch updates the specified firewall rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *firewallsRESTClient) Patch(ctx context.Context, req *computepb.PatchFirewallRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetFirewallResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -428,7 +428,7 @@ func (c *firewallsRESTClient) Patch(ctx context.Context, req *computepb.PatchFir // Update updates the specified firewall rule with the data included in the request. Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead. func (c *firewallsRESTClient) Update(ctx context.Context, req *computepb.UpdateFirewallRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetFirewallResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/forwarding_rules_client.go b/compute/apiv1/forwarding_rules_client.go index 521af0b353f..6a5c52e2ac4 100644 --- a/compute/apiv1/forwarding_rules_client.go +++ b/compute/apiv1/forwarding_rules_client.go @@ -343,7 +343,7 @@ func (c *forwardingRulesRESTClient) Get(ctx context.Context, req *computepb.GetF // Insert creates a ForwardingRule resource in the specified project and region using the data included in the request. func (c *forwardingRulesRESTClient) Insert(ctx context.Context, req *computepb.InsertForwardingRuleRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetForwardingRuleResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -450,7 +450,7 @@ func (c *forwardingRulesRESTClient) List(ctx context.Context, req *computepb.Lis // Patch updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. func (c *forwardingRulesRESTClient) Patch(ctx context.Context, req *computepb.PatchForwardingRuleRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetForwardingRuleResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -501,7 +501,7 @@ func (c *forwardingRulesRESTClient) Patch(ctx context.Context, req *computepb.Pa // SetLabels sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation. func (c *forwardingRulesRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabelsForwardingRuleRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionSetLabelsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -552,7 +552,7 @@ func (c *forwardingRulesRESTClient) SetLabels(ctx context.Context, req *computep // SetTarget changes target URL for forwarding rule. The new target should be of the same type as the old target. func (c *forwardingRulesRESTClient) SetTarget(ctx context.Context, req *computepb.SetTargetForwardingRuleRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/global_addresses_client.go b/compute/apiv1/global_addresses_client.go index f7814d32923..fc6b425a873 100644 --- a/compute/apiv1/global_addresses_client.go +++ b/compute/apiv1/global_addresses_client.go @@ -256,7 +256,7 @@ func (c *globalAddressesRESTClient) Get(ctx context.Context, req *computepb.GetG // Insert creates an address resource in the specified project by using the data included in the request. func (c *globalAddressesRESTClient) Insert(ctx context.Context, req *computepb.InsertGlobalAddressRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAddressResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/global_forwarding_rules_client.go b/compute/apiv1/global_forwarding_rules_client.go index 124a27fe619..b230bc65599 100644 --- a/compute/apiv1/global_forwarding_rules_client.go +++ b/compute/apiv1/global_forwarding_rules_client.go @@ -277,7 +277,7 @@ func (c *globalForwardingRulesRESTClient) Get(ctx context.Context, req *computep // Insert creates a GlobalForwardingRule resource in the specified project using the data included in the request. func (c *globalForwardingRulesRESTClient) Insert(ctx context.Context, req *computepb.InsertGlobalForwardingRuleRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetForwardingRuleResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -384,7 +384,7 @@ func (c *globalForwardingRulesRESTClient) List(ctx context.Context, req *compute // Patch updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. func (c *globalForwardingRulesRESTClient) Patch(ctx context.Context, req *computepb.PatchGlobalForwardingRuleRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetForwardingRuleResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -435,7 +435,7 @@ func (c *globalForwardingRulesRESTClient) Patch(ctx context.Context, req *comput // SetLabels sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation. func (c *globalForwardingRulesRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabelsGlobalForwardingRuleRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalSetLabelsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -479,7 +479,7 @@ func (c *globalForwardingRulesRESTClient) SetLabels(ctx context.Context, req *co // SetTarget changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target. func (c *globalForwardingRulesRESTClient) SetTarget(ctx context.Context, req *computepb.SetTargetGlobalForwardingRuleRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/global_network_endpoint_groups_client.go b/compute/apiv1/global_network_endpoint_groups_client.go index 48ce9031cac..8591df90da4 100644 --- a/compute/apiv1/global_network_endpoint_groups_client.go +++ b/compute/apiv1/global_network_endpoint_groups_client.go @@ -196,7 +196,7 @@ func (c *globalNetworkEndpointGroupsRESTClient) Connection() *grpc.ClientConn { // AttachNetworkEndpoints attach a network endpoint to the specified network endpoint group. func (c *globalNetworkEndpointGroupsRESTClient) AttachNetworkEndpoints(ctx context.Context, req *computepb.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalNetworkEndpointGroupsAttachEndpointsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -291,7 +291,7 @@ func (c *globalNetworkEndpointGroupsRESTClient) Delete(ctx context.Context, req // DetachNetworkEndpoints detach the network endpoint from the specified network endpoint group. func (c *globalNetworkEndpointGroupsRESTClient) DetachNetworkEndpoints(ctx context.Context, req *computepb.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalNetworkEndpointGroupsDetachEndpointsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -379,7 +379,7 @@ func (c *globalNetworkEndpointGroupsRESTClient) Get(ctx context.Context, req *co // Insert creates a network endpoint group in the specified project using the parameters that are included in the request. func (c *globalNetworkEndpointGroupsRESTClient) Insert(ctx context.Context, req *computepb.InsertGlobalNetworkEndpointGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworkEndpointGroupResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/global_public_delegated_prefixes_client.go b/compute/apiv1/global_public_delegated_prefixes_client.go index ed3af14a03e..31ee879bfc2 100644 --- a/compute/apiv1/global_public_delegated_prefixes_client.go +++ b/compute/apiv1/global_public_delegated_prefixes_client.go @@ -263,7 +263,7 @@ func (c *globalPublicDelegatedPrefixesRESTClient) Get(ctx context.Context, req * // Insert creates a global PublicDelegatedPrefix in the specified project using the parameters that are included in the request. func (c *globalPublicDelegatedPrefixesRESTClient) Insert(ctx context.Context, req *computepb.InsertGlobalPublicDelegatedPrefixeRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetPublicDelegatedPrefixResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -370,7 +370,7 @@ func (c *globalPublicDelegatedPrefixesRESTClient) List(ctx context.Context, req // Patch patches the specified global PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. func (c *globalPublicDelegatedPrefixesRESTClient) Patch(ctx context.Context, req *computepb.PatchGlobalPublicDelegatedPrefixeRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetPublicDelegatedPrefixResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/health_checks_client.go b/compute/apiv1/health_checks_client.go index c4552d16768..fe9a602be28 100644 --- a/compute/apiv1/health_checks_client.go +++ b/compute/apiv1/health_checks_client.go @@ -336,7 +336,7 @@ func (c *healthChecksRESTClient) Get(ctx context.Context, req *computepb.GetHeal // Insert creates a HealthCheck resource in the specified project using the data included in the request. func (c *healthChecksRESTClient) Insert(ctx context.Context, req *computepb.InsertHealthCheckRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetHealthCheckResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -443,7 +443,7 @@ func (c *healthChecksRESTClient) List(ctx context.Context, req *computepb.ListHe // Patch updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *healthChecksRESTClient) Patch(ctx context.Context, req *computepb.PatchHealthCheckRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetHealthCheckResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -494,7 +494,7 @@ func (c *healthChecksRESTClient) Patch(ctx context.Context, req *computepb.Patch // Update updates a HealthCheck resource in the specified project using the data included in the request. func (c *healthChecksRESTClient) Update(ctx context.Context, req *computepb.UpdateHealthCheckRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetHealthCheckResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/images_client.go b/compute/apiv1/images_client.go index 5ca8bdf088a..96af3a5f654 100644 --- a/compute/apiv1/images_client.go +++ b/compute/apiv1/images_client.go @@ -272,7 +272,7 @@ func (c *imagesRESTClient) Delete(ctx context.Context, req *computepb.DeleteImag // // If an empty request body is given, clears the deprecation status instead. func (c *imagesRESTClient) Deprecate(ctx context.Context, req *computepb.DeprecateImageRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetDeprecationStatusResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -441,7 +441,7 @@ func (c *imagesRESTClient) GetIamPolicy(ctx context.Context, req *computepb.GetI // Insert creates an image in the specified project using the data included in the request. func (c *imagesRESTClient) Insert(ctx context.Context, req *computepb.InsertImageRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetImageResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -551,7 +551,7 @@ func (c *imagesRESTClient) List(ctx context.Context, req *computepb.ListImagesRe // Patch patches the specified image with the data included in the request. Only the following fields can be modified: family, description, deprecation status. func (c *imagesRESTClient) Patch(ctx context.Context, req *computepb.PatchImageRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetImageResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -602,7 +602,7 @@ func (c *imagesRESTClient) Patch(ctx context.Context, req *computepb.PatchImageR // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *imagesRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyImageRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -646,7 +646,7 @@ func (c *imagesRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetI // SetLabels sets the labels on an image. To learn more about labels, read the Labeling Resources documentation. func (c *imagesRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabelsImageRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalSetLabelsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -690,7 +690,7 @@ func (c *imagesRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabe // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *imagesRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsImageRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/instance_group_managers_client.go b/compute/apiv1/instance_group_managers_client.go index 71b5dae5f0c..1a4b4eb0f40 100644 --- a/compute/apiv1/instance_group_managers_client.go +++ b/compute/apiv1/instance_group_managers_client.go @@ -313,7 +313,7 @@ func (c *instanceGroupManagersRESTClient) Connection() *grpc.ClientConn { // // You can specify a maximum of 1000 instances with this method per request. func (c *instanceGroupManagersRESTClient) AbandonInstances(ctx context.Context, req *computepb.AbandonInstancesInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagersAbandonInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -423,7 +423,7 @@ func (c *instanceGroupManagersRESTClient) AggregatedList(ctx context.Context, re // ApplyUpdatesToInstances applies changes to selected instances on the managed instance group. This method can be used to apply new overrides and/or new versions. func (c *instanceGroupManagersRESTClient) ApplyUpdatesToInstances(ctx context.Context, req *computepb.ApplyUpdatesToInstancesInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagersApplyUpdatesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -467,7 +467,7 @@ func (c *instanceGroupManagersRESTClient) ApplyUpdatesToInstances(ctx context.Co // CreateInstances creates instances with per-instance configs in this managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method. func (c *instanceGroupManagersRESTClient) CreateInstances(ctx context.Context, req *computepb.CreateInstancesInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagersCreateInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -566,7 +566,7 @@ func (c *instanceGroupManagersRESTClient) Delete(ctx context.Context, req *compu // // You can specify a maximum of 1000 instances with this method per request. func (c *instanceGroupManagersRESTClient) DeleteInstances(ctx context.Context, req *computepb.DeleteInstancesInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagersDeleteInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -617,7 +617,7 @@ func (c *instanceGroupManagersRESTClient) DeleteInstances(ctx context.Context, r // DeletePerInstanceConfigs deletes selected per-instance configs for the managed instance group. func (c *instanceGroupManagersRESTClient) DeletePerInstanceConfigs(ctx context.Context, req *computepb.DeletePerInstanceConfigsInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagersDeletePerInstanceConfigsReqResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -700,7 +700,7 @@ func (c *instanceGroupManagersRESTClient) Get(ctx context.Context, req *computep // // A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit. func (c *instanceGroupManagersRESTClient) Insert(ctx context.Context, req *computepb.InsertInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagerResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -975,7 +975,7 @@ func (c *instanceGroupManagersRESTClient) ListPerInstanceConfigs(ctx context.Con // Patch updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listManagedInstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *instanceGroupManagersRESTClient) Patch(ctx context.Context, req *computepb.PatchInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagerResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1026,7 +1026,7 @@ func (c *instanceGroupManagersRESTClient) Patch(ctx context.Context, req *comput // PatchPerInstanceConfigs inserts or patches per-instance configs for the managed instance group. perInstanceConfig.name (at http://perInstanceConfig.name) serves as a key used to distinguish whether to perform insert or patch. func (c *instanceGroupManagersRESTClient) PatchPerInstanceConfigs(ctx context.Context, req *computepb.PatchPerInstanceConfigsInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagersPatchPerInstanceConfigsReqResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1081,7 +1081,7 @@ func (c *instanceGroupManagersRESTClient) PatchPerInstanceConfigs(ctx context.Co // // You can specify a maximum of 1000 instances with this method per request. func (c *instanceGroupManagersRESTClient) RecreateInstances(ctx context.Context, req *computepb.RecreateInstancesInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagersRecreateInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1187,7 +1187,7 @@ func (c *instanceGroupManagersRESTClient) Resize(ctx context.Context, req *compu // SetInstanceTemplate specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group’s updatePolicy.type to PROACTIVE. func (c *instanceGroupManagersRESTClient) SetInstanceTemplate(ctx context.Context, req *computepb.SetInstanceTemplateInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagersSetInstanceTemplateRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1238,7 +1238,7 @@ func (c *instanceGroupManagersRESTClient) SetInstanceTemplate(ctx context.Contex // SetTargetPools modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is marked DONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group. func (c *instanceGroupManagersRESTClient) SetTargetPools(ctx context.Context, req *computepb.SetTargetPoolsInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagersSetTargetPoolsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1289,7 +1289,7 @@ func (c *instanceGroupManagersRESTClient) SetTargetPools(ctx context.Context, re // UpdatePerInstanceConfigs inserts or updates per-instance configs for the managed instance group. perInstanceConfig.name (at http://perInstanceConfig.name) serves as a key used to distinguish whether to perform insert or patch. func (c *instanceGroupManagersRESTClient) UpdatePerInstanceConfigs(ctx context.Context, req *computepb.UpdatePerInstanceConfigsInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagersUpdatePerInstanceConfigsReqResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/instance_groups_client.go b/compute/apiv1/instance_groups_client.go index 7c85f51c24a..06820b63577 100644 --- a/compute/apiv1/instance_groups_client.go +++ b/compute/apiv1/instance_groups_client.go @@ -216,7 +216,7 @@ func (c *instanceGroupsRESTClient) Connection() *grpc.ClientConn { // AddInstances adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information. func (c *instanceGroupsRESTClient) AddInstances(ctx context.Context, req *computepb.AddInstancesInstanceGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupsAddInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -409,7 +409,7 @@ func (c *instanceGroupsRESTClient) Get(ctx context.Context, req *computepb.GetIn // Insert creates an instance group in the specified project using the parameters that are included in the request. func (c *instanceGroupsRESTClient) Insert(ctx context.Context, req *computepb.InsertInstanceGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -518,7 +518,7 @@ func (c *instanceGroupsRESTClient) List(ctx context.Context, req *computepb.List // ListInstances lists the instances in the specified instance group. The orderBy query parameter is not supported. func (c *instanceGroupsRESTClient) ListInstances(ctx context.Context, req *computepb.ListInstancesInstanceGroupsRequest, opts ...gax.CallOption) (*computepb.InstanceGroupsListInstances, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupsListInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -583,7 +583,7 @@ func (c *instanceGroupsRESTClient) ListInstances(ctx context.Context, req *compu // // If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted. func (c *instanceGroupsRESTClient) RemoveInstances(ctx context.Context, req *computepb.RemoveInstancesInstanceGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupsRemoveInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -634,7 +634,7 @@ func (c *instanceGroupsRESTClient) RemoveInstances(ctx context.Context, req *com // SetNamedPorts sets the named ports for the specified instance group. func (c *instanceGroupsRESTClient) SetNamedPorts(ctx context.Context, req *computepb.SetNamedPortsInstanceGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupsSetNamedPortsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/instance_templates_client.go b/compute/apiv1/instance_templates_client.go index 43f9239088f..72dde6a4c43 100644 --- a/compute/apiv1/instance_templates_client.go +++ b/compute/apiv1/instance_templates_client.go @@ -321,7 +321,7 @@ func (c *instanceTemplatesRESTClient) GetIamPolicy(ctx context.Context, req *com // Insert creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template. func (c *instanceTemplatesRESTClient) Insert(ctx context.Context, req *computepb.InsertInstanceTemplateRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceTemplateResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -428,7 +428,7 @@ func (c *instanceTemplatesRESTClient) List(ctx context.Context, req *computepb.L // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *instanceTemplatesRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyInstanceTemplateRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -472,7 +472,7 @@ func (c *instanceTemplatesRESTClient) SetIamPolicy(ctx context.Context, req *com // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *instanceTemplatesRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsInstanceTemplateRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/instances_client.go b/compute/apiv1/instances_client.go index e0adbc48622..77e2f8dd33f 100644 --- a/compute/apiv1/instances_client.go +++ b/compute/apiv1/instances_client.go @@ -441,7 +441,7 @@ func (c *instancesRESTClient) Connection() *grpc.ClientConn { // AddAccessConfig adds an access config to an instance’s network interface. func (c *instancesRESTClient) AddAccessConfig(ctx context.Context, req *computepb.AddAccessConfigInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAccessConfigResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -495,7 +495,7 @@ func (c *instancesRESTClient) AddAccessConfig(ctx context.Context, req *computep // AddResourcePolicies adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations. func (c *instancesRESTClient) AddResourcePolicies(ctx context.Context, req *computepb.AddResourcePoliciesInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstancesAddResourcePoliciesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -605,7 +605,7 @@ func (c *instancesRESTClient) AggregatedList(ctx context.Context, req *computepb // AttachDisk attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance. func (c *instancesRESTClient) AttachDisk(ctx context.Context, req *computepb.AttachDiskInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAttachedDiskResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -659,7 +659,7 @@ func (c *instancesRESTClient) AttachDisk(ctx context.Context, req *computepb.Att // BulkInsert creates multiple instances. Count specifies the number of instances to create. func (c *instancesRESTClient) BulkInsert(ctx context.Context, req *computepb.BulkInsertInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBulkInsertInstanceResourceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1144,7 +1144,7 @@ func (c *instancesRESTClient) GetShieldedInstanceIdentity(ctx context.Context, r // Insert creates an instance resource in the specified project using the data included in the request. func (c *instancesRESTClient) Insert(ctx context.Context, req *computepb.InsertInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1310,7 +1310,7 @@ func (c *instancesRESTClient) ListReferrers(ctx context.Context, req *computepb. // RemoveResourcePolicies removes resource policies from an instance. func (c *instancesRESTClient) RemoveResourcePolicies(ctx context.Context, req *computepb.RemoveResourcePoliciesInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstancesRemoveResourcePoliciesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1502,7 +1502,7 @@ func (c *instancesRESTClient) SetDiskAutoDelete(ctx context.Context, req *comput // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *instancesRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyInstanceRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetZoneSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1546,7 +1546,7 @@ func (c *instancesRESTClient) SetIamPolicy(ctx context.Context, req *computepb.S // SetLabels sets labels on an instance. To learn more about labels, read the Labeling Resources documentation. func (c *instancesRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabelsInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstancesSetLabelsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1597,7 +1597,7 @@ func (c *instancesRESTClient) SetLabels(ctx context.Context, req *computepb.SetL // SetMachineResources changes the number and/or type of accelerator for a stopped instance to the values specified in the request. func (c *instancesRESTClient) SetMachineResources(ctx context.Context, req *computepb.SetMachineResourcesInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstancesSetMachineResourcesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1648,7 +1648,7 @@ func (c *instancesRESTClient) SetMachineResources(ctx context.Context, req *comp // SetMachineType changes the machine type for a stopped instance to the machine type specified in the request. func (c *instancesRESTClient) SetMachineType(ctx context.Context, req *computepb.SetMachineTypeInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstancesSetMachineTypeRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1699,7 +1699,7 @@ func (c *instancesRESTClient) SetMachineType(ctx context.Context, req *computepb // SetMetadata sets metadata for the specified instance to the data included in the request. func (c *instancesRESTClient) SetMetadata(ctx context.Context, req *computepb.SetMetadataInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetMetadataResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1750,7 +1750,7 @@ func (c *instancesRESTClient) SetMetadata(ctx context.Context, req *computepb.Se // SetMinCpuPlatform changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform. func (c *instancesRESTClient) SetMinCpuPlatform(ctx context.Context, req *computepb.SetMinCpuPlatformInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstancesSetMinCpuPlatformRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1801,7 +1801,7 @@ func (c *instancesRESTClient) SetMinCpuPlatform(ctx context.Context, req *comput // SetScheduling sets an instance’s scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a TERMINATED state. See Instance Life Cycle for more information on the possible instance states. func (c *instancesRESTClient) SetScheduling(ctx context.Context, req *computepb.SetSchedulingInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSchedulingResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1852,7 +1852,7 @@ func (c *instancesRESTClient) SetScheduling(ctx context.Context, req *computepb. // SetServiceAccount sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance. func (c *instancesRESTClient) SetServiceAccount(ctx context.Context, req *computepb.SetServiceAccountInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstancesSetServiceAccountRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1903,7 +1903,7 @@ func (c *instancesRESTClient) SetServiceAccount(ctx context.Context, req *comput // SetShieldedInstanceIntegrityPolicy sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *instancesRESTClient) SetShieldedInstanceIntegrityPolicy(ctx context.Context, req *computepb.SetShieldedInstanceIntegrityPolicyInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetShieldedInstanceIntegrityPolicyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1954,7 +1954,7 @@ func (c *instancesRESTClient) SetShieldedInstanceIntegrityPolicy(ctx context.Con // SetTags sets network tags for the specified instance to the data included in the request. func (c *instancesRESTClient) SetTags(ctx context.Context, req *computepb.SetTagsInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTagsResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -2086,7 +2086,7 @@ func (c *instancesRESTClient) Start(ctx context.Context, req *computepb.StartIns // StartWithEncryptionKey starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance. func (c *instancesRESTClient) StartWithEncryptionKey(ctx context.Context, req *computepb.StartWithEncryptionKeyInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstancesStartWithEncryptionKeyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -2181,7 +2181,7 @@ func (c *instancesRESTClient) Stop(ctx context.Context, req *computepb.StopInsta // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *instancesRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsInstanceRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -2225,7 +2225,7 @@ func (c *instancesRESTClient) TestIamPermissions(ctx context.Context, req *compu // Update updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties. func (c *instancesRESTClient) Update(ctx context.Context, req *computepb.UpdateInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -2291,7 +2291,7 @@ func (c *instancesRESTClient) Update(ctx context.Context, req *computepb.UpdateI // UpdateAccessConfig updates the specified access config from an instance’s network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *instancesRESTClient) UpdateAccessConfig(ctx context.Context, req *computepb.UpdateAccessConfigInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAccessConfigResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -2345,7 +2345,7 @@ func (c *instancesRESTClient) UpdateAccessConfig(ctx context.Context, req *compu // UpdateDisplayDevice updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *instancesRESTClient) UpdateDisplayDevice(ctx context.Context, req *computepb.UpdateDisplayDeviceInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetDisplayDeviceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -2396,7 +2396,7 @@ func (c *instancesRESTClient) UpdateDisplayDevice(ctx context.Context, req *comp // UpdateNetworkInterface updates an instance’s network interface. This method can only update an interface’s alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics. func (c *instancesRESTClient) UpdateNetworkInterface(ctx context.Context, req *computepb.UpdateNetworkInterfaceInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworkInterfaceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -2450,7 +2450,7 @@ func (c *instancesRESTClient) UpdateNetworkInterface(ctx context.Context, req *c // UpdateShieldedInstanceConfig updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *instancesRESTClient) UpdateShieldedInstanceConfig(ctx context.Context, req *computepb.UpdateShieldedInstanceConfigInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetShieldedInstanceConfigResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/interconnect_attachments_client.go b/compute/apiv1/interconnect_attachments_client.go index 6d4ebaf2cd8..f0d5ab72e94 100644 --- a/compute/apiv1/interconnect_attachments_client.go +++ b/compute/apiv1/interconnect_attachments_client.go @@ -329,7 +329,7 @@ func (c *interconnectAttachmentsRESTClient) Get(ctx context.Context, req *comput // Insert creates an InterconnectAttachment in the specified project using the data included in the request. func (c *interconnectAttachmentsRESTClient) Insert(ctx context.Context, req *computepb.InsertInterconnectAttachmentRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInterconnectAttachmentResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -439,7 +439,7 @@ func (c *interconnectAttachmentsRESTClient) List(ctx context.Context, req *compu // Patch updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *interconnectAttachmentsRESTClient) Patch(ctx context.Context, req *computepb.PatchInterconnectAttachmentRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInterconnectAttachmentResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/interconnects_client.go b/compute/apiv1/interconnects_client.go index 503b60abf97..67eac04c6bd 100644 --- a/compute/apiv1/interconnects_client.go +++ b/compute/apiv1/interconnects_client.go @@ -307,7 +307,7 @@ func (c *interconnectsRESTClient) GetDiagnostics(ctx context.Context, req *compu // Insert creates a Interconnect in the specified project using the data included in the request. func (c *interconnectsRESTClient) Insert(ctx context.Context, req *computepb.InsertInterconnectRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInterconnectResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -414,7 +414,7 @@ func (c *interconnectsRESTClient) List(ctx context.Context, req *computepb.ListI // Patch updates the specified interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *interconnectsRESTClient) Patch(ctx context.Context, req *computepb.PatchInterconnectRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInterconnectResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/license_codes_client.go b/compute/apiv1/license_codes_client.go index 15e4c5c9aa3..05ea6211177 100644 --- a/compute/apiv1/license_codes_client.go +++ b/compute/apiv1/license_codes_client.go @@ -198,7 +198,7 @@ func (c *licenseCodesRESTClient) Get(ctx context.Context, req *computepb.GetLice // TestIamPermissions returns permissions that a caller has on the specified resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. func (c *licenseCodesRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsLicenseCodeRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/licenses_client.go b/compute/apiv1/licenses_client.go index f4ca4f40803..c45a2062882 100644 --- a/compute/apiv1/licenses_client.go +++ b/compute/apiv1/licenses_client.go @@ -321,7 +321,7 @@ func (c *licensesRESTClient) GetIamPolicy(ctx context.Context, req *computepb.Ge // Insert create a License resource in the specified project. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. func (c *licensesRESTClient) Insert(ctx context.Context, req *computepb.InsertLicenseRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetLicenseResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -428,7 +428,7 @@ func (c *licensesRESTClient) List(ctx context.Context, req *computepb.ListLicens // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. func (c *licensesRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyLicenseRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -472,7 +472,7 @@ func (c *licensesRESTClient) SetIamPolicy(ctx context.Context, req *computepb.Se // TestIamPermissions returns permissions that a caller has on the specified resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. func (c *licensesRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsLicenseRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/network_endpoint_groups_client.go b/compute/apiv1/network_endpoint_groups_client.go index 6029f50399f..7b76a2e8f10 100644 --- a/compute/apiv1/network_endpoint_groups_client.go +++ b/compute/apiv1/network_endpoint_groups_client.go @@ -269,7 +269,7 @@ func (c *networkEndpointGroupsRESTClient) AggregatedList(ctx context.Context, re // AttachNetworkEndpoints attach a list of network endpoints to the specified network endpoint group. func (c *networkEndpointGroupsRESTClient) AttachNetworkEndpoints(ctx context.Context, req *computepb.AttachNetworkEndpointsNetworkEndpointGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworkEndpointGroupsAttachEndpointsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -364,7 +364,7 @@ func (c *networkEndpointGroupsRESTClient) Delete(ctx context.Context, req *compu // DetachNetworkEndpoints detach a list of network endpoints from the specified network endpoint group. func (c *networkEndpointGroupsRESTClient) DetachNetworkEndpoints(ctx context.Context, req *computepb.DetachNetworkEndpointsNetworkEndpointGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworkEndpointGroupsDetachEndpointsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -452,7 +452,7 @@ func (c *networkEndpointGroupsRESTClient) Get(ctx context.Context, req *computep // Insert creates a network endpoint group in the specified project using the parameters that are included in the request. func (c *networkEndpointGroupsRESTClient) Insert(ctx context.Context, req *computepb.InsertNetworkEndpointGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworkEndpointGroupResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -559,7 +559,7 @@ func (c *networkEndpointGroupsRESTClient) List(ctx context.Context, req *compute // ListNetworkEndpoints lists the network endpoints in the specified network endpoint group. func (c *networkEndpointGroupsRESTClient) ListNetworkEndpoints(ctx context.Context, req *computepb.ListNetworkEndpointsNetworkEndpointGroupsRequest, opts ...gax.CallOption) (*computepb.NetworkEndpointGroupsListNetworkEndpoints, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworkEndpointGroupsListEndpointsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -622,7 +622,7 @@ func (c *networkEndpointGroupsRESTClient) ListNetworkEndpoints(ctx context.Conte // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *networkEndpointGroupsRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsNetworkEndpointGroupRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/networks_client.go b/compute/apiv1/networks_client.go index 61a201d8461..3e70954a6ba 100644 --- a/compute/apiv1/networks_client.go +++ b/compute/apiv1/networks_client.go @@ -224,7 +224,7 @@ func (c *networksRESTClient) Connection() *grpc.ClientConn { // AddPeering adds a peering to the specified network. func (c *networksRESTClient) AddPeering(ctx context.Context, req *computepb.AddPeeringNetworkRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworksAddPeeringRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -393,7 +393,7 @@ func (c *networksRESTClient) GetEffectiveFirewalls(ctx context.Context, req *com // Insert creates a network in the specified project using the data included in the request. func (c *networksRESTClient) Insert(ctx context.Context, req *computepb.InsertNetworkRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworkResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -565,7 +565,7 @@ func (c *networksRESTClient) ListPeeringRoutes(ctx context.Context, req *compute // Patch patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode. func (c *networksRESTClient) Patch(ctx context.Context, req *computepb.PatchNetworkRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworkResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -616,7 +616,7 @@ func (c *networksRESTClient) Patch(ctx context.Context, req *computepb.PatchNetw // RemovePeering removes a peering from the specified network. func (c *networksRESTClient) RemovePeering(ctx context.Context, req *computepb.RemovePeeringNetworkRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworksRemovePeeringRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -711,7 +711,7 @@ func (c *networksRESTClient) SwitchToCustomMode(ctx context.Context, req *comput // UpdatePeering updates the specified network peering with the data included in the request Only the following fields can be modified: NetworkPeering.export_custom_routes, and NetworkPeering.import_custom_routes func (c *networksRESTClient) UpdatePeering(ctx context.Context, req *computepb.UpdatePeeringNetworkRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworksUpdatePeeringRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/node_groups_client.go b/compute/apiv1/node_groups_client.go index a306a111b2b..f60f7f21010 100644 --- a/compute/apiv1/node_groups_client.go +++ b/compute/apiv1/node_groups_client.go @@ -238,7 +238,7 @@ func (c *nodeGroupsRESTClient) Connection() *grpc.ClientConn { // AddNodes adds specified number of nodes to the node group. func (c *nodeGroupsRESTClient) AddNodes(ctx context.Context, req *computepb.AddNodesNodeGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNodeGroupsAddNodesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -392,7 +392,7 @@ func (c *nodeGroupsRESTClient) Delete(ctx context.Context, req *computepb.Delete // DeleteNodes deletes specified nodes from the node group. func (c *nodeGroupsRESTClient) DeleteNodes(ctx context.Context, req *computepb.DeleteNodesNodeGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNodeGroupsDeleteNodesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -524,7 +524,7 @@ func (c *nodeGroupsRESTClient) GetIamPolicy(ctx context.Context, req *computepb. // Insert creates a NodeGroup resource in the specified project using the data included in the request. func (c *nodeGroupsRESTClient) Insert(ctx context.Context, req *computepb.InsertNodeGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNodeGroupResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -690,7 +690,7 @@ func (c *nodeGroupsRESTClient) ListNodes(ctx context.Context, req *computepb.Lis // Patch updates the specified node group. func (c *nodeGroupsRESTClient) Patch(ctx context.Context, req *computepb.PatchNodeGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNodeGroupResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -741,7 +741,7 @@ func (c *nodeGroupsRESTClient) Patch(ctx context.Context, req *computepb.PatchNo // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *nodeGroupsRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyNodeGroupRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetZoneSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -785,7 +785,7 @@ func (c *nodeGroupsRESTClient) SetIamPolicy(ctx context.Context, req *computepb. // SetNodeTemplate updates the node template of the node group. func (c *nodeGroupsRESTClient) SetNodeTemplate(ctx context.Context, req *computepb.SetNodeTemplateNodeGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNodeGroupsSetNodeTemplateRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -836,7 +836,7 @@ func (c *nodeGroupsRESTClient) SetNodeTemplate(ctx context.Context, req *compute // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *nodeGroupsRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsNodeGroupRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/node_templates_client.go b/compute/apiv1/node_templates_client.go index e9e2f5ed310..79c567e95ec 100644 --- a/compute/apiv1/node_templates_client.go +++ b/compute/apiv1/node_templates_client.go @@ -387,7 +387,7 @@ func (c *nodeTemplatesRESTClient) GetIamPolicy(ctx context.Context, req *compute // Insert creates a NodeTemplate resource in the specified project using the data included in the request. func (c *nodeTemplatesRESTClient) Insert(ctx context.Context, req *computepb.InsertNodeTemplateRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNodeTemplateResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -494,7 +494,7 @@ func (c *nodeTemplatesRESTClient) List(ctx context.Context, req *computepb.ListN // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *nodeTemplatesRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyNodeTemplateRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -538,7 +538,7 @@ func (c *nodeTemplatesRESTClient) SetIamPolicy(ctx context.Context, req *compute // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *nodeTemplatesRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsNodeTemplateRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/packet_mirrorings_client.go b/compute/apiv1/packet_mirrorings_client.go index 169aa037c42..7d9ce24642d 100644 --- a/compute/apiv1/packet_mirrorings_client.go +++ b/compute/apiv1/packet_mirrorings_client.go @@ -336,7 +336,7 @@ func (c *packetMirroringsRESTClient) Get(ctx context.Context, req *computepb.Get // Insert creates a PacketMirroring resource in the specified project and region using the data included in the request. func (c *packetMirroringsRESTClient) Insert(ctx context.Context, req *computepb.InsertPacketMirroringRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetPacketMirroringResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -443,7 +443,7 @@ func (c *packetMirroringsRESTClient) List(ctx context.Context, req *computepb.Li // Patch patches the specified PacketMirroring resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. func (c *packetMirroringsRESTClient) Patch(ctx context.Context, req *computepb.PatchPacketMirroringRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetPacketMirroringResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -494,7 +494,7 @@ func (c *packetMirroringsRESTClient) Patch(ctx context.Context, req *computepb.P // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *packetMirroringsRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsPacketMirroringRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/projects_client.go b/compute/apiv1/projects_client.go index 270aae1768e..58bdd7ddc12 100644 --- a/compute/apiv1/projects_client.go +++ b/compute/apiv1/projects_client.go @@ -282,7 +282,7 @@ func (c *projectsRESTClient) DisableXpnHost(ctx context.Context, req *computepb. // DisableXpnResource disable a service resource (also known as service project) associated with this host project. func (c *projectsRESTClient) DisableXpnResource(ctx context.Context, req *computepb.DisableXpnResourceProjectRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetProjectsDisableXpnResourceRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -377,7 +377,7 @@ func (c *projectsRESTClient) EnableXpnHost(ctx context.Context, req *computepb.E // EnableXpnResource enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project. func (c *projectsRESTClient) EnableXpnResource(ctx context.Context, req *computepb.EnableXpnResourceProjectRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetProjectsEnableXpnResourceRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -558,7 +558,7 @@ func (c *projectsRESTClient) GetXpnResources(ctx context.Context, req *computepb // ListXpnHosts lists all shared VPC host projects visible to the user in an organization. func (c *projectsRESTClient) ListXpnHosts(ctx context.Context, req *computepb.ListXpnHostsProjectsRequest, opts ...gax.CallOption) (*computepb.XpnHostList, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetProjectsListXpnHostsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -621,7 +621,7 @@ func (c *projectsRESTClient) ListXpnHosts(ctx context.Context, req *computepb.Li // MoveDisk moves a persistent disk from one zone to another. func (c *projectsRESTClient) MoveDisk(ctx context.Context, req *computepb.MoveDiskProjectRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetDiskMoveRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -672,7 +672,7 @@ func (c *projectsRESTClient) MoveDisk(ctx context.Context, req *computepb.MoveDi // MoveInstance moves an instance and its attached persistent disks from one zone to another. func (c *projectsRESTClient) MoveInstance(ctx context.Context, req *computepb.MoveInstanceProjectRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceMoveRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -723,7 +723,7 @@ func (c *projectsRESTClient) MoveInstance(ctx context.Context, req *computepb.Mo // SetCommonInstanceMetadata sets metadata common to all instances within the specified project using the data included in the request. func (c *projectsRESTClient) SetCommonInstanceMetadata(ctx context.Context, req *computepb.SetCommonInstanceMetadataProjectRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetMetadataResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -774,7 +774,7 @@ func (c *projectsRESTClient) SetCommonInstanceMetadata(ctx context.Context, req // SetDefaultNetworkTier sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field. func (c *projectsRESTClient) SetDefaultNetworkTier(ctx context.Context, req *computepb.SetDefaultNetworkTierProjectRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetProjectsSetDefaultNetworkTierRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -825,7 +825,7 @@ func (c *projectsRESTClient) SetDefaultNetworkTier(ctx context.Context, req *com // SetUsageExportBucket enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled. func (c *projectsRESTClient) SetUsageExportBucket(ctx context.Context, req *computepb.SetUsageExportBucketProjectRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUsageExportLocationResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/public_advertised_prefixes_client.go b/compute/apiv1/public_advertised_prefixes_client.go index 1312ce9c57a..5fdcbf3a988 100644 --- a/compute/apiv1/public_advertised_prefixes_client.go +++ b/compute/apiv1/public_advertised_prefixes_client.go @@ -263,7 +263,7 @@ func (c *publicAdvertisedPrefixesRESTClient) Get(ctx context.Context, req *compu // Insert creates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request. func (c *publicAdvertisedPrefixesRESTClient) Insert(ctx context.Context, req *computepb.InsertPublicAdvertisedPrefixeRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetPublicAdvertisedPrefixResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -370,7 +370,7 @@ func (c *publicAdvertisedPrefixesRESTClient) List(ctx context.Context, req *comp // Patch patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. func (c *publicAdvertisedPrefixesRESTClient) Patch(ctx context.Context, req *computepb.PatchPublicAdvertisedPrefixeRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetPublicAdvertisedPrefixResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/public_delegated_prefixes_client.go b/compute/apiv1/public_delegated_prefixes_client.go index 5dcb3429706..95f13121135 100644 --- a/compute/apiv1/public_delegated_prefixes_client.go +++ b/compute/apiv1/public_delegated_prefixes_client.go @@ -329,7 +329,7 @@ func (c *publicDelegatedPrefixesRESTClient) Get(ctx context.Context, req *comput // Insert creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request. func (c *publicDelegatedPrefixesRESTClient) Insert(ctx context.Context, req *computepb.InsertPublicDelegatedPrefixeRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetPublicDelegatedPrefixResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -436,7 +436,7 @@ func (c *publicDelegatedPrefixesRESTClient) List(ctx context.Context, req *compu // Patch patches the specified PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. func (c *publicDelegatedPrefixesRESTClient) Patch(ctx context.Context, req *computepb.PatchPublicDelegatedPrefixeRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetPublicDelegatedPrefixResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_autoscalers_client.go b/compute/apiv1/region_autoscalers_client.go index 0455c1cd097..2ed332931d8 100644 --- a/compute/apiv1/region_autoscalers_client.go +++ b/compute/apiv1/region_autoscalers_client.go @@ -270,7 +270,7 @@ func (c *regionAutoscalersRESTClient) Get(ctx context.Context, req *computepb.Ge // Insert creates an autoscaler in the specified project using the data included in the request. func (c *regionAutoscalersRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionAutoscalerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAutoscalerResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -377,7 +377,7 @@ func (c *regionAutoscalersRESTClient) List(ctx context.Context, req *computepb.L // Patch updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *regionAutoscalersRESTClient) Patch(ctx context.Context, req *computepb.PatchRegionAutoscalerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAutoscalerResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -431,7 +431,7 @@ func (c *regionAutoscalersRESTClient) Patch(ctx context.Context, req *computepb. // Update updates an autoscaler in the specified project using the data included in the request. func (c *regionAutoscalersRESTClient) Update(ctx context.Context, req *computepb.UpdateRegionAutoscalerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetAutoscalerResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_backend_services_client.go b/compute/apiv1/region_backend_services_client.go index 01c7bbf6c9a..a7f9f7ab67b 100644 --- a/compute/apiv1/region_backend_services_client.go +++ b/compute/apiv1/region_backend_services_client.go @@ -277,7 +277,7 @@ func (c *regionBackendServicesRESTClient) Get(ctx context.Context, req *computep // GetHealth gets the most recent health check results for this regional BackendService. func (c *regionBackendServicesRESTClient) GetHealth(ctx context.Context, req *computepb.GetHealthRegionBackendServiceRequest, opts ...gax.CallOption) (*computepb.BackendServiceGroupHealth, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetResourceGroupReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -321,7 +321,7 @@ func (c *regionBackendServicesRESTClient) GetHealth(ctx context.Context, req *co // Insert creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview. func (c *regionBackendServicesRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionBackendServiceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBackendServiceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -428,7 +428,7 @@ func (c *regionBackendServicesRESTClient) List(ctx context.Context, req *compute // Patch updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *regionBackendServicesRESTClient) Patch(ctx context.Context, req *computepb.PatchRegionBackendServiceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBackendServiceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -479,7 +479,7 @@ func (c *regionBackendServicesRESTClient) Patch(ctx context.Context, req *comput // Update updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview. func (c *regionBackendServicesRESTClient) Update(ctx context.Context, req *computepb.UpdateRegionBackendServiceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBackendServiceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_commitments_client.go b/compute/apiv1/region_commitments_client.go index 4b58ada8c7d..20c9a1929e8 100644 --- a/compute/apiv1/region_commitments_client.go +++ b/compute/apiv1/region_commitments_client.go @@ -271,7 +271,7 @@ func (c *regionCommitmentsRESTClient) Get(ctx context.Context, req *computepb.Ge // Insert creates a commitment in the specified project using the data included in the request. func (c *regionCommitmentsRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionCommitmentRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetCommitmentResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_disks_client.go b/compute/apiv1/region_disks_client.go index 36c1ef96f0d..2e5d6e97a0f 100644 --- a/compute/apiv1/region_disks_client.go +++ b/compute/apiv1/region_disks_client.go @@ -231,7 +231,7 @@ func (c *regionDisksRESTClient) Connection() *grpc.ClientConn { // AddResourcePolicies adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation. func (c *regionDisksRESTClient) AddResourcePolicies(ctx context.Context, req *computepb.AddResourcePoliciesRegionDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionDisksAddResourcePoliciesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -282,7 +282,7 @@ func (c *regionDisksRESTClient) AddResourcePolicies(ctx context.Context, req *co // CreateSnapshot creates a snapshot of this regional disk. func (c *regionDisksRESTClient) CreateSnapshot(ctx context.Context, req *computepb.CreateSnapshotRegionDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSnapshotResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -458,7 +458,7 @@ func (c *regionDisksRESTClient) GetIamPolicy(ctx context.Context, req *computepb // Insert creates a persistent regional disk in the specified project using the data included in the request. func (c *regionDisksRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetDiskResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -568,7 +568,7 @@ func (c *regionDisksRESTClient) List(ctx context.Context, req *computepb.ListReg // RemoveResourcePolicies removes resource policies from a regional disk. func (c *regionDisksRESTClient) RemoveResourcePolicies(ctx context.Context, req *computepb.RemoveResourcePoliciesRegionDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionDisksRemoveResourcePoliciesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -619,7 +619,7 @@ func (c *regionDisksRESTClient) RemoveResourcePolicies(ctx context.Context, req // Resize resizes the specified regional persistent disk. func (c *regionDisksRESTClient) Resize(ctx context.Context, req *computepb.ResizeRegionDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionDisksResizeRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -670,7 +670,7 @@ func (c *regionDisksRESTClient) Resize(ctx context.Context, req *computepb.Resiz // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *regionDisksRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyRegionDiskRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -714,7 +714,7 @@ func (c *regionDisksRESTClient) SetIamPolicy(ctx context.Context, req *computepb // SetLabels sets the labels on the target regional disk. func (c *regionDisksRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabelsRegionDiskRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionSetLabelsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -765,7 +765,7 @@ func (c *regionDisksRESTClient) SetLabels(ctx context.Context, req *computepb.Se // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *regionDisksRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsRegionDiskRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_health_check_services_client.go b/compute/apiv1/region_health_check_services_client.go index 461ca2f323b..bc2deda8d5f 100644 --- a/compute/apiv1/region_health_check_services_client.go +++ b/compute/apiv1/region_health_check_services_client.go @@ -263,7 +263,7 @@ func (c *regionHealthCheckServicesRESTClient) Get(ctx context.Context, req *comp // Insert creates a regional HealthCheckService resource in the specified project and region using the data included in the request. func (c *regionHealthCheckServicesRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionHealthCheckServiceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetHealthCheckServiceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -370,7 +370,7 @@ func (c *regionHealthCheckServicesRESTClient) List(ctx context.Context, req *com // Patch updates the specified regional HealthCheckService resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *regionHealthCheckServicesRESTClient) Patch(ctx context.Context, req *computepb.PatchRegionHealthCheckServiceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetHealthCheckServiceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_health_checks_client.go b/compute/apiv1/region_health_checks_client.go index 4d14cc09699..ce481d7357c 100644 --- a/compute/apiv1/region_health_checks_client.go +++ b/compute/apiv1/region_health_checks_client.go @@ -270,7 +270,7 @@ func (c *regionHealthChecksRESTClient) Get(ctx context.Context, req *computepb.G // Insert creates a HealthCheck resource in the specified project using the data included in the request. func (c *regionHealthChecksRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionHealthCheckRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetHealthCheckResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -377,7 +377,7 @@ func (c *regionHealthChecksRESTClient) List(ctx context.Context, req *computepb. // Patch updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *regionHealthChecksRESTClient) Patch(ctx context.Context, req *computepb.PatchRegionHealthCheckRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetHealthCheckResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -428,7 +428,7 @@ func (c *regionHealthChecksRESTClient) Patch(ctx context.Context, req *computepb // Update updates a HealthCheck resource in the specified project using the data included in the request. func (c *regionHealthChecksRESTClient) Update(ctx context.Context, req *computepb.UpdateRegionHealthCheckRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetHealthCheckResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_instance_group_managers_client.go b/compute/apiv1/region_instance_group_managers_client.go index 519364c07f1..6d8c9153399 100644 --- a/compute/apiv1/region_instance_group_managers_client.go +++ b/compute/apiv1/region_instance_group_managers_client.go @@ -302,7 +302,7 @@ func (c *regionInstanceGroupManagersRESTClient) Connection() *grpc.ClientConn { // // You can specify a maximum of 1000 instances with this method per request. func (c *regionInstanceGroupManagersRESTClient) AbandonInstances(ctx context.Context, req *computepb.AbandonInstancesRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupManagersAbandonInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -353,7 +353,7 @@ func (c *regionInstanceGroupManagersRESTClient) AbandonInstances(ctx context.Con // ApplyUpdatesToInstances apply updates to selected instances the managed instance group. func (c *regionInstanceGroupManagersRESTClient) ApplyUpdatesToInstances(ctx context.Context, req *computepb.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupManagersApplyUpdatesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -397,7 +397,7 @@ func (c *regionInstanceGroupManagersRESTClient) ApplyUpdatesToInstances(ctx cont // CreateInstances creates instances with per-instance configs in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method. func (c *regionInstanceGroupManagersRESTClient) CreateInstances(ctx context.Context, req *computepb.CreateInstancesRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupManagersCreateInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -496,7 +496,7 @@ func (c *regionInstanceGroupManagersRESTClient) Delete(ctx context.Context, req // // You can specify a maximum of 1000 instances with this method per request. func (c *regionInstanceGroupManagersRESTClient) DeleteInstances(ctx context.Context, req *computepb.DeleteInstancesRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupManagersDeleteInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -547,7 +547,7 @@ func (c *regionInstanceGroupManagersRESTClient) DeleteInstances(ctx context.Cont // DeletePerInstanceConfigs deletes selected per-instance configs for the managed instance group. func (c *regionInstanceGroupManagersRESTClient) DeletePerInstanceConfigs(ctx context.Context, req *computepb.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupManagerDeleteInstanceConfigReqResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -630,7 +630,7 @@ func (c *regionInstanceGroupManagersRESTClient) Get(ctx context.Context, req *co // // A regional managed instance group can contain up to 2000 instances. func (c *regionInstanceGroupManagersRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagerResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -905,7 +905,7 @@ func (c *regionInstanceGroupManagersRESTClient) ListPerInstanceConfigs(ctx conte // Patch updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *regionInstanceGroupManagersRESTClient) Patch(ctx context.Context, req *computepb.PatchRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceGroupManagerResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -956,7 +956,7 @@ func (c *regionInstanceGroupManagersRESTClient) Patch(ctx context.Context, req * // PatchPerInstanceConfigs inserts or patches per-instance configs for the managed instance group. perInstanceConfig.name (at http://perInstanceConfig.name) serves as a key used to distinguish whether to perform insert or patch. func (c *regionInstanceGroupManagersRESTClient) PatchPerInstanceConfigs(ctx context.Context, req *computepb.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupManagerPatchInstanceConfigReqResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1011,7 +1011,7 @@ func (c *regionInstanceGroupManagersRESTClient) PatchPerInstanceConfigs(ctx cont // // You can specify a maximum of 1000 instances with this method per request. func (c *regionInstanceGroupManagersRESTClient) RecreateInstances(ctx context.Context, req *computepb.RecreateInstancesRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupManagersRecreateRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1113,7 +1113,7 @@ func (c *regionInstanceGroupManagersRESTClient) Resize(ctx context.Context, req // SetInstanceTemplate sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected. func (c *regionInstanceGroupManagersRESTClient) SetInstanceTemplate(ctx context.Context, req *computepb.SetInstanceTemplateRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupManagersSetTemplateRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1164,7 +1164,7 @@ func (c *regionInstanceGroupManagersRESTClient) SetInstanceTemplate(ctx context. // SetTargetPools modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected. func (c *regionInstanceGroupManagersRESTClient) SetTargetPools(ctx context.Context, req *computepb.SetTargetPoolsRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupManagersSetTargetPoolsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -1215,7 +1215,7 @@ func (c *regionInstanceGroupManagersRESTClient) SetTargetPools(ctx context.Conte // UpdatePerInstanceConfigs inserts or updates per-instance configs for the managed instance group. perInstanceConfig.name (at http://perInstanceConfig.name) serves as a key used to distinguish whether to perform insert or patch. func (c *regionInstanceGroupManagersRESTClient) UpdatePerInstanceConfigs(ctx context.Context, req *computepb.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupManagerUpdateInstanceConfigReqResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_instance_groups_client.go b/compute/apiv1/region_instance_groups_client.go index 61dcec0064d..3468e7f2da9 100644 --- a/compute/apiv1/region_instance_groups_client.go +++ b/compute/apiv1/region_instance_groups_client.go @@ -268,7 +268,7 @@ func (c *regionInstanceGroupsRESTClient) List(ctx context.Context, req *computep // ListInstances lists the instances in the specified instance group and displays information about the named ports. Depending on the specified options, this method can list all instances or only the instances that are running. The orderBy query parameter is not supported. func (c *regionInstanceGroupsRESTClient) ListInstances(ctx context.Context, req *computepb.ListInstancesRegionInstanceGroupsRequest, opts ...gax.CallOption) (*computepb.RegionInstanceGroupsListInstances, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupsListInstancesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -331,7 +331,7 @@ func (c *regionInstanceGroupsRESTClient) ListInstances(ctx context.Context, req // SetNamedPorts sets the named ports for the specified regional instance group. func (c *regionInstanceGroupsRESTClient) SetNamedPorts(ctx context.Context, req *computepb.SetNamedPortsRegionInstanceGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionInstanceGroupsSetNamedPortsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_instances_client.go b/compute/apiv1/region_instances_client.go index fc255a0f815..6083abb8a1a 100644 --- a/compute/apiv1/region_instances_client.go +++ b/compute/apiv1/region_instances_client.go @@ -154,7 +154,7 @@ func (c *regionInstancesRESTClient) Connection() *grpc.ClientConn { // BulkInsert creates multiple instances in a given region. Count specifies the number of instances to create. func (c *regionInstancesRESTClient) BulkInsert(ctx context.Context, req *computepb.BulkInsertRegionInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBulkInsertInstanceResourceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_network_endpoint_groups_client.go b/compute/apiv1/region_network_endpoint_groups_client.go index 941248cc8a9..3e34f364630 100644 --- a/compute/apiv1/region_network_endpoint_groups_client.go +++ b/compute/apiv1/region_network_endpoint_groups_client.go @@ -256,7 +256,7 @@ func (c *regionNetworkEndpointGroupsRESTClient) Get(ctx context.Context, req *co // Insert creates a network endpoint group in the specified project using the parameters that are included in the request. func (c *regionNetworkEndpointGroupsRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionNetworkEndpointGroupRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNetworkEndpointGroupResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_notification_endpoints_client.go b/compute/apiv1/region_notification_endpoints_client.go index cd77148d7d8..774403808d9 100644 --- a/compute/apiv1/region_notification_endpoints_client.go +++ b/compute/apiv1/region_notification_endpoints_client.go @@ -256,7 +256,7 @@ func (c *regionNotificationEndpointsRESTClient) Get(ctx context.Context, req *co // Insert create a NotificationEndpoint in the specified project in the given region using the parameters that are included in the request. func (c *regionNotificationEndpointsRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionNotificationEndpointRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetNotificationEndpointResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_ssl_certificates_client.go b/compute/apiv1/region_ssl_certificates_client.go index d798901cd9c..6ffb0a3e6b0 100644 --- a/compute/apiv1/region_ssl_certificates_client.go +++ b/compute/apiv1/region_ssl_certificates_client.go @@ -256,7 +256,7 @@ func (c *regionSslCertificatesRESTClient) Get(ctx context.Context, req *computep // Insert creates a SslCertificate resource in the specified project and region using the data included in the request func (c *regionSslCertificatesRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionSslCertificateRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSslCertificateResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_target_http_proxies_client.go b/compute/apiv1/region_target_http_proxies_client.go index 134c90b0110..74d3cbc9f31 100644 --- a/compute/apiv1/region_target_http_proxies_client.go +++ b/compute/apiv1/region_target_http_proxies_client.go @@ -263,7 +263,7 @@ func (c *regionTargetHttpProxiesRESTClient) Get(ctx context.Context, req *comput // Insert creates a TargetHttpProxy resource in the specified project and region using the data included in the request. func (c *regionTargetHttpProxiesRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionTargetHttpProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetHttpProxyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -370,7 +370,7 @@ func (c *regionTargetHttpProxiesRESTClient) List(ctx context.Context, req *compu // SetUrlMap changes the URL map for TargetHttpProxy. func (c *regionTargetHttpProxiesRESTClient) SetUrlMap(ctx context.Context, req *computepb.SetUrlMapRegionTargetHttpProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_target_https_proxies_client.go b/compute/apiv1/region_target_https_proxies_client.go index 9c8860b222b..6796dc11374 100644 --- a/compute/apiv1/region_target_https_proxies_client.go +++ b/compute/apiv1/region_target_https_proxies_client.go @@ -270,7 +270,7 @@ func (c *regionTargetHttpsProxiesRESTClient) Get(ctx context.Context, req *compu // Insert creates a TargetHttpsProxy resource in the specified project and region using the data included in the request. func (c *regionTargetHttpsProxiesRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionTargetHttpsProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetHttpsProxyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -377,7 +377,7 @@ func (c *regionTargetHttpsProxiesRESTClient) List(ctx context.Context, req *comp // SetSslCertificates replaces SslCertificates for TargetHttpsProxy. func (c *regionTargetHttpsProxiesRESTClient) SetSslCertificates(ctx context.Context, req *computepb.SetSslCertificatesRegionTargetHttpsProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionTargetHttpsProxiesSetSslCertificatesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -428,7 +428,7 @@ func (c *regionTargetHttpsProxiesRESTClient) SetSslCertificates(ctx context.Cont // SetUrlMap changes the URL map for TargetHttpsProxy. func (c *regionTargetHttpsProxiesRESTClient) SetUrlMap(ctx context.Context, req *computepb.SetUrlMapRegionTargetHttpsProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/region_url_maps_client.go b/compute/apiv1/region_url_maps_client.go index 88c17147246..26d6b3fa32b 100644 --- a/compute/apiv1/region_url_maps_client.go +++ b/compute/apiv1/region_url_maps_client.go @@ -277,7 +277,7 @@ func (c *regionUrlMapsRESTClient) Get(ctx context.Context, req *computepb.GetReg // Insert creates a UrlMap resource in the specified project using the data included in the request. func (c *regionUrlMapsRESTClient) Insert(ctx context.Context, req *computepb.InsertRegionUrlMapRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -384,7 +384,7 @@ func (c *regionUrlMapsRESTClient) List(ctx context.Context, req *computepb.ListR // Patch patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. func (c *regionUrlMapsRESTClient) Patch(ctx context.Context, req *computepb.PatchRegionUrlMapRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -435,7 +435,7 @@ func (c *regionUrlMapsRESTClient) Patch(ctx context.Context, req *computepb.Patc // Update updates the specified UrlMap resource with the data included in the request. func (c *regionUrlMapsRESTClient) Update(ctx context.Context, req *computepb.UpdateRegionUrlMapRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -495,7 +495,7 @@ func (c *regionUrlMapsRESTClient) Update(ctx context.Context, req *computepb.Upd // Validate runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap. func (c *regionUrlMapsRESTClient) Validate(ctx context.Context, req *computepb.ValidateRegionUrlMapRequest, opts ...gax.CallOption) (*computepb.UrlMapsValidateResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionUrlMapsValidateRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/reservations_client.go b/compute/apiv1/reservations_client.go index 207de1cbc42..890808f9dc5 100644 --- a/compute/apiv1/reservations_client.go +++ b/compute/apiv1/reservations_client.go @@ -394,7 +394,7 @@ func (c *reservationsRESTClient) GetIamPolicy(ctx context.Context, req *computep // Insert creates a new reservation. For more information, read Reserving zonal resources. func (c *reservationsRESTClient) Insert(ctx context.Context, req *computepb.InsertReservationRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetReservationResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -501,7 +501,7 @@ func (c *reservationsRESTClient) List(ctx context.Context, req *computepb.ListRe // Resize resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations. func (c *reservationsRESTClient) Resize(ctx context.Context, req *computepb.ResizeReservationRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetReservationsResizeRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -552,7 +552,7 @@ func (c *reservationsRESTClient) Resize(ctx context.Context, req *computepb.Resi // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *reservationsRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyReservationRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetZoneSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -596,7 +596,7 @@ func (c *reservationsRESTClient) SetIamPolicy(ctx context.Context, req *computep // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *reservationsRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsReservationRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/resource_policies_client.go b/compute/apiv1/resource_policies_client.go index 768a7798c49..68892df8223 100644 --- a/compute/apiv1/resource_policies_client.go +++ b/compute/apiv1/resource_policies_client.go @@ -387,7 +387,7 @@ func (c *resourcePoliciesRESTClient) GetIamPolicy(ctx context.Context, req *comp // Insert creates a new resource policy. func (c *resourcePoliciesRESTClient) Insert(ctx context.Context, req *computepb.InsertResourcePolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetResourcePolicyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -494,7 +494,7 @@ func (c *resourcePoliciesRESTClient) List(ctx context.Context, req *computepb.Li // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *resourcePoliciesRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicyResourcePolicyRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -538,7 +538,7 @@ func (c *resourcePoliciesRESTClient) SetIamPolicy(ctx context.Context, req *comp // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *resourcePoliciesRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsResourcePolicyRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/routers_client.go b/compute/apiv1/routers_client.go index c7e74b47203..8df00e9886e 100644 --- a/compute/apiv1/routers_client.go +++ b/compute/apiv1/routers_client.go @@ -450,7 +450,7 @@ func (c *routersRESTClient) GetRouterStatus(ctx context.Context, req *computepb. // Insert creates a Router resource in the specified project and region using the data included in the request. func (c *routersRESTClient) Insert(ctx context.Context, req *computepb.InsertRouterRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRouterResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -557,7 +557,7 @@ func (c *routersRESTClient) List(ctx context.Context, req *computepb.ListRouters // Patch patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. func (c *routersRESTClient) Patch(ctx context.Context, req *computepb.PatchRouterRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRouterResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -608,7 +608,7 @@ func (c *routersRESTClient) Patch(ctx context.Context, req *computepb.PatchRoute // Preview preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router. func (c *routersRESTClient) Preview(ctx context.Context, req *computepb.PreviewRouterRequest, opts ...gax.CallOption) (*computepb.RoutersPreviewResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRouterResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -652,7 +652,7 @@ func (c *routersRESTClient) Preview(ctx context.Context, req *computepb.PreviewR // Update updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload. func (c *routersRESTClient) Update(ctx context.Context, req *computepb.UpdateRouterRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRouterResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/routes_client.go b/compute/apiv1/routes_client.go index af6d9a2e86b..129987d8e9d 100644 --- a/compute/apiv1/routes_client.go +++ b/compute/apiv1/routes_client.go @@ -256,7 +256,7 @@ func (c *routesRESTClient) Get(ctx context.Context, req *computepb.GetRouteReque // Insert creates a Route resource in the specified project using the data included in the request. func (c *routesRESTClient) Insert(ctx context.Context, req *computepb.InsertRouteRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRouteResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/security_policies_client.go b/compute/apiv1/security_policies_client.go index 409d6c5041c..83e56c14b34 100644 --- a/compute/apiv1/security_policies_client.go +++ b/compute/apiv1/security_policies_client.go @@ -217,7 +217,7 @@ func (c *securityPoliciesRESTClient) Connection() *grpc.ClientConn { // AddRule inserts a rule into a security policy. func (c *securityPoliciesRESTClient) AddRule(ctx context.Context, req *computepb.AddRuleSecurityPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSecurityPolicyRuleResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -386,7 +386,7 @@ func (c *securityPoliciesRESTClient) GetRule(ctx context.Context, req *computepb // Insert creates a new policy in the specified project using the data included in the request. func (c *securityPoliciesRESTClient) Insert(ctx context.Context, req *computepb.InsertSecurityPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSecurityPolicyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -549,7 +549,7 @@ func (c *securityPoliciesRESTClient) ListPreconfiguredExpressionSets(ctx context // Patch patches the specified policy with the data included in the request. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead. func (c *securityPoliciesRESTClient) Patch(ctx context.Context, req *computepb.PatchSecurityPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSecurityPolicyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -600,7 +600,7 @@ func (c *securityPoliciesRESTClient) Patch(ctx context.Context, req *computepb.P // PatchRule patches a rule at the specified priority. func (c *securityPoliciesRESTClient) PatchRule(ctx context.Context, req *computepb.PatchRuleSecurityPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSecurityPolicyRuleResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/snapshots_client.go b/compute/apiv1/snapshots_client.go index b8e887db47d..3471e49464f 100644 --- a/compute/apiv1/snapshots_client.go +++ b/compute/apiv1/snapshots_client.go @@ -381,7 +381,7 @@ func (c *snapshotsRESTClient) List(ctx context.Context, req *computepb.ListSnaps // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *snapshotsRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicySnapshotRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -425,7 +425,7 @@ func (c *snapshotsRESTClient) SetIamPolicy(ctx context.Context, req *computepb.S // SetLabels sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation. func (c *snapshotsRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabelsSnapshotRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetGlobalSetLabelsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -469,7 +469,7 @@ func (c *snapshotsRESTClient) SetLabels(ctx context.Context, req *computepb.SetL // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *snapshotsRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsSnapshotRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/ssl_certificates_client.go b/compute/apiv1/ssl_certificates_client.go index e69c65ec1c6..532984964de 100644 --- a/compute/apiv1/ssl_certificates_client.go +++ b/compute/apiv1/ssl_certificates_client.go @@ -322,7 +322,7 @@ func (c *sslCertificatesRESTClient) Get(ctx context.Context, req *computepb.GetS // Insert creates a SslCertificate resource in the specified project using the data included in the request. func (c *sslCertificatesRESTClient) Insert(ctx context.Context, req *computepb.InsertSslCertificateRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSslCertificateResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/ssl_policies_client.go b/compute/apiv1/ssl_policies_client.go index 1ec92b7b3da..09ffee34b8c 100644 --- a/compute/apiv1/ssl_policies_client.go +++ b/compute/apiv1/ssl_policies_client.go @@ -270,7 +270,7 @@ func (c *sslPoliciesRESTClient) Get(ctx context.Context, req *computepb.GetSslPo // Insert returns the specified SSL policy resource. Gets a list of available SSL policies by making a list() request. func (c *sslPoliciesRESTClient) Insert(ctx context.Context, req *computepb.InsertSslPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSslPolicyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -433,7 +433,7 @@ func (c *sslPoliciesRESTClient) ListAvailableFeatures(ctx context.Context, req * // Patch patches the specified SSL policy with the data included in the request. func (c *sslPoliciesRESTClient) Patch(ctx context.Context, req *computepb.PatchSslPolicyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSslPolicyResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/subnetworks_client.go b/compute/apiv1/subnetworks_client.go index dad2da6f42b..d7fef62581c 100644 --- a/compute/apiv1/subnetworks_client.go +++ b/compute/apiv1/subnetworks_client.go @@ -334,7 +334,7 @@ func (c *subnetworksRESTClient) Delete(ctx context.Context, req *computepb.Delet // ExpandIpCidrRange expands the IP CIDR range of the subnetwork to a specified value. func (c *subnetworksRESTClient) ExpandIpCidrRange(ctx context.Context, req *computepb.ExpandIpCidrRangeSubnetworkRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSubnetworksExpandIpCidrRangeRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -466,7 +466,7 @@ func (c *subnetworksRESTClient) GetIamPolicy(ctx context.Context, req *computepb // Insert creates a subnetwork in the specified project using the data included in the request. func (c *subnetworksRESTClient) Insert(ctx context.Context, req *computepb.InsertSubnetworkRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSubnetworkResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -629,7 +629,7 @@ func (c *subnetworksRESTClient) ListUsable(ctx context.Context, req *computepb.L // Patch patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched. func (c *subnetworksRESTClient) Patch(ctx context.Context, req *computepb.PatchSubnetworkRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSubnetworkResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -683,7 +683,7 @@ func (c *subnetworksRESTClient) Patch(ctx context.Context, req *computepb.PatchS // SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. func (c *subnetworksRESTClient) SetIamPolicy(ctx context.Context, req *computepb.SetIamPolicySubnetworkRequest, opts ...gax.CallOption) (*computepb.Policy, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionSetPolicyRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -727,7 +727,7 @@ func (c *subnetworksRESTClient) SetIamPolicy(ctx context.Context, req *computepb // SetPrivateIpGoogleAccess set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access. func (c *subnetworksRESTClient) SetPrivateIpGoogleAccess(ctx context.Context, req *computepb.SetPrivateIpGoogleAccessSubnetworkRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSubnetworksSetPrivateIpGoogleAccessRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -778,7 +778,7 @@ func (c *subnetworksRESTClient) SetPrivateIpGoogleAccess(ctx context.Context, re // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *subnetworksRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsSubnetworkRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/target_grpc_proxies_client.go b/compute/apiv1/target_grpc_proxies_client.go index 54312245f16..abd27748bc0 100644 --- a/compute/apiv1/target_grpc_proxies_client.go +++ b/compute/apiv1/target_grpc_proxies_client.go @@ -263,7 +263,7 @@ func (c *targetGrpcProxiesRESTClient) Get(ctx context.Context, req *computepb.Ge // Insert creates a TargetGrpcProxy in the specified project in the given scope using the parameters that are included in the request. func (c *targetGrpcProxiesRESTClient) Insert(ctx context.Context, req *computepb.InsertTargetGrpcProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetGrpcProxyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -370,7 +370,7 @@ func (c *targetGrpcProxiesRESTClient) List(ctx context.Context, req *computepb.L // Patch patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. func (c *targetGrpcProxiesRESTClient) Patch(ctx context.Context, req *computepb.PatchTargetGrpcProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetGrpcProxyResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/target_http_proxies_client.go b/compute/apiv1/target_http_proxies_client.go index 9db737cd336..785e4550dec 100644 --- a/compute/apiv1/target_http_proxies_client.go +++ b/compute/apiv1/target_http_proxies_client.go @@ -336,7 +336,7 @@ func (c *targetHttpProxiesRESTClient) Get(ctx context.Context, req *computepb.Ge // Insert creates a TargetHttpProxy resource in the specified project using the data included in the request. func (c *targetHttpProxiesRESTClient) Insert(ctx context.Context, req *computepb.InsertTargetHttpProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetHttpProxyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -443,7 +443,7 @@ func (c *targetHttpProxiesRESTClient) List(ctx context.Context, req *computepb.L // Patch patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. (== suppress_warning http-rest-shadowed ==) func (c *targetHttpProxiesRESTClient) Patch(ctx context.Context, req *computepb.PatchTargetHttpProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetHttpProxyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -494,7 +494,7 @@ func (c *targetHttpProxiesRESTClient) Patch(ctx context.Context, req *computepb. // SetUrlMap changes the URL map for TargetHttpProxy. func (c *targetHttpProxiesRESTClient) SetUrlMap(ctx context.Context, req *computepb.SetUrlMapTargetHttpProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/target_https_proxies_client.go b/compute/apiv1/target_https_proxies_client.go index 3fbd314906f..d1f47cabb4d 100644 --- a/compute/apiv1/target_https_proxies_client.go +++ b/compute/apiv1/target_https_proxies_client.go @@ -357,7 +357,7 @@ func (c *targetHttpsProxiesRESTClient) Get(ctx context.Context, req *computepb.G // Insert creates a TargetHttpsProxy resource in the specified project using the data included in the request. func (c *targetHttpsProxiesRESTClient) Insert(ctx context.Context, req *computepb.InsertTargetHttpsProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetHttpsProxyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -464,7 +464,7 @@ func (c *targetHttpsProxiesRESTClient) List(ctx context.Context, req *computepb. // Patch patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. (== suppress_warning http-rest-shadowed ==) func (c *targetHttpsProxiesRESTClient) Patch(ctx context.Context, req *computepb.PatchTargetHttpsProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetHttpsProxyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -515,7 +515,7 @@ func (c *targetHttpsProxiesRESTClient) Patch(ctx context.Context, req *computepb // SetQuicOverride sets the QUIC override policy for TargetHttpsProxy. func (c *targetHttpsProxiesRESTClient) SetQuicOverride(ctx context.Context, req *computepb.SetQuicOverrideTargetHttpsProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetHttpsProxiesSetQuicOverrideRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -566,7 +566,7 @@ func (c *targetHttpsProxiesRESTClient) SetQuicOverride(ctx context.Context, req // SetSslCertificates replaces SslCertificates for TargetHttpsProxy. func (c *targetHttpsProxiesRESTClient) SetSslCertificates(ctx context.Context, req *computepb.SetSslCertificatesTargetHttpsProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetHttpsProxiesSetSslCertificatesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -617,7 +617,7 @@ func (c *targetHttpsProxiesRESTClient) SetSslCertificates(ctx context.Context, r // SetSslPolicy sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends. func (c *targetHttpsProxiesRESTClient) SetSslPolicy(ctx context.Context, req *computepb.SetSslPolicyTargetHttpsProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSslPolicyReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -668,7 +668,7 @@ func (c *targetHttpsProxiesRESTClient) SetSslPolicy(ctx context.Context, req *co // SetUrlMap changes the URL map for TargetHttpsProxy. func (c *targetHttpsProxiesRESTClient) SetUrlMap(ctx context.Context, req *computepb.SetUrlMapTargetHttpsProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/target_instances_client.go b/compute/apiv1/target_instances_client.go index dd85caae634..49d4ddd9ffd 100644 --- a/compute/apiv1/target_instances_client.go +++ b/compute/apiv1/target_instances_client.go @@ -322,7 +322,7 @@ func (c *targetInstancesRESTClient) Get(ctx context.Context, req *computepb.GetT // Insert creates a TargetInstance resource in the specified project and zone using the data included in the request. func (c *targetInstancesRESTClient) Insert(ctx context.Context, req *computepb.InsertTargetInstanceRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetInstanceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/target_pools_client.go b/compute/apiv1/target_pools_client.go index 0042a564b1b..5f311bfb383 100644 --- a/compute/apiv1/target_pools_client.go +++ b/compute/apiv1/target_pools_client.go @@ -224,7 +224,7 @@ func (c *targetPoolsRESTClient) Connection() *grpc.ClientConn { // AddHealthCheck adds health check URLs to a target pool. func (c *targetPoolsRESTClient) AddHealthCheck(ctx context.Context, req *computepb.AddHealthCheckTargetPoolRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetPoolsAddHealthCheckRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -275,7 +275,7 @@ func (c *targetPoolsRESTClient) AddHealthCheck(ctx context.Context, req *compute // AddInstance adds an instance to a target pool. func (c *targetPoolsRESTClient) AddInstance(ctx context.Context, req *computepb.AddInstanceTargetPoolRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetPoolsAddInstanceRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -466,7 +466,7 @@ func (c *targetPoolsRESTClient) Get(ctx context.Context, req *computepb.GetTarge // GetHealth gets the most recent health check results for each IP for the instance that is referenced by the given target pool. func (c *targetPoolsRESTClient) GetHealth(ctx context.Context, req *computepb.GetHealthTargetPoolRequest, opts ...gax.CallOption) (*computepb.TargetPoolInstanceHealth, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetInstanceReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -510,7 +510,7 @@ func (c *targetPoolsRESTClient) GetHealth(ctx context.Context, req *computepb.Ge // Insert creates a target pool in the specified project and region using the data included in the request. func (c *targetPoolsRESTClient) Insert(ctx context.Context, req *computepb.InsertTargetPoolRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetPoolResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -617,7 +617,7 @@ func (c *targetPoolsRESTClient) List(ctx context.Context, req *computepb.ListTar // RemoveHealthCheck removes health check URL from a target pool. func (c *targetPoolsRESTClient) RemoveHealthCheck(ctx context.Context, req *computepb.RemoveHealthCheckTargetPoolRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetPoolsRemoveHealthCheckRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -668,7 +668,7 @@ func (c *targetPoolsRESTClient) RemoveHealthCheck(ctx context.Context, req *comp // RemoveInstance removes instance URL from a target pool. func (c *targetPoolsRESTClient) RemoveInstance(ctx context.Context, req *computepb.RemoveInstanceTargetPoolRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetPoolsRemoveInstanceRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -719,7 +719,7 @@ func (c *targetPoolsRESTClient) RemoveInstance(ctx context.Context, req *compute // SetBackup changes a backup target pool’s configurations. func (c *targetPoolsRESTClient) SetBackup(ctx context.Context, req *computepb.SetBackupTargetPoolRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/target_ssl_proxies_client.go b/compute/apiv1/target_ssl_proxies_client.go index e491275c4e2..a8cb73198ca 100644 --- a/compute/apiv1/target_ssl_proxies_client.go +++ b/compute/apiv1/target_ssl_proxies_client.go @@ -284,7 +284,7 @@ func (c *targetSslProxiesRESTClient) Get(ctx context.Context, req *computepb.Get // Insert creates a TargetSslProxy resource in the specified project using the data included in the request. func (c *targetSslProxiesRESTClient) Insert(ctx context.Context, req *computepb.InsertTargetSslProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetSslProxyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -391,7 +391,7 @@ func (c *targetSslProxiesRESTClient) List(ctx context.Context, req *computepb.Li // SetBackendService changes the BackendService for TargetSslProxy. func (c *targetSslProxiesRESTClient) SetBackendService(ctx context.Context, req *computepb.SetBackendServiceTargetSslProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetSslProxiesSetBackendServiceRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -442,7 +442,7 @@ func (c *targetSslProxiesRESTClient) SetBackendService(ctx context.Context, req // SetProxyHeader changes the ProxyHeaderType for TargetSslProxy. func (c *targetSslProxiesRESTClient) SetProxyHeader(ctx context.Context, req *computepb.SetProxyHeaderTargetSslProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetSslProxiesSetProxyHeaderRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -493,7 +493,7 @@ func (c *targetSslProxiesRESTClient) SetProxyHeader(ctx context.Context, req *co // SetSslCertificates changes SslCertificates for TargetSslProxy. func (c *targetSslProxiesRESTClient) SetSslCertificates(ctx context.Context, req *computepb.SetSslCertificatesTargetSslProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetSslProxiesSetSslCertificatesRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -544,7 +544,7 @@ func (c *targetSslProxiesRESTClient) SetSslCertificates(ctx context.Context, req // SetSslPolicy sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the SSL proxy load balancer. They do not affect the connection between the load balancer and the backends. func (c *targetSslProxiesRESTClient) SetSslPolicy(ctx context.Context, req *computepb.SetSslPolicyTargetSslProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetSslPolicyReferenceResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/target_tcp_proxies_client.go b/compute/apiv1/target_tcp_proxies_client.go index 37b83219c2f..e86e197c3fe 100644 --- a/compute/apiv1/target_tcp_proxies_client.go +++ b/compute/apiv1/target_tcp_proxies_client.go @@ -270,7 +270,7 @@ func (c *targetTcpProxiesRESTClient) Get(ctx context.Context, req *computepb.Get // Insert creates a TargetTcpProxy resource in the specified project using the data included in the request. func (c *targetTcpProxiesRESTClient) Insert(ctx context.Context, req *computepb.InsertTargetTcpProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetTcpProxyResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -377,7 +377,7 @@ func (c *targetTcpProxiesRESTClient) List(ctx context.Context, req *computepb.Li // SetBackendService changes the BackendService for TargetTcpProxy. func (c *targetTcpProxiesRESTClient) SetBackendService(ctx context.Context, req *computepb.SetBackendServiceTargetTcpProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetTcpProxiesSetBackendServiceRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -428,7 +428,7 @@ func (c *targetTcpProxiesRESTClient) SetBackendService(ctx context.Context, req // SetProxyHeader changes the ProxyHeaderType for TargetTcpProxy. func (c *targetTcpProxiesRESTClient) SetProxyHeader(ctx context.Context, req *computepb.SetProxyHeaderTargetTcpProxyRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetTcpProxiesSetProxyHeaderRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/target_vpn_gateways_client.go b/compute/apiv1/target_vpn_gateways_client.go index 8d050dee08b..2e7c138b3d5 100644 --- a/compute/apiv1/target_vpn_gateways_client.go +++ b/compute/apiv1/target_vpn_gateways_client.go @@ -322,7 +322,7 @@ func (c *targetVpnGatewaysRESTClient) Get(ctx context.Context, req *computepb.Ge // Insert creates a target VPN gateway in the specified project and region using the data included in the request. func (c *targetVpnGatewaysRESTClient) Insert(ctx context.Context, req *computepb.InsertTargetVpnGatewayRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTargetVpnGatewayResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/url_maps_client.go b/compute/apiv1/url_maps_client.go index e117b19e9fe..a1a7c5a418e 100644 --- a/compute/apiv1/url_maps_client.go +++ b/compute/apiv1/url_maps_client.go @@ -352,7 +352,7 @@ func (c *urlMapsRESTClient) Get(ctx context.Context, req *computepb.GetUrlMapReq // Insert creates a UrlMap resource in the specified project using the data included in the request. func (c *urlMapsRESTClient) Insert(ctx context.Context, req *computepb.InsertUrlMapRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -405,7 +405,7 @@ func (c *urlMapsRESTClient) Insert(ctx context.Context, req *computepb.InsertUrl // // For more information, see Invalidating cached content (at /cdn/docs/invalidating-cached-content). func (c *urlMapsRESTClient) InvalidateCache(ctx context.Context, req *computepb.InvalidateCacheUrlMapRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetCacheInvalidationRuleResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -512,7 +512,7 @@ func (c *urlMapsRESTClient) List(ctx context.Context, req *computepb.ListUrlMaps // Patch patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. func (c *urlMapsRESTClient) Patch(ctx context.Context, req *computepb.PatchUrlMapRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -563,7 +563,7 @@ func (c *urlMapsRESTClient) Patch(ctx context.Context, req *computepb.PatchUrlMa // Update updates the specified UrlMap resource with the data included in the request. func (c *urlMapsRESTClient) Update(ctx context.Context, req *computepb.UpdateUrlMapRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -620,7 +620,7 @@ func (c *urlMapsRESTClient) Update(ctx context.Context, req *computepb.UpdateUrl // Validate runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap. func (c *urlMapsRESTClient) Validate(ctx context.Context, req *computepb.ValidateUrlMapRequest, opts ...gax.CallOption) (*computepb.UrlMapsValidateResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetUrlMapsValidateRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/vpn_gateways_client.go b/compute/apiv1/vpn_gateways_client.go index 4b9a4642d76..f1d9252e2a1 100644 --- a/compute/apiv1/vpn_gateways_client.go +++ b/compute/apiv1/vpn_gateways_client.go @@ -380,7 +380,7 @@ func (c *vpnGatewaysRESTClient) GetStatus(ctx context.Context, req *computepb.Ge // Insert creates a VPN gateway in the specified project and region using the data included in the request. func (c *vpnGatewaysRESTClient) Insert(ctx context.Context, req *computepb.InsertVpnGatewayRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetVpnGatewayResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -487,7 +487,7 @@ func (c *vpnGatewaysRESTClient) List(ctx context.Context, req *computepb.ListVpn // SetLabels sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation. func (c *vpnGatewaysRESTClient) SetLabels(ctx context.Context, req *computepb.SetLabelsVpnGatewayRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetRegionSetLabelsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { @@ -538,7 +538,7 @@ func (c *vpnGatewaysRESTClient) SetLabels(ctx context.Context, req *computepb.Se // TestIamPermissions returns permissions that a caller has on the specified resource. func (c *vpnGatewaysRESTClient) TestIamPermissions(ctx context.Context, req *computepb.TestIamPermissionsVpnGatewayRequest, opts ...gax.CallOption) (*computepb.TestPermissionsResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetTestPermissionsRequestResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/compute/apiv1/vpn_tunnels_client.go b/compute/apiv1/vpn_tunnels_client.go index 62186a5da95..1bbf3603449 100644 --- a/compute/apiv1/vpn_tunnels_client.go +++ b/compute/apiv1/vpn_tunnels_client.go @@ -322,7 +322,7 @@ func (c *vpnTunnelsRESTClient) Get(ctx context.Context, req *computepb.GetVpnTun // Insert creates a VpnTunnel resource in the specified project and region using the data included in the request. func (c *vpnTunnelsRESTClient) Insert(ctx context.Context, req *computepb.InsertVpnTunnelRequest, opts ...gax.CallOption) (*computepb.Operation, error) { - m := protojson.MarshalOptions{AllowPartial: true, EmitUnpopulated: true} + m := protojson.MarshalOptions{AllowPartial: true} body := req.GetVpnTunnelResource() jsonReq, err := m.Marshal(body) if err != nil { diff --git a/monitoring/dashboard/apiv1/dashboards_client.go b/monitoring/dashboard/apiv1/dashboards_client.go index 3d0b2951c70..f08acddf443 100644 --- a/monitoring/dashboard/apiv1/dashboards_client.go +++ b/monitoring/dashboard/apiv1/dashboards_client.go @@ -138,12 +138,8 @@ func (c *DashboardsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } -// CreateDashboard creates a new custom dashboard. For examples on how you can use this API to -// create dashboards, see Managing dashboards by -// API (at https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the -// monitoring.dashboards.create permission on the specified project. For -// more information about permissions, see Cloud Identity and Access -// Management (at https://cloud.google.com/iam). +// CreateDashboard creates a new custom dashboard. For examples on how you can use this API to create dashboards, see Managing dashboards by API (at /monitoring/dashboards/api-dashboard). +// This method requires the monitoring.dashboards.create permission on the specified project. For more information about permissions, see Cloud Identity and Access Management (at /iam). func (c *DashboardsClient) CreateDashboard(ctx context.Context, req *dashboardpb.CreateDashboardRequest, opts ...gax.CallOption) (*dashboardpb.Dashboard, error) { return c.internalClient.CreateDashboard(ctx, req, opts...) } diff --git a/monitoring/dashboard/apiv1/doc.go b/monitoring/dashboard/apiv1/doc.go index f4517a37810..3eb70ad05fe 100644 --- a/monitoring/dashboard/apiv1/doc.go +++ b/monitoring/dashboard/apiv1/doc.go @@ -53,7 +53,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210702" +const versionClient = "20210708" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/pubsub/apiv1/doc.go b/pubsub/apiv1/doc.go index 6a1a1964518..661b65f13a1 100644 --- a/pubsub/apiv1/doc.go +++ b/pubsub/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210702" +const versionClient = "20210708" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/pubsub/go.mod b/pubsub/go.mod index 9fe8c93905e..fea669b7968 100644 --- a/pubsub/go.mod +++ b/pubsub/go.mod @@ -12,7 +12,7 @@ require ( golang.org/x/sync v0.0.0-20210220032951-036812b2e83c golang.org/x/time v0.0.0-20210611083556-38a9dc6acbc6 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 + google.golang.org/genproto v0.0.0-20210707164411-8c882eb9abba google.golang.org/grpc v1.39.0 google.golang.org/protobuf v1.27.1 ) diff --git a/pubsub/go.sum b/pubsub/go.sum index 67f7f651dcc..9b9b4ea26d2 100644 --- a/pubsub/go.sum +++ b/pubsub/go.sum @@ -465,8 +465,8 @@ google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= -google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= -google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707164411-8c882eb9abba h1:7ajVqfUjhvVuXCb+sdXdKsOD53caRpfMofvihWF1314= +google.golang.org/genproto v0.0.0-20210707164411-8c882eb9abba/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/vpcaccess/apiv1/doc.go b/vpcaccess/apiv1/doc.go index 859bb53aeda..ffd86a97d53 100644 --- a/vpcaccess/apiv1/doc.go +++ b/vpcaccess/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210702" +const versionClient = "20210708" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx)